<< Click to Display Table of Contents >> Navigation: »No topics above this level« TOC : Script API > JavaScript > JavaScript API > Component > ReportTemplate > Event >OnLocationUpdated |
Occurs when the location information is updated with using _StartUpdateLocation fuction or global.address_updatetype parameter or use TriggerLocationUpdated, TriggerLocationUpdatedByDocIndex function.
Prototype :
var OnLocationUpdated
(
bool ozarg_result,
string ozarg_updatetype,
Location location,
Address address
)
Arguments :
ozarg_result |
Whether the update location information successfully When the update succeeds it returns true. Otherwise it returns false. |
ozarg_updatetype |
refer to LocationUpdateTypeConst |
location |
Location object which has location information |
address |
Address object which has Address information |
Reference :
When OnLocationUpdated event be called with TriggerLocationUpdated, TriggerLocationUpdatedByDocIndex function, ozarg_result returns true and ozarg_updatetype returns empty value.
In an unsupported environment if OnLocationUpdated event be called with _StartUpdateLocation function or global.address_updatetype parameter, Location and Address object return null.
If a specific value is returned from this event, the fullAddress property value of the Address object is changed.