From wiki.ginstr.com
Jump to: navigation, search

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
target target where the value will be stored

Example

arrays.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
 <string-array name="screen2_selectVisitTypeArrayValues">
  <item>@string/screen2_selectVisitTypeArrayValue1</item>
  <item>@string/screen2_selectVisitTypeArrayValue2</item>
  <item>@string/screen2_selectVisitTypeArrayValue3</item>
  <item>@string/screen2_selectVisitTypeArrayValue4</item>
  <item>@string/screen2_selectVisitTypeArrayValue5</item>
  </string-array>

 <string-array name="screen2_selectVisitTypeArrayValues_value">
  <item>@string/screen2_selectVisitTypeArrayValues_value1</item>
  <item>@string/screen2_selectVisitTypeArrayValues_value2</item>
  <item>@string/screen2_selectVisitTypeArrayValues_value3</item>
  <item>@string/screen2_selectVisitTypeArrayValues_value4</item>
  <item>@string/screen2_selectVisitTypeArrayValues_value5</item>
 </string-array>
</resources>
@+id/ddCleaningReport_visitType - GnDropDown
@+id/visitTypeValue - GnEditText
[gn:act_copyDropdownSelectedArrayValue]|[@+id/ddCleaningReport_visitType,@+id/visitTypeValue]