Timestamp
Widget represents a hidden field which will provide timestamp value.
Value will be stored as datatype dateTime.
Widget id, ${gbamID}
:
auditTimestamp
Back to GBAM widgets table
Datatypes
Value is stored from widget to database as dateTime
datatype.
Predefined user data
PreLoaded
Properties panel
User will configure this data in properties panels of selected widget:
GENERAL
- "database column headline",
${widgetLabel}
VALIDATIONS
- -
ACTION
- -
ACTION MESSAGES
- -
DATABASE
- "additional ginstr web column settings":
- "required", add to configuration.xml:
<columnDateTime required="true|false"></columnDateTime>
- "minDate", add to configuration.xml:
<columnDateTime> <minDate>yyyy-mm-dd</minDate> </columnDateTime>
- "maxDate", add to configuration.xml:
<columnDateTime> <maxDate>yyyy-mm-dd</maxDate> </columnDateTime>
- "minTime", add to configuration.xml:
<columnDateTime> <minTime>hh:mm:ss</minTime> </columnDateTime>
- "maxTime", add to configuration.xml:
<columnDateTime> <maxTime>hh:mm:ss</maxTime> </columnDateTime>
- "preset", add to configuration.xml:
<columnDateTime> <preset>yyyy-mm-dd</preset> </columnDateTime>
- "defaultFilter", add to configuration.xml:
<columnDateTime> <defaultFilter>today|yesterday|currentWeek|lastWeek|currentMonth|lastMonth|untilToday|fromToday|untilTomorrow|fromTomorrow|currentYear|lastYear</defaultFilter> </columnDateTime>
- "setCurrent", add to configuration.xml:
<columnDateTime> <setCurrent>true|false</setCurrent> </columnDateTime>
- "notEditable", add to configuration.xml:
<columnDateTime> <notEditable>true|false</notEditable> </columnDateTime>
- "related unique columns", add to configuration.xml:
<columnDateTime> <uniqueInsideList> <reference> <table>refTableId1</table> <column>refColumnField1</column> </reference> <reference> <table>refTableId2</table> <column>refColumnField2</column> </reference> </uniqueInsideList> </columnDateTime>
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="time" gn:dataType="dateTime" gn:visible="false"/>