From wiki.ginstr.com
Jump to: navigation, search
(VALIDATIONS)
(GENERAL)
Line 28: Line 28:
  
 
=====GENERAL=====
 
=====GENERAL=====
* "label", [[GBAMRulesForIDGeneration#.24.7BwidgetLabel.7D|<code>${widgetLabel}</code>]]
+
* "database column headline", [[GBAMRulesForIDGeneration#.24.7BwidgetLabel.7D|<code>${widgetLabel}</code>]]
  
 
=====VALIDATIONS=====
 
=====VALIDATIONS=====

Revision as of 08:46, 31 March 2020

Gps coordinates (hidden)

Widget obtains gps coordinates from gps module. After location is retrieved it's stored into widget as "latitude, longitude" pair. Widget is hidden.

Widget id, ${gbamID}:

auditGPS

Back to GBAM widgets table

Datatypes

Value is stored from widget to database as GPS datatype

Predefined user data

PreLoaded

Properties panel

User will configure this data in properties panels of selected widget:

GENERAL
VALIDATIONS
  • -
ACTION
  • -
ACTION MESSAGES
  • -
DATABASE
  • "is part of database", checkbox option by default is set as checked. When checked database column is created for this widget.

Code snippets

GBAM Code Variables

Variables which are used in code snippet below but not defined in user modifiable inputs.

Common widget code

<com.ginstr.widgets.GnEditText
    android:id="@+id/${widgetID}_input" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content"
    gn:s_sourceType="gps"
    gn:dataType="GPS"
    gn:visible="false"/>