Welcome, Guest
Username: Password: Remember me

TOPIC: Infinite FK level for labeling the lists

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

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 15
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
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
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
Last Edit: 21 May 2015 22:39 by admin.
The administrator has disabled public write access.
The following user(s) said Thank You: MorganL

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

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 15
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
The administrator has disabled public write access.
Time to create page: 0.070 seconds

Get Started