Hexagon Geospatial
MENU

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 
Reply
Highlighted
Contributor
Posts: 27
Registered: ‎05-06-2019
Accepted Solution

Trigger for the time in mobile application

Hi all,

hope this post reach you well,

i need to know how to make trigger in the mobile application that trigger the time of editing on form (AfterUpdate,AfterSave) ?

 

* i have field in the database named date_time and the format of the field is timestamp without time zone

 

 

thank you

Staff
Posts: 605
Registered: ‎11-12-2015

Re: Trigger for the time in mobile application

Hi Islam,

 

It is only required that your DateTime field be of type 'TimeStamp'

In this way it will get updated automatically upon updating of the entity. No need for a trigger.

 

Here is example whereby I have database column 'TimeStamp' of datatype 'datetime' in SQLServer.

In the entity I set this type to be 'TimeStamp'

 

<Field Name="TimeStamp" Type="TimeStamp"/>

 

This is covered in the Mobile Documentation under section 'FieldTypes'

 

 

 

 

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.