Hi Rajesh!
There are a few ways to access the case property values but this is the easiest if you are just wanting to read them:
var location = "";
var locationPropName = this.solution.getPrefix()+"_Location";
if (payload.caseEditable) {
var theCase= payload.caseEditable.caseObject;
location= theCase.attributes[locationPropName];
} else {
if (payload.change.id == locationPropName)
location = payload.change.value;
}
if (location != "") {
var mapURL = "\/\/maps.google.ca/maps?output=embed&q=" + location;
/* alert (mapURL); */
return mapURL;
}
You also have a typo in your caseEdi<ta>ble but I assumed that is just here and not your actual code (right?).
There is also a method on the caseEditable to load the property values. They are not loaded by default since there could be lots of them and and widgets (like Stages) don't need them. Normally one of the page widgets will do this before you access it from a script but that depends on event timing.
------------------------------
DAVE PERMAN
------------------------------