Hi,
I wrote client script to close request with alert based on some condition , below i mentioned client script code. It is working fine but multiple times the alert pop up is displayed as shown in below screen shot.
Can anyone please help me to figure out this issue.
Client script:
var req = getControlValue('request','request_id');
var pro = getControlValue('request_unit','product_id');
var user = setDBValue("USER_DEF19",pro,req);
var plc = getControlValue('request','user_def19');
var plcou = getDBValue("COUNT_PLACE",plc);
var cou =round(plcou,0);
if (cou > 0)
var s = setDBValue("REQ_STATUS",req);
alert("substation is shut down!!");
Thanks
Ramya