gn:act_setSelectedItem
- Description
- Action used to select dropdown item
GnDropDown
orGnAutoCompleteTextView
- Action returns
- void
Action signatures
Select list item based on row index
[gn:act_setSelectedItem]|[target,index,disableItemSelectEvent]
Parameter Description target
target where the item will be selected index
represents a row index of row which will be selected disableItemSelectEvent
(M104)optional attribute used to disable execution of gn:act_setSelectedItem
action aftergn:act_setItemSelect
event is firedDefault value:
false
Example
@+id/dropDown
-GnDropDown
3
- row index
- ⤷
[gn:act_setSelectedItem]|[@+id/dropDown,3]
- ⤷
Select list item based on value
[gn:act_setSelectedItem]|[target,source,disableItemSelectEvent]
Parameter Description target
target where the item will be selected source
source from where the value will be used to select matching list item - Valid sources:
disableItemSelectEvent
(M104)optional attribute used to disable execution of gn:act_setSelectedItem
action aftergn:act_setItemSelect
event is firedDefault value:
false
Example
@+id/dropDown
-GnDropDown
@+id/txtEmployee
-GnEditText
@variable/statusTrue
-status
- ⤷
[gn:act_setSelectedItem]|[@+id/dropDown,@+id/txtEmployee,@variable/statusTrue]
- ⤷