AXL query

Unanswered Question
Jun 13th, 2008

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?

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Sascha Monteiro Sat, 06/14/2008 - 16:50

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?)

richou68000 Tue, 06/17/2008 - 23:21

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.

Sascha Monteiro Thu, 06/19/2008 - 11:13

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

richou68000 Thu, 06/19/2008 - 23:05

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,

richou68000 Thu, 06/19/2008 - 23:44

Hi,

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

stephan.steiner Fri, 06/20/2008 - 09:03

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?

Actions

This Discussion