Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

AXL query

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?

6 REPLIES

Re: AXL query

hi,

I think the listPhoneByDescription only gives you the flexibility to search by description,

i.e. to filter.

As far is I could see in the axlapi schema, the return always has the same phone fields, name/product/model...

I think you have to do a executeSQLQuery and then retrieve name/description

(what is happening in the next step of your app?)

New Member

Re: AXL query

Hi,

After I need to find the IP address of the phone thanks to the "devicelistx.asp" in order to send a text message to a phone which is selected on a form.

Re: AXL query

ok, so you can do what I advised in my previous post, use the description as text for the select item, and pass the name to your next step

New Member

Re: AXL query

Hi,

Have you an idea of how I can make this? I'm a novice with this method and I don't know how can I do this.

Regards,

New Member

Re: AXL query

Hi,

Have you an idea of how I can make this? I'm a novic with this method.

Re: AXL query

Well, let's try to help you help yourself then.

What do you understand about the APIs, and which commands do you think you need to use and why?

189
Views
0
Helpful
6
Replies