[RDMLX]Activating LongRange from a URL

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
Rieko Saitoh
Posts: 13
Joined: Mon Dec 07, 2015 4:34 pm

[RDMLX]Activating LongRange from a URL

Post by Rieko Saitoh »

Hi,

I would like to activating LongRange from a URL by using e-mail. I will write the URL activating LongRange in the body of the email and the user will open the link and activates LongRange.

I have refered to the following manual.
https://www.longrangemobile.com/docs/la ... omaurl.htm
URL example: longrange://performaction/?param,1=employee&param,2=DEMOUSR423

But, on the device's mailer(Gmail), "longrange://" is not recognized as a hyperlink. Therefore, we can not open the link. Devices for testing are iphone and android phone.
Does anyone use the URL to activate LongRange successfully using e-mail? Is it possible to recognize the URL in the mail body as a hyperlink?
In that case, could you tell me the specific method?

Thank you.

Best regards,
Rieko Saitoh
LANSA japan
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: [RDMLX]Activating LongRange from a URL

Post by tsupartono »

You can use an HTML page that redirects to the longrange:// URL.

With this method, you need to:
  • Have access to a server where you can put the HTML page.
  • Your LR app can't be offline as it needs to access the HTML page on the server.
In the email, instead of saying longrange://xxxxxx, you would say e.g. http://myserver.com/open_longrange.html#my_param.
Gmail would recognise it as a link since it's using standard http scheme.

Have a look at the attached HTML (contained in the ZIP file).

openlr.zip
(355 Bytes) Downloaded 377 times

To test it, put that HTML on your server (e.g. demo.lansa.com)
The HTML expects one parameter (employee number) - specify the parameter in the anchor part of the URL (using the # sign).

To open employee 3 in LongRange via the HTML(assuming the server name is demo.lansa.com), this is the URL:

http://demo.lansa.com/openlr.html#3

_
Post Reply