Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » drop-down (drop-down)
Re: drop-down [message #2548 is a reply to message #2547] Wed, 16 June 2010 03:55 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2371
Registered: April 2006
Location: Surrey, UK
Senior Member
The ValRep array that is used to build a dropdown list or radio group is a simple associative array made up of value=representation pairs, where 'value' is the internal value used by the system, and 'representation' is a description which can be shown in the user's language of choice.

This means that the 'value' part can be used to look up a database record via its primary key. If this is a composite key, then the 'value' string must contain every part of this composite. You can do this by constructing a string in the format 'part1/part2/part3' where '/' is a separator which does not appear in any of the parts. Once the user has chosen a value you will then have to split out the parts before performing the database lookup.


 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Filter records based on user
Next Topic: list2
Goto Forum:
  


Current Time: Wed Nov 27 09:49:24 EST 2024

Total time taken to generate the page: 0.01072 seconds