Page 1 of 1

Offline External Invocation Handler

Posted: Fri Feb 07, 2014 4:17 am
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.

Re: Offline External Invocation Handler

Posted: Fri Feb 07, 2014 10:49 am
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

Re: Offline External Invocation Handler

Posted: Fri Feb 07, 2014 5:48 pm
by MarcusLancaster
Hi Paul,

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

Cheers.

Marcus.

Re: Offline External Invocation Handler

Posted: Fri Feb 07, 2014 8:28 pm
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...

Re: Offline External Invocation Handler

Posted: Mon Feb 10, 2014 9:56 am
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.

Re: Offline External Invocation Handler

Posted: Mon Feb 10, 2014 3:48 pm
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

Re: Offline External Invocation Handler

Posted: Tue Feb 18, 2014 4:25 am
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

Re: Offline External Invocation Handler

Posted: Tue Feb 18, 2014 5:18 am
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.

Re: Offline External Invocation Handler

Posted: Tue Feb 18, 2014 6:12 pm
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.