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.102 seconds

I jumped and started to work on a demo component... but 2 days later this demo component became the real component. I just showed today the end result to my customer and he turned to me and said... "this is more than I expected"... All of this is because Cook did cut about 70% of my work and provided me more ways to improve the usability of the component. The end result was 17 tables all related between than to generate a full dashboard for the travel agents. Thanks for Cook developers for such great tool. This component would not be possible to be done at short time with all the features in it
Griiettner (Forum)  

Get Started