Page 1 of 1

MAP Address closing Longrange App

Posted: Wed Jan 11, 2017 11:06 am
by rgjohnson
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?

Re: MAP Address closing Longrange App

Posted: Wed Jan 11, 2017 8:25 pm
by tsupartono
This is a defect and will be corrected in the next release.

Re: MAP Address closing Longrange App

Posted: Thu Jan 12, 2017 2:42 am
by rgjohnson
Thanks Tony. Do I need to open up a support issue for this or will it be taken care of without?

Re: MAP Address closing Longrange App

Posted: Thu Jan 12, 2017 4:01 pm
by tsupartono
Hi Greg,
LANSA Support has opened an issue based on your post, so no further action is required.