Start a GAS app from GWA
The runOnServer front call allows you to start an application via the
Genero Application Server (GAS) from a Genero Web application (GWA).
A runOnServer call
in GWA follows the same basic design as in Genero Mobile for iOS (GMI) and Androidâ„¢ (GMA), but there are a few important differences to
note:
- First, in GWA both
RUNandRUN ... WITHOUT WAITINGmay be used in any combination in the application being called byrunOnServer; there is no restriction that forces one or the other. All combinations to run multiple applications server side are possible. - Second, the
runOnServerfront call ends when all server side applications which were started by therunOnServerapplication are terminated in addition to the application itself. So all applications started withRUN ... WITHOUT WAITINGneed to be terminated in addition to therunOnServerapplication.
Finally, when supplying the GAS URL argument in GWA you may omit the full origin (for example,
http://host:port) and use a simple path such
as
/ua/r/simple:CALL ui.Interface.frontCall("mobile","runonserver",["/ua/r/simple"],[])If you use a full origin URL, ensure you use the same origin as the GWA application which invokes
the runOnServer call; otherwise, you will encounter an error. Both the GWA
application URL and the runOnServer application URL must have the same origin.
In contrast, GMI/GMA cannot omit the origin because the native mobile app always runs from a different origin.