AXL query

Unanswered Question
Jun 13th, 2008
User Badges:


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
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Sascha Monteiro Sat, 06/14/2008 - 16:50
User Badges:
  • Silver, 250 points or more

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
User Badges:

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
User Badges:
  • Silver, 250 points or more

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
User Badges:

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
User Badges:

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
User Badges:
  • Silver, 250 points or more

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