NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: sukhendu on October 26, 2012, 05:26:18 AM
-
How to add a drop list instead of radio button of a local variable on a web form that will show the list of items of the local variable? Is there an example that shows this?
Thanks,
Sukhendu Barua
-
on the "more settings" of the Drop field, you can capture "fixed" possibilities for the drop - ie not from a file.
So if a radio had say 3 possibilities,
1 - Sold / 2 Rented / 3 Scrapped
then you could add these 3 settings on the "More settings" tab for the Drop and you'd have the same as a radio.
cheers
Bruce
-
Bruce,
That worked! Thank you.
Sukhendu
-
Bruce,
Is there a way to prime the list before opening? What I mean is instead of the first item on the list can the drop list show the item that was last accessed with a different sessionid? I'm storing the user selection on an ini file and getting the value from the ini file at procedure setup.
Hope I'm able explain what I'm looking for.
Thanks,
Sukhendu
-
Hi,
Simply p_web.ssv('var','value from .ini file') where you prime the fields.
Cheers
Charl
-
Thanks Charl,
Priming field in other variables work but not for this local list variable/field where the values are defined under "more settings" .
- Sukhendu
-
I tried it out here Sukendu, and it seemed to work ok.
On the priming tab I set the field to prine to one of the drop _values_ (not the drop text), and of course set it to "Prime for change" if it's a memory form (or if you want it primed on a Change etc).
Cheers
Bruce
-
I forgot to tick the "Prime for change" option. Now it is working. Thank you Bruce.