Hexagon Geospatial

M.App Enterprise

Discuss topics with other M.App Enterprise Product pioneers and experts to get the most out of it.
Showing results for 
Search instead for 
Do you mean 
Posts: 42
Registered: ‎10-10-2015
Accepted Solution

Timestamp fields problem in Mobile App

Hi everyone, when create a mobile App in M.App Enterprise with two timestamp fields in a Form, Mobile App save the same new date and time to both fields, even with NO manually modifying the date in editing, the App updates both dates with actual save date.


When datetime field is visualized in the Form, the App replace/ignore the date in the database and put a new date.


I removed the option "RevisionField" for test, and the behavior is the same.


Thanks for advance

Posts: 19
Registered: ‎10-29-2018

Re: Timestamp fields problem in Mobile App



if you switch the field type from Timestamp to DateTime it should behave as you described:


<Field Name="datefield" Type="DateTime" />
If you want to set the timestamps automatically on save you can do it like in the following sample:
                if (Context.getValue('Id') == null) {
                else {
Posts: 42
Registered: ‎10-10-2015

Re: Timestamp fields problem in Mobile App

Thank you so much. 


Now i know, DateTime and Timestamp have different behavior. 

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Development Ticket through our Development Ticket Portal.