Offline External Invocation Handler

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
MarcusLancaster
Posts: 48
Joined: Wed Nov 06, 2013 1:28 am

Offline External Invocation Handler

Post by MarcusLancaster »

Hi all.

I'd like to use an External Invocation Handler to allow a URL in an e-mail to fire up a specific form + data in my LR (RDMLX) app. However the form I'd like to run is OFFLINE.

This isn't a problem... as I can fire up javascript via the target form's onload event... but how do I get at the inbound parameters which are included on the URL - I'm guessing they will be accessed via a this.q_getProperty in my javascript... but I don't know what property name / syntax to use...

Has anybody done this? If so, have you got an example you could share?

Cheers.

Marcus.
Paul

Re: Offline External Invocation Handler

Post by Paul »

Hi Marcus,

I haven't tested this but it would be something like;

Code: Select all

this.q_getProperty('CurrentOp.Param%1');
Regards,
Paul
MarcusLancaster
Posts: 48
Joined: Wed Nov 06, 2013 1:28 am

Re: Offline External Invocation Handler

Post by MarcusLancaster »

Hi Paul,

Hmmmm... that didn't work. Did you get that code snip from the documentation or a shipped example?

Cheers.

Marcus.
MarcusLancaster
Posts: 48
Joined: Wed Nov 06, 2013 1:28 am

Re: Offline External Invocation Handler

Post by MarcusLancaster »

I found a reference to similar syntax in the RPG Offline doco, where it describes accessing GPS data via CurrentOp;

/* get the latitude from ‘GetGeolocation’ operation */
this.q_getProperty(' CurrentOp.SenderOp.Out.Coordinate.Latitude');


But can't find any reference to the syntax I might need to grab the parms off the calling URL...
Paul

Re: Offline External Invocation Handler

Post by Paul »

I used Geolocation example as a guide and applied it to how I thought the event parameters are structured.

I will look at this more today.
Paul

Re: Offline External Invocation Handler

Post by Paul »

Hi Marcus,

Looking at the documentation today, there is no indication that External Invocation Handlers are designed work offline.

I don't think this is possible.

Paul
Marco
Posts: 6
Joined: Wed Jan 15, 2014 6:40 am

Re: Offline External Invocation Handler

Post by Marco »

Hi Marcus,

I was able to accomplish this by setting the Invocation Form to be offline as well as the other form that you will navigating to. That said, I wasn't doing it from an email, but from a webview from inside Long Range.

Thanks,

Marco
Marco
Posts: 6
Joined: Wed Jan 15, 2014 6:40 am

Re: Offline External Invocation Handler

Post by Marco »

Hi Marcus,

I just verified that this also works as a link in an email. I went in airplane mode and was still able to launch LR from the email client.
MarcusLancaster
Posts: 48
Joined: Wed Nov 06, 2013 1:28 am

Re: Offline External Invocation Handler

Post by MarcusLancaster »

Hi Marco,

Thanks for confirming. I'm hoping that in a future release we will get the ability to pick up the URL parms when in offline mode... I guess via a property in the "onload" javascript.

Cheers.

Marcus.
Post Reply