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

gn:act_getTargetLength

Description
Action used to get length of the content from target.
Action returns
void

Action signatures

Get target length

[gn:act_getTargetLength]|[source,target]
Parameter Description
source source from where value will be retrieved
target target target into which length of the source content will be stored

Example

source
<com.ginstr.widgets.GnEditText
    android:id="@+id/myInputField"
    android:layout_height="wrap_content"
    android:layout_width="match_parent"
    gn:dataType="text"
    gn:s_hint="@string/screenOne_myInputField"
    gn:s_sourceType="input"/>
target
<variable id="length" type="number" defaultValue=""></variable>
signature
[gn:act_getTargetLength]|[@+id/myInputField,@variable/length]