We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Issue in Declarative Action Script

Not applicable

Hi All,

 @Brad Tilton

I had written one List Declarative Action where Implement as : Client script 

in Client Script i had written the below code in that GlideAjax Code was not working it was not triggering the script include only:

function onClick() {
    var myChecked = g_list.getChecked().toString();
    alert(myChecked);
    var query = "sys_idIN" + myChecked;
    alert(query);
    alert(g_list.getListName());
   var table = g_list.getListName();
    var ga = new GlideAjax('OutreachDelete');
    ga.addParam('sysparm_name', 'deleterecord');
    ga.addParam('sysparm_query', query);
    ga.addParam('sysparm_table', table);
    ga.getXMLAnswer(updateCampus);
     alert("script include");
    function updateCampus(answer) {
          // var clearvalue; // Stays Undefined
       alert(answer);
        if (answer) {
            alert("true");
            g_list.refresh();
        }
    }
}
 
please Go through the code , if their is any issue please reply.
 
Thanks,
siva
0 REPLIES 0