Get selected item in list control
#1
Hi

I have a button (lets say id="10") where i want conditional visibility depending on a property on the selected item in a list control (lets say id="11").

I would think i could do something like this:
<visible>StringCompare(Container(11).SelectedItem.Property(myProperty), someValue)</visible>
but i can't find any documentation on such an api.

Is this possible?
Reply
#2
You can get the selected item in a list control with Container(id).ListItem, so based on your example it would be StringCompare(Container(11).ListItem.Property(myProperty), someValue).

Image
Reply
#3
Ah, perfect!

Thank you Smile
Reply
#4
Would not Container(id).Position work ? or do you actually want if a certain value is at a position

Container(id).Position Returns the current focused position of Container (id) as a numeric label.
Reply
#5
I actually need to read the value of a property from the focused list item, so the position is not enough in my case.

But thanks for you reply anyway Smile
Reply

Logout Mark Read Team Forum Stats Members Help
Get selected item in list control0