Generatiing Lists with DTML.
24 May
2005
24 May
'05
4:42 p.m.
Hi, I have a array data type in my DB wich have the following format : {1,2,3} ( ids_test ). Now in my web application, I have a multiple select wich options must be marked as selected if the number is in the array described above. How can I make the above format be converted to a list of elements? For instance: <html> <body> <dtml-in searchIdsTest> <dtml-call "REQUEST.set('ids_test', '['+ids_test[1:-1]+']')"> </dtml-in> <form> <select name="id_test" multiple="true"> <dtml-in serch_id_test> <option value="&dtml-id_test;" <dtml-if id_test in ids_test> selected="true"</dtml-if>></option> </dtml-in> </select> </form> </body> </html> Thanks. Fernando Lujan
7621
Age (days ago)
7621
Last active (days ago)
0 comments
1 participants
participants (1)
-
Fernando Lujan