Hexagon Geospatial
MENU

Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Contributor
Posts: 21
Registered: ‎06-18-2018
Accepted Solution

Save action in workflow

Hi,

 

I'm using M.App Enterprise and am trying to save data from a form in a workflow. This is achievable by simple specifying the Static Value "save" in the action property of a FormAction (see attached screenshot). However, I wish to do this programmatically, what function is this static value calling in order for this process to be executed? It's probably a basic question with a simple answer but I cannot seem to find the solution in the documentation. Any help would be appreciated, thank you.

 

Regards,

 

Ryan 

Staff
Posts: 1,036
Registered: ‎10-18-2015

Re: Save action in workflow

Hi Ryan,

 

do you mean you would like to call the action in a custom script? There are several ways to do so, here a couple of examples:

 

 

IG.executeRequest({controller:'Form', action:'Save'})
	 .done(function (result) { 
		// ... do something here ....
	 });

IG.submit('Form','Save')
	.done(function(result){
		// ... do something here ....
	});

Another possibility is to use IG.url method.

 

Please refer to the documentation here.

 

HTH,

Stefano

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Contributor
Posts: 21
Registered: ‎06-18-2018

Re: Save action in workflow

Hi Stefano,

 

That is exactly what I meant, this works great. Thanks for your help!

 

Regards,

 

Ryan

Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.