Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Help to understand JDOM list and combo

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

  • dieda1821
  • dieda1821's Avatar
  • Offline
  • Senior Member
  • Posts: 53
  • Thank you received: 2
  • Karma: 4
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
Last Edit: 12 Apr 2013 08:59 by dieda1821.
The administrator has disabled public write access.

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

  • dieda1821
  • dieda1821's Avatar
  • Offline
  • Senior Member
  • Posts: 53
  • Thank you received: 2
  • Karma: 4
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
The administrator has disabled public write access.
Time to create page: 0.059 seconds

Get Started