getXmlWait not working for the workspaces

Ansh Mahajan
Tera Contributor

Hi Everyone, 

 

i am trying to use getXmlWait for a onsubmit client script. it is working fine on the instance side but not working on the workspace side. can anyone help me with that ?

2 REPLIES 2

Community Alums
Not applicable

Hi @Ansh Mahajan ,

Unfortunately it won't work!!

What is missing from the Workspace Clients Script in this topis is a callback function on the getXML().

Here is example from the docs:

var ga = new GlideAjax('HelloWorld');
ga.addParam('sysparm_name', 'helloWorld');
ga.addParam('sysparm_user_name', "Bob");
ga.getXML(HelloWorldParse);
 
function HelloWorldParse(response) {
  var answer = response.responseXML.documentElement.getAttribute("answer");
  alert(answer); }

Please note that the use of getXMLWait() is no longer supported.

Other than that always check that the both the UI Action is has client marked as true and that the Script Includes is marked as "Client callable".

 

Hi @Community Alums ,

 

Do you have any use case for not letting an incident record to be resolved if there is any incident task open for that? P.S need to achieve this using onsubmit client script which should work on workspace to.

 

Regards

Ansh Mahajan