Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

MINOR - Third level ajax select box problems 21 May 2015 20:57 #13156

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
I have a select box (ajax loading) which pulls in info from a joomla user field in a foreign table.. something like this

Manager (Managers)
- Account (Users)
--Name

The name is coming through as the Joomla ID and not the actual name.

This infomation comes through correctly on GRID layouts

I have work arounds so not critical, just a minor observation

Project : RT Callout
Table : Rotas
Working View : Rotas (collection)
Broken View : On Call Rota (item) -> see Manager select box
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla

Please Log in or Create an account to join the conversation.

MINOR - Third level ajax select box problems 21 May 2015 22:39 #13160

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
I see.

This is not possible with Cook.

To reduce the description simplier : (You do not need to involve AJAX groups to raise the problem)

Make a simple FK in a form wich to refers to an account, itself referring to a Joomla user (double FK)

The result shown in the form will be the ID of the account, because cook does not accept more than one level deep for the labels in form combos.

This is interresting because I never had this case, and it can be usefull sometimes. But it becomes really complex to code. Good challenge.

It would be a new functionality, but I put it in pending tickets, because Cook is not supposed to limit deep levels when context allows it.
When you drop a sub/sub/sub... node in a form, it already reduce it to the base (which is normal from the context), but it should keep the choosen node for its label.

Right ?
Coding is now a piece of cake
The following user(s) said Thank You: MorganL

Please Log in or Create an account to join the conversation.

Last edit: by admin.

MINOR - Third level ajax select box problems 21 May 2015 22:50 #13162

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
This is what I was doing, I was just trying to streamline the process, its not important. I will go back to the adding name as a string in managers and just referring to the Joomla Account for linking purposes which works fine!

Enjoy the challenge if you do decide to accept =)

I am just excited by seeing Module and Plugin in new projects.... those are far more important. Still not written a search plugin for a Jomola 3,.2 component yet (big changes form 2.5 method)
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.057 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started