Offline External Invocation Handler
-
MarcusLancaster
- Posts: 48
- Joined: Wed Nov 06, 2013 1:28 am
Offline External Invocation Handler
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.
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
Hi Marcus,
I haven't tested this but it would be something like;
Regards,
Paul
I haven't tested this but it would be something like;
Code: Select all
this.q_getProperty('CurrentOp.Param%1');Paul
-
MarcusLancaster
- Posts: 48
- Joined: Wed Nov 06, 2013 1:28 am
Re: Offline External Invocation Handler
Hi Paul,
Hmmmm... that didn't work. Did you get that code snip from the documentation or a shipped example?
Cheers.
Marcus.
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
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...
/* 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
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.
I will look at this more today.
-
Paul
Re: Offline External Invocation Handler
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
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
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
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
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.
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
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.
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.