on 04-28-2009 9:59 PM
Hi experts,
In my application, I have an edit page to allow users edit existing data. Some of the data are presented as dropdowns. Right now, I am using a data source to build a dropdown and I have to iterate thru the list to find the matched for the existing value and set it to be "selected".
My question is, is there any way that I can set it up at design time so that WD knows which value should be selected after the whole list is built, without writing code. It becomes messy when you have several dropdowns you need to pre-selected on the same edit page.
Thanks,
Nitin,
Thanks for your reply. Other Java frameworks (like Strut, Spring), and .NET have built-in capability to do this. I just don't want to write code every time when I try to display an existing selection in the dropdown.
Thanks,
Robert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Robert,
Not possible. - At design time, you do not know the value set & also the chosen value as it can be anything.
As you say ' The user had already selected some value ' - implies you have no knowledge at design time.
Hope I am clear.
Kind Regards,
Nitin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Armin,
say if I have a context node to build my dropdown, e.g. month of the year. My user had selected "July" as the answer but now she wants to change it to "April". In the edit page, I need to present her with the dropdown AND it should have the month "July" selected.
Is there anyway to achieve this without writing code. Of course I can programmatically find out the index for "July" and set it as selected.
Did I make myself clearer?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't understand your question.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.