cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
305
Views
0
Helpful
1
Replies

AXL query

richou68000
Level 1
Level 1

Hello,

I have a problem, I want to display on my form the phone's description instead of the SEP address.

This is my code :

<%

var phones = axlquery("listPhoneByDescription", "<searchString>%richard%</searchString>", callManager, callManagerUserId, callManagerPassword);

//var phones = axlquery("listPhoneByName", "<searchString>SEP%</searchString>", callManager, callManagerUserId, callManagerPassword);

var xmlDoc = new ActiveXObject("Msxml2.DOMDocument");

xmlDoc.loadXML(phones);

var objNodeList = xmlDoc.selectNodes("//name");

for (i=0; i<objNodeList.length; i++)

{

Response.Write("<option>"+objNodeList.item(i).text+"</option>");

}

%>

I think that this line can be the problem but I'm not sure :

xmlDoc.selectNodes("//name");

Somebody can help me?

1 Reply 1

tnooning
Level 1
Level 1

I think the problem is both listPhoneBy methods above return the same info, neither actually return the phone description. You'll probably need to loop through the results and do a getPhone to pull the actual description.

This response is returned by the listPhoneByXXX methods. It includes the phone GUID, name, and product.