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

I'm playing around with the new mvc and the FORK feature is FANTASTIC!!! it's saving me a lot of time! you are doing a very good job!!

Tomaselli (Forum)  

Get Started