M.App Enterprise Discussions

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
New Contributor
Posts: 4
Registered: ‎11-11-2015
Accepted Solution

MAE Javascript SC functions on app launch

Hello

 

I need to run a SC.Mapp function as soon as the rich client App is launched.

 

Is there a javascript function for M.App Enterprsise similar to SmartClient's on ready for both the form and the map component.

IG.vent.on('smartclient:ready', function (e){
 ...
});

Or is there another way I can run a SC.Map function on App Launch?

 

I have tried using IG.events.onFormReady in a workflow form that is set to launch on startup in the action set. But it appears that the form is in a ready state before SC is initialized. It only works if I press the reload button on the rich client app after the first failure.


I have tested this on MAE version 16.6.287.3 and an older version

 

 

Regards

Ruan

 

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

Re: MAE Javascript SC functions on app launch

hi Ruan,

 

the event is called 

 

desktopclient:ready
 
HTH,
Stefano
Stefano Turcato
Presale Engineer
Hexagon Geospatial
New Contributor
Posts: 4
Registered: ‎11-11-2015

Re: MAE Javascript SC functions on app launch

Thank you Stefano, it works