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?
MAP Address closing Longrange App
MAP Address closing Longrange App
- Attachments
-
- maperror.PNG (217.86 KiB) Viewed 4376 times
-
- Posts: 289
- Joined: Wed Apr 18, 2012 10:21 am
Re: MAP Address closing Longrange App
This is a defect and will be corrected in the next release.
Re: MAP Address closing Longrange App
Thanks Tony. Do I need to open up a support issue for this or will it be taken care of without?
-
- Posts: 289
- Joined: Wed Apr 18, 2012 10:21 am
Re: MAP Address closing Longrange App
Hi Greg,
LANSA Support has opened an issue based on your post, so no further action is required.
LANSA Support has opened an issue based on your post, so no further action is required.