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

TOPIC:

Help to understand JDOM list and combo 12 Apr 2013 08:59 #7044

Hi,

Two questions, but all related to the same topic:

1) When I use a combo to view a list of item from another table and obtain the corresponding id as foreign key, the value are displayed and grouped correctly but they appear doubled. The first line is bold text and looks like a label, then the value to be selected appears afterwards in normal, indented text. I understand this could be useful when creating different groups of options, but if one wants to show a simple list of terms, without labels, where is the code to be modified?

Second question is similar, although in this case I have something like:
- Table registry, fields: 'name', 'surname', 'name_surname'
- User insert surname (A) and name (B ) and then inside the prepareTable() function the values are concatenated and saved into name_surname (A,B ) (just an example)

2) In another view I have my jDOM list that shows name_surname list, but again I have a label (name_surname) and the value to select, that in this case is "surname". That is, the result appears like this:

- select name and surname -
A,B
A

Can I have some hints about how to customize label and item inside jDOM list (and combo as well) or, possibly, a reference to a guide ?

Thanks

Elena

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

Last edit: by dieda1821.

Re: Help to understand JDOM list and combo 02 May 2013 13:59 #7118

Hi,

Just to answer to myself... I found my way adjusting the OPTGROUP definition inside admin/dom/html/form/input/select/combo.php (point 1) and adjusting the query and the called value (point 2).

Elena

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

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

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started