Quote:
|
Originally Posted by Zonx
Just a thought (haven't tried this out) but I believe all selects refer to their items via index number/row number. You should be able to extract the selected item value with a refernece along these lines...
listName.SelectedRow.value
Where listName = the select object's name
value = the name of the data object field you want a value for.
SelectedRow should have its value set automatically to the index of the selected.
the following statement...
OnSelect="parent.LocalText=SelectedRow.Desc"
should set the parent's LocalText to the Desc field value of the data object matching the selected item.
|
Thanks Zonks I'll double check this tomorrow. I'm pretty sure I've tried that already.
For ListBox p38, and p..39 "SelectedItemIndex" is the coun't row value of the selected item. I can run this in UI Builder and when I select a row it does change the count.
According to the manual, SelectedItem should hold the string 'value'.
In my template I've got a string value defined, I just can't figure the syntax for that one line.
The value should be there, all is working fine. I just need the syntax.
I'm going ahead with another version of this with buttons, untill I can get the list to work properly. The ListBox would be the best way to do it, just for elegance, and smaller files, but the buttons willw work jsut groovy. It will just be a pain when they add emotes later.