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
Occasional Contributor
Posts: 9
Registered: ‎02-20-2018
Accepted Solution

Add username within trigger in mobile

Hi,

 

I want to update a column by filling it with the current user name, I added a column in the db called 'username' and added this 

<Entity.Triggers>
   <UpdateFieldTrigger Method="BeforeSave,BeforeUpdate" Field="userid" Value="@{System.UserId}" />
   <UpdateFieldTrigger Method="BeforeSave,BeforeUpdate" Field="username" Value="@{System.UserName}" />
</Entity.Triggers>

to the Shell.xaml but it does not update, although I also made another UpdateFieldTrigger  to update a column with the user id and it worked.

 

John

Occasional Contributor
Posts: 9
Registered: ‎02-20-2018

Re: Add username within trigger in mobile

Hi,

 

I fixed it as I forgot adding the field in the Shell.xaml.

 

Thanks

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.