//alert("Variable is: " + var_category);
<PDM_LIST PREFIX=ci WHERE="delete_flag = 0" FACTORY=pcat>
if (var_category == "$ci.sym")
I called this function as follows:
<PDM_MACRO name=dtlHier hdr="Incident Area" attr="category" autofill=yes common_name="ss_sym" factory=pcat_in_ss make_required=yes size=30 evt="onChange=myFunction()">
Somehow, it is not updating the zescalationcode field in the cr object. Apart from it, this function is only getting called when we are providing the category value after typing the characters and selecting from auto-fill options. We need that this function gets called even if the employee select the category from the lookup option. When we try to call this function on onBlur event, it is getting called repeatedly and we need to close the browser window to get rid of that.
Kindly provide your suggestion on this or an alternative approach that can make this task easier.
Thanks & Regards,