MAP Address closing Longrange App
Posted: 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?
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?