MAP Address closing Longrange App

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
rgjohnson
Posts: 19
Joined: Wed May 09, 2012 11:55 pm

MAP Address closing Longrange App

Post by rgjohnson » Wed Jan 11, 2017 11:06 am

We have a program that has been in use for long time using the following code to display a MAP element on a phone:

LRNG_Using('Fields.MapView');
LRNG_SetProperties(
'Type : Map'
:'Layout.Row : 1'
:'Layout.Col : 2'
:'Layout.Cols : 1'
:'ShowMyLocation : True'
:'Zoom : 10'
:'Location.Street : ' + %trim(delivery.hzad01)
:'Location.Locality : ' + %trim(delivery.hzcy01)
:'Location.PostCode : ' + %trim(delivery.hzzp01)
);
LRNG_EndUsing();

We have recently discovered that if line one of the address (Location.Street property) contains certain words instead of a valid address, the LongRange application will close and the user will be returned to the phone desktop. Normally an invalid address just does not display a valid location on the map, but in these cases the error is actually causing LongRange to shutdown on the phone. Attached is a screenshot of an address that causes the app to end. The screen will display for a couple seconds before closing the app. If the address line begins with "attn:" or "atx" or "atn" or other random words, the map errors out. Most other invalid addresses simply display a blank map. Is this actually a LongRange error handling issue, or is there a way of knowing "special names" or something on maps that cannot be used?
Attachments
maperror.PNG
maperror.PNG (217.86 KiB) Viewed 4376 times

tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: MAP Address closing Longrange App

Post by tsupartono » Wed Jan 11, 2017 8:25 pm

This is a defect and will be corrected in the next release.

rgjohnson
Posts: 19
Joined: Wed May 09, 2012 11:55 pm

Re: MAP Address closing Longrange App

Post by rgjohnson » Thu Jan 12, 2017 2:42 am

Thanks Tony. Do I need to open up a support issue for this or will it be taken care of without?

tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: MAP Address closing Longrange App

Post by tsupartono » Thu Jan 12, 2017 4:01 pm

Hi Greg,
LANSA Support has opened an issue based on your post, so no further action is required.

Post Reply