m (formatting) |
|||
Line 10: | Line 10: | ||
===Copy Dropdown value=== | ===Copy Dropdown value=== | ||
− | ;<code>[gn:act_copyDropdownSelectedArrayValue]|[source,target]</code> | + | :;<code>[gn:act_copyDropdownSelectedArrayValue]|[source,target]</code> |
− | {| class="wikitable sortable" style="font-size: 85%; text-align: left;" | + | :{| class="wikitable sortable" style="font-size: 85%; text-align: left;" |
|- | |- | ||
! scope="col" | Parameter | ! scope="col" | Parameter | ||
! scope="col" | Description | ! scope="col" | Description | ||
|- | |- | ||
− | | [[source]] | + | | <code>[[source]]</code> |
| [[source]] from where the value will be copied | | [[source]] from where the value will be copied | ||
* Valid [[source|sources]]: | * Valid [[source|sources]]: | ||
− | ** [[GnDropDown]] with <code>gn:s_sourceType="local"</code> attribute defined | + | ** <code>[[GnDropDown]]</code> with <code>gn:s_sourceType="local"</code> attribute defined |
|- | |- | ||
− | | [[target]] | + | | <code>[[target]]</code> |
| [[target]] where the value will be stored | | [[target]] where the value will be stored | ||
* Valid [[target|targets]]: | * Valid [[target|targets]]: | ||
− | ** [[GnEditText]] | + | ** <code>[[GnEditText]]</code> |
|- | |- | ||
|} | |} | ||
====Example==== | ====Example==== | ||
− | <code>@+id/ddCleaningReport_visitType</code> - GnDropDown<br> | + | :<code>@+id/ddCleaningReport_visitType</code> - <code>[[GnDropDown]]</code><br> |
− | <code>@+id/visitTypeValue</code> - GnEditText< | + | :<code>@+id/visitTypeValue</code> - <code>[[GnEditText]]</code><br> |
− | <code>[gn:act_copyDropdownSelectedArrayValue]|[@+id/ddCleaningReport_visitType,@+id/visitTypeValue]</code> | + | :; ⤷ <code>[gn:act_copyDropdownSelectedArrayValue]|[@+id/ddCleaningReport_visitType,@+id/visitTypeValue]</code> |
<hr> | <hr> |
Revision as of 15:59, 12 July 2017
gn:act_copyDropdownSelectedArrayValue
- Description
- Action used to retrieve dropdown selected value from array value string-array into target widget.
- Action returns
- void
Action signatures
Copy Dropdown value
[gn:act_copyDropdownSelectedArrayValue]|[source,target]
Parameter Description source
source from where the value will be copied - Valid sources:
GnDropDown
withgn:s_sourceType="local"
attribute defined
target
target where the value will be stored - Valid targets:
- Valid sources:
Example
@+id/ddCleaningReport_visitType
-GnDropDown
@+id/visitTypeValue
-GnEditText
- ⤷
[gn:act_copyDropdownSelectedArrayValue]|[@+id/ddCleaningReport_visitType,@+id/visitTypeValue]
- ⤷