Bind the drop down list to XML response from the web service

In Designer ES2, I'm trying to populate a drop-down list with the data returned by a web service, but can't seem to get the link right.

I created a web service using Workbench, which returns the following XML data (shown here in a text field for test purposes):

image1.PNG

However, when I bind this to the DataDropdownList control, LiveCycle seems to be putting the entire XML document in the drop-down list.

Liaison:

image2.PNG

(Full text of the link is connectionData.groupLeaderWebService.Body.invokeResponse.xmlData.document.)

Result:

image3.PNG

Therefore, a connection is made and the web service returns data, but it is not bound correctly as items in the list.

I need the drop-down list to display the individual names returned by the web service.  Finally, it probably will be expanded to include the name and identification number (text and value, respectively).

Can you see where I am going wrong with this?  Any help would be appreciated.

Thank you!

Toby

Oops. Good fishing. This should be pls.loadXML (form1.page1.footer.lots.rawValue, 0, 1);

Tags: Adobe LiveCycle

Similar Questions

  • Prepopulate the drop-down lists with xml file

    Hello world

    I'm trying to prepopulate a dropdown list using an xml file. There are many tutorials on the internet that allows me to do from the overview of the Designer tab. However, when I did it worked well, but I am not able to 'embed' the xml file so that the values appear in the workspace when the user starts a process.

    I tried to load the xml file with the contents of resource reading in the action profile of the first task and put the result in the "xmlPrepareData" but the problem is that I can't put all the values of the xmlPrepareData after because the xml model is not exactly the one used by LiveCycle.

    Any thoughts? Someone is already managed to prepopulate a dropdown list with an XML within the process?

    Kind regards

    Thomas

    OK gr8...

    Assuming you're able to get the XML process LC to your XDP/PDF form field.

    You can fix the XML from the drop-down under-

    clear the drop-down list box
    * DROPDOWN_Field.clearItems ();

    choiceList = XMLData.parse (* XML_Field.rawValue, false);

    divide the choiceList in an array of values

    choice = choiceList.resolveNodes("root.element[*].*NODENAME");

    var numchoices = choices.length;

    Adds an array of values in drop-down list
    for (var i = 0; i)< numchoices;="">

    {
    * DROPDOWN_Field.addItem (choices.item (i) .value);
    }

    * DROPDOWN_Field - is your field drop-down list.

    * XML_Field - is your XML data stored in a TextField.

    * NODENAME - is the name of the node in your XML to solve.

    I hope that Hepls...

    Regards-

    Chalukya.

  • Dynamically bind a drop-down list to a cell in a table

    Hello

    I create an advanced table (2 collars) of the following type:

    Code | Value
    === | ===
    one | lov by valid values for the code = one
    b | lov by valid values for the code = b
    -- | ---------
    -- | ---------


    I have a combo set for Col1 (code), but what I want is that, at the time where the user selects a value for the 'code' in the list of choices, a list of choices lov appears in col2, which allows the user to choose among valid "values" for the code = one.

    Similarly, it might be a different set of values in the lov for col2 (Value) for each row, the value of col1 (code).

    Is this possible and if so, how?

    Thank you for your comments.

    Saurabh

    Published by: sseth29 on July 7, 2009 15:56

    Published by: sseth29 on July 7, 2009 15:57

    See the dynamic Poplist section under the heading of the Standard Web Widgets from the OA Framework Devguide

  • What happened to the drop-down list next back and forth Often I want to go back two or three pages in a single jump, don't not clicking back, back, back!

    as the question says

    The drop-down list marker was removed from the Back/Forward button in Firefox 4.

    You can do one of the following:

    You need to update the following:

    • Adobe Shockwave for Director Netscape plug-in, version 11.0
    1. Check your plugin versions on one of the following links:

    2. Update to Shockwave for Director
      • NOTE: this is not the same thing as Shockwave Flash; This installs the Shockwave Player.
      • Use Firefox to download and SAVE the installer to your hard drive from the link in the article below (Desktop is a good place, so you can find it).
      • When the download is complete, exit Firefox (file > exit)
      • Locate and double-click it in the installer that you just downloaded, let the complete installation.
      • Restart Firefox, and look at your plugins.
      • Download link and more information: http://support.mozilla.com/en-US/kb/Using+the+Shockwave+plugin+with+Firefox
  • populating drop-down list from multiple instances of the subform

    I have a drop-down list xfa.form.assessment.Questions.Questionset.Questiondetail.FIBdetail.qObjlist

    That I want to fill it with the text of all instances of the xfa.form.assessment.Objectives.objectivesdetail.objective text field.

    The user determines how many instances of xfa.form.assessment.Objectives.objectivesdetail will take place.

    How can I write the addItem for the drop-down list to capture data from all instances of xfa.form.assessment.Objectives.objectivesdetail?

    Hello

    I tried to have the area of the exit of the texfield goal fill in the items in drop-down list, but he doesn't like it if 'white' filling has been hidden. So I code the following javascript in the input of the "White Fill" dropdown list event instead. This retrospective look at the objectives and loops through them:

    this.clearItems();
    this.rawValue = null; 
    
    var nCount = Objectives.objectivesdetail.instanceManager.count;
    console.println("nCount: " + nCount); 
    
    for (var i=0; i<=nCount; i++)
    {
         var vFld = xfa.resolveNode("Objectives.objectivesdetail[" + i + "]");
         var vObj = vFld.objective.rawValue;
         Questions.Questionset.Questiondetail.FIBdetail.qObjlist.addItem(vObj);
    }
    
    There are some potential problems with the form, that appear in the javascript console. You should check these.
    I hope this helps.
    Niall
  • How do complete you 1 text box with multiple drop-down list values

    I can fill in a text box with a value in a drop-down list, but if I have 2 drop-down list values going to the same area of text (multiple lines), the second drop-down list value removes the first value.

    (A similar code on the drop-down list 1 and 2 from the drop-down list)

    Change event - JavaScript

    If (xfa.event.newText == 'No') {}

    Form1.Page1.subform2.Description.RawValue = "no location listed.

    }

    If (xfa.event.newText == "Partial renting") {}

    Form1.Page1.subform2.Description.RawValue = "enumerated part place."

    }

    Do I have to Concat the fields in 1 text field so that it can have several values in drop-down list, and if so how do I do that?

    Thanks in advance for your help.

    Resolved:

    Place this script in the root of the subform in the FormReady - JavaScript event.

    oList var = this.getDeltas ();

    for (i = 0; i< olist.length;="" i="">

    {

    var oDelta = oList.item (i);

    oDelta.restore ();

    }

    Answer was found at http://forms.stefcameron.com/2008/09/29/restoring-the-of-your-form/

  • HOW TO CREATE A DROP-DOWN LIST ON A WEB PAGE LIST?

    I would like help on how to create a drop-down list on a web page.

    I know that its pretty basic, but I'm only a beginner!

    See you soon

    Dan

    http://CSS-tricks.com/2282-simple-jQuery-DropDowns/

    http://coding.smashingmagazine.com/2011/06/16/five-useful-interactive-CSS-jQuery-technique s-deconstruted / # mega - drop-down list

    http://vandelaydesign.com/blog/Web-development/jQuery-drop-down-menus/

  • list - restrictive entry visibility and external xml file in the drop-down list

    The question applies to the OPA 10.1, but if a solution requires a version more recent OPA (e.g., 12.1) we can update so please let me know what version your answer applies to.

    I have a series of tabs of a spreadsheet Excel that map different categories on each other and I want to implement this OPA so that there are six screens with drop-down lists and visible elements two on-screen menu will depend on the selected item in the display 1. list to display 3 items will depend on the selected item in the screen 2, which depends on the item selected on the screen 1, etc..

    For example,.

    1 screen can be States:

    Maryland

    Virginia

    New York City

    Georgia

    ...

    2 screen could then be counties: assuming that Virginia has been selected...

    Accomack

    Albemarle

    Alleghany

    ...

    3 screen could be cities: assuming that Accomack is selected...

    Exmore

    Parksley

    ...

    Basically I have large spreadsheet list of lists with items (one list a 2040 pieces) and so I can't manually enter easily list items.  I would like to 'specify the name of the list' and have the OPA to use an xml list (easily created my spreadsheet), but the OPA Help menu says "NOTE: this implementation of the xml list does not support default values or visibility...» "So it seems that I won't be able to make invisible inapplicable list items.  So, to use the fictitious example above, if I chose the State of Maryland, I will not applicable to Virginia or any other State counties, but Maryland is visible; Yet, all counties in the country should be included in the list in the first place.

    If someone knows a solution or another solution to this problem (other than creating custom functions) so please let me know.

    "Out of the box' for 10.1 you can try the following:

    Have simply a separate list for each of the sub-components. He can do even a little painful, but you have not at least custom functions or custom controls.

    On the first screen you have the attribute collection the State using the list of States (provided via xml).

    On the second screen you have the County collection attribute - but repeated 50 times - and then use visibility to show/hide the template you want (which then has the correct xml for the counties in the State).

    On the third screen you have your attribute for the city (once again the same attribute for each list) but isn't there it gets a little mean to 50 times counties in the State.

    In terms of writing that required visibility rules that you can probably leverage Excel to do much of the building of the rule for you to lists (remembering that the compiler takes that you as the user see in Excel, not the function that sees Excel)- so there is not a lot of extra work in the perspective of rules.

    The sticking point will simply put all of these attributes and binds the attribute visibility for the right control (and right xml).

    Proceed with caution (extreme!), but... If you're already Automation to create the XML lists from Excel, then you might want to automate the creation of xml screen. But be very careful. I've seen some projects that have used automatically generated screens and they did the job of the ok - but certainly a warning any time major health you do not use OPM to generate a component of OPM.

    Then... it is possible to do it manually - but you probably want to get involved some automation.

  • Not drop-down list values in the XML that is generated after completing the form

    Hello

    I have a form that has a drop-down menus of the filling of an XML file, the items in drop-down list to a text and value associated with it.

    The problem is when I generate the XML of the form value labels are coming in instead of the text in the drop-down list.

    Pls help. How can I get the text of the value of the dropdown list selected in the XML file?

    Thank you

    Ludovic

    Hello

    I would recommend going to the object > linking the palette and deselecting 'specify values ". In this way, the display values will be included in the XML, as the display value will be the same as the .rawValue from the drop-down list.

    However, this means that any script that references the drop down menus will use the values to display for the items and not the previous related values.

    Hope that helps,

    Niall

  • More simple way to complete the xml data in a drop-down list

    Hi all

    I have a dept.xml as below.

    <? XML version = "1.0" encoding = "UTF-8"? >
    < departments >
    Department < and > account < / Department >
    < departmentAdmin < / Department >
    Department < and > Security < / Department >
    < / departments >

    Can I know what is the easiest way to fill in the 'account', 'Admin' and 'Security' in a drop down list?  And how?  Can we by befriending pure?  Or has done by the script?

    Thank you all!

    CL

    To embed the XML data in the PDF file, open it in Acrobat and then:

    Forms-> manage form data-> import data.

    And you choose XML file.

    I hope this helps.

    Diego

  • Need help to parse the xml string to populate the drop-down list

    Here is my: problem

    I have a hidden text field that contains the text of an xml

    <>facilities
    < building >
    < name > Building A < / name >
    < name > building B < / name >
    < name > building C < / name >
    < name > building D < / name >
    < name > building E < / name >
    < name > building F < / name >
    < name > building G < / name >
    < name > building H < / name >
    < / build >
    < / facilities >

    My goal is to read this with JavaScript xml string to populate a drop-down list with values of element (name). Does anyone know how script that?

    Attached is a sample .xdp

    See you soon,.

    Jesse

    Here is an example of change. I put the code click on the button, so you can see it in operation... You can place this code in the event that makes sense for you. I also added another field to show the DOM (this is for debugging purposes and you can remove this field if you want).

    Paul

  • How to filter the XML related to drop-down list data source?

    Dear all,

    I quiet new to LiveCycle designer ARE for a few weeks I am working on it.

    Right now I have problem with filering XML Datasource with the drop-down list.

    I have XML files which includes data for the States and the city. I have one of my drop-down list associated with the State. My requirement is that I chose the 'State' the corresponding city names must appear in the second drop-down list.

    I searched the net and got two or three samples on it. But I failed to do my job of form as a requirement. Even if I generated the XML file structure given in the examples.

    Please check the attached xml file that I created.

    I have struckup right away. So, help me do this.

    Very much thanks in advance.

    Kind regards

    Sree Harshavardhana.

    Hello

    Your xml structure is virtually identical to one the week last with a similar question, http://forums.adobe.com/thread/518731.

    I've renamed the fields required in the attached example.

    It will be useful.

    Bruce

  • Set point problem selected in the drop-down list box that is the XML data provider

    HI - new to Flex, experienced Java dev., hoping someone can help me see the light of what should be easy but...

    I have a Flex 3 MXML application form that contains a ComboBox as follows:
    < mx:ComboBox id = "physRegion" editable = dataProvider = "{regionRequest.lastResult.region 'false'}" / > "

    The combo box is filled by the provider of data like:
    MX:HTTPService id = "regionRequest" url = "flexDAOServlet" resultFormat = "e4x" method = "POST" >
    < / mx:HTTPService >

    and the underlying XML code looks like this:
    <>region
    Northland < label > < / label >
    < value > 1 < / value >
    < / region >
    <>region
    Auckland < label > < / label >
    < value > 2 < / value >
    < / region >
    ...

    Drop-down list box loads the XML code very well. the user can select an item and the appropriate value is submitted to the server without problem. My problem is when I want to "recharge" the form with previous values.
    I can reload the text without problem fields.

    But I can't work in my ActionScript function, how to set the combo box so that it displays "Auckland" for example, the element with the value = 2. I'll be back this server id, even if I could get the XML code or label if that would help me solve this problem.

    I tried physRegion.selectedItem = "Auckland" - nope. "
    I tried physRegion.selectedItem = 2 - nope.
    I tried
    var XML = myXML:XML ("< region > < label > Auckland < /label > < value_2 > < value > < / region >");
    physRegion.selectedItem = myXML;
    and - nope.

    I know that I'm a new style user here error (and thank you for reading this far! your patience is appreciated) but I can't for the life of me see what it is. Can anyone help?

    Many thanks in advance for clues. Apart from that, I'm loving Flex.
    Kind regards
    Adrian

    Two things to note. The only problem with the function that has provided ChiefRocka00 is that it is based on the identifier of the data, which means your always limited to have that be the identifier of your value. Personally, I'll be back queries a lot of times where the labelFIeld and dataField aren't labels / data pairs a suggestion would be to add a third parameter and have it checked for this identifier instead of the data. The other thing to note is that it is more common to use selectedIndex instead of selectedItem. If you do not want to do something more like physRegion.selectedIndex = selectCboIndexByData ("physRegion, ' Auckland", label) by using the update function of

    public void selectCboIndexByData(theCbo,_theDataValue,_identifier:String):Number {}
    for (var i: Number = 0; i< thecbo.dataprovider.length;="">
    If (theCbo.DataProvider.getItemAt (i) [ID] == theDataValue) {}
    Return i;
    }
    }
    return 0;
    }

  • Adobe Acrobat 9: Javascript populated the drop-down list box - response selected array will not save

    I have a combo on one of my forms box that is filled with the help of a Javascript array.  The drop-down list box is filling very well, but when an item is selected in this drop-down list box, the selected item does not save when the user saves the document.  Any suggestions as to what is the problem and how it can be corrected?  I am a loss to know where even to start the search.  Any help is greatly appreciated.

    Thank you.

    Lisa

    It seems that the drop-down list box may be getting filled with code that runs when the form is opened. If so, it will overwrite the value selected, whenever it opens. The solution would be to change the code so that it is not than that. If not, you can post the form somewhere so we can take a look?

  • Export the value of the drop-down list of failure

    Hello colleagues!

    I created a simple form using LiveCycle Designer, which consist of two elements of text and drop-down list box:

    The drop-down list is filled with XML data:

    <MyData>
    <country/>
    <countries>
    <item uiname="United States" token="US"/>
    <item uiname="Vietnam" token="SRV"/>
    </countries>
    <state/>
    <US>
    <item>California</item>
    <item>New York</item>
    <item>Texas</item>
    </US>
    <SRV>
    <item>An Giang</item>
    <item>Bac Giang</item>
    <item>Bac Kan</item>
    </SRV>
    </MyData>
    

    Then, I handed the form, received a response and he added in the base file of responses:

    Later, I tried to export the responses, but it freezes. I think that the loop is executed, because I can move the progreess window, I can close the wndow to Adobe Acrobat, but when I try to cancel the export process nothing happens:

    So I discovered that the problem is in the drop-down list populated from XML data and list which is binding against XSD or XML elements.

    I don't know what I should do next.

    Links:

    Simple form. XML data.

    Adobe support confirmed that the problem with dropdown lists bug. Will be fixed in future version.

Maybe you are looking for

  • Firefox using too much hard disk space

    According to my Panel, mozilla firefox takes 8 GB of my hard drive.

  • Battery problem Satellite C660D-155

    Battery suddenly stopped charging.Laptop works with the power cable is plugged.The battery symbol, said "4% available (plugged - do not load).Tried a different power cable to another Satellite, same problem. How will I know if the problem is the batt

  • Splendor Pro L650 - 17 p with annoying noise

    Hello I have a satellite pro l650 17 p for 1 week now.I hear a very high noise which is really annoying. It stops only when I run some more programs on my computer or when I open some larger data.Its not very loud but I hear it when I'm working on my

  • HP Laserjet P1102w! Could not update software!

    Attempted multiple times to perform the update on Laserjet P1102w. Dialog box has received the error: "HP Laserjet P1102w! Cannot update Firmware.  Power cycle and try again. » I am printing to the unit very well.

  • Ink cartridge compatibility

    I recently bought an HP Deskjet all-in-One Printer.It 2540 a 61ink cartridges. My question is, can I use my previous printer, Officejet 4500 601 cartridge and install them in the 2540