[RPG] The Data property of Web View

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
Taku Izumi
Posts: 12
Joined: Wed Jul 10, 2013 12:23 pm

[RPG] The Data property of Web View

Post by Taku Izumi »

Hi,

I am investigating to how to get the Latitude and Longitude of the url parameter from the Google map loaded in Web view.

I think that it may be to do it if use the Date property of Web View.

data_property.PNG
data_property.PNG (10.45 KiB) Viewed 3118 times

However, there is no more information about this.
Is there a sample for the Data property and ECL functions?

Regards,
Taku
jasonzhou
Posts: 130
Joined: Wed Jan 11, 2017 3:26 pm

Re: [RPG] The Data property of Web View

Post by jasonzhou »

I'd like to know more details about this. Do you mean that you load an url in webview and want to send url parameters to RPG?

if yes, then you can send url parameters to RPG by using the following Javascript code:

Code: Select all

var DATA={};
DATA.Location.Lat = latitude;
DATA.Location.Long = longitude;
LONGRANGE.Form.setData(DATA);
in RPG code, you can get DATA by using the following code:

Code: Select all

Latitude = LRNG_GetPropasStr('/Form.Fields.WebView.Data.Location.Lat');
Longitude = LRNG_GetPropasStr('/Form.Fields.WebView.Data.Location.Long ');
Post Reply