gn:act_getUserData
- Description
- Action is used to get ginstr user data and store it into target
- Action returns
- void
Action signatures
Gets ginstr user data
[gn:act_getUserData]|[target,keyword,triggerTarget,triggerEvent]
Parameter Description target
target into which user data will be stored - Valid targets:
keyword
defines which type of ginstr user information we will retrieve Can be:
dateFormat
- gets date format set for ginstr user in ginstr web settings, returned formats formatstimeFormat
- gets time format set for ginstr user in ginstr web settings, returned formats formatsdateTimeFormat
- gets dateTime format set for ginstr user in ginstr web settings, returned formats formatsuserName
- gets userName of ginstr useris24HoursTime
- gets time format set for ginstr user in ginstr web settings and if ends with "a" or "A" sets the target variable totrue
is24HoursDateTime
- gets dateTime format set for ginstr user in ginstr web settings and if ends with "a" or "A" sets the target variable totrue
firstDayOfWeek
- gets first day of week set for ginstr user in ginstr web settings and stores it to target
triggerTarget (M103.8)
target on which the defined event will be triggered triggerEvent (M103.8)
event from target which will be triggered
Example
screen.xml
<FrameLayout android:id="@+id/exampleFrame" android:layout_width="wrap_content" android:layout_height="wrap_content" android:visibility="gone" gn:act_set="[gn:act_getUserData]|[@+id/testWidget,dateFormat,@+id/saveNewAsset,gn:act_set]" /> <com.ginstr.widgets.GnTextView android:id="@+id/testWidget" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
after action execution
value in testWidget
: dd MMM yyyy
(depends on setting in ginstr web)