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

Tags: Adobe LiveCycle

Similar Questions

  • How to change the items in a drop-down list box that is part of an array of clusters

    Hello

    In the attached vi, I have an array of clusters and each cluster contains two drop-down list boxes. How can I edit the items in the drop-down list box 1 for all elements in the array? (All elements of list box 1 has the same elements.)

    By way of illustration, I have also included the case of trivila, for example, edit the items in a separate drop-down list box that is is not part of an array of clusters (combo box 3). Please notify. Thank you.

    Peter

    Right click on the drop-down list box and select Create-> Node-> String() property. Place it on the block diagram. Change to write (right click) and then feed him an array of strings.

  • How to increase the length of a drop down list?

    Hello

    I hope you do well!

    I have a page of the ADF that was created automatically to a human task.

    I have several drop-down lists (SelectOneChoice) in the form, but they are sized according to the data in it.

    It seems weird with different sizes, if I want to make the size of the set of fixed length. How can I do?

    I tried changing the 'size', 'width' options, but nothing works. Even try a few forums. You please help me in this regard.

    Thanks in advance.

    Concerning

    RaviKiran

    Hello

    I have it!

    Width: 175px in ContentStyle the fact. Thank you.

  • How do I wrap text in a drop-down list using JavaScript?

    How do I wrap text in a drop-down list using JavaScript?

    The field name must be in quotes in the first line.

  • How to import a table from a drop down list?

    I am very new to ColdFusion and learn things I want.  I wonder how to import a table from a drop-down list.  I created the table and the drop-down list but cannot make it work properly.  I would like to see a small example.

    Please help thanks...

    Here is a very simplistic example. Please research each tag in the documentation to see how they can be used:

    ArrayNew (1) >

    Sorry for formatting issues.

    See you soon

    Eddie

  • Populate drop-down list with the results of several drop-down lists

    Hi, I am creating a form where the results of two drop-down lists then would fill another drop-down list. I'm not new to javascript, but I'm new to using it in Acrobat, so while I found some answers to this: Drop-down list fill in multiple fields of text. I don't know where to implement this, if it is still the right thing, I'm looking for pipes for

    Oh and I use Acrobat Pro DC. Any help would be much appreciated!

    OK, you can create a function at the level of the document that is called in the Validate event of each of the two first drop down menus, something like:

    Function in JavaScript to the document level

    function updateDropdown() {}

    Get references to the drop-down menus of entry

    var F1 = getField ("DropdownList1");

    var F2 = getField ("DropdownList2");

    Refer to the output drop-down list

    F3 var = getField ("DropdownList3");

    Get the values of input field, as strings

    var s1 = event.target = f1? Event.value: f1.valueAsString;

    var s2 = event.target = f2? Event.value: f2.valueAsString;

    Fill the drop-down list of output with the elements, or deselect it if either input dropdown is 'empty' (single topic area)

    If (s1 = "" |) s2 === " ") {

    F3.clearItems ();

    } else {}

    F3.setItems (["", s1, s2]);

    }

    }

    In the two first downs Validate event, call this function like this:

    updateDropdown();

    You can of course name the function you want. More information about the properties and the methods used in the code are available in the Acrobat JavaScript documentation.

  • If statement to change the items in a drop-down list

    Is there a way to change the options in a drop-down list in a script (without data binding)? So I have a drop down list and depending on what the user selects the second drop-down list will have different options. These elements can be specified by an if statement in the preOpen the second dropdown list event? The form will be filled out offline, so I don't want to put a link of data binding.

    Thank you!

    Hello

    There are at least two ways, as shown in http://forums.adobe.com/message/4321707#4321707.  Basically clearItems/addItem if pre Reader 9.0 or setItems supported if you use Reader 9.0 or later.

    Bruce

  • Download the news of a drop-down list for a field of text box

    Its that simple! That's all I need to know! The code to add to the information in a drop-down list (_cb) to a text field. I need to know wear put on the script IE in the action on the _cb layer. Your all!

    on the timeline that contains your combobox with instance name _cb that you can use:

  • How to trigger a refresh of a drop-down list when the selection is changed

    Hello

    This is a general question of ExtendScript, but since I work with FM, I'll ask here first. I have a bit of a paradox here and I'm not sure of the best way to manage it.

    I have a dialog box with a drop-down list, where I want to refresh some controls when the user changes the selection in the list (dropdownList.onChange). This includes them refresh the content of the list itself. However, the problem is, whenever I try to update the content of the list, onChange triggers again. So, if I put the call to update box in the onChange handler, it will result an infinite loop, because my upgrade function fires onChange when it refreshes the list.

    Does anyone know a better methodology, where I can safely triggers a refresh of a drop-down list in the list's onChange event handler? I really wish that onChange was reserved for an action of the user only, or at least there is a property for this purpose.

    Russ

    Hi Fabio,.

    You can't "Refresh" a menu drop-down.

    But you can rebuild.

    You must do it "manually".

    As I do:

    1. I have a picture I want to show in the dropdownlist control.

    2. I have delete all children: myList.removeAll ();

    3 I have rebuild the list via mylist.add ("item", "myArray [index] in a for - loop.

    But if you know the exact position of the elements to remove or add, you can do so via splice()

  • dynamically load the Options in a drop-down list in C++

    Hey guys,.

    I'm trying to dynamically load items Option in a drop-down list by using C++.  I have a function in my class of WorkManager file that does the trick:

    QStringList WorkManager::getListOfItems() {
        int i = 0;
        QStringList taskNames;  // used for debugging mainly, so i can print the list out to debug
        QList  myObjects = m_model->toListOfObjects();
        DropDown * dpList = bb::cascades::Application::instance()->scene()->findChild("scriptListDropDown");
        if (dpList != 0 ) {
            dpList->setSelectedOption(0);
            dpList->removeAll();
            for (i = 0; i < myObjects.size(); i++) {
                Task * myTask = (Task *) myObjects[i];
                taskNames.append(myTask->taskName());
                dpList->add(Option::create().text(myTask->taskName()).value(myTask->command()));
    //          delete myTask;  // do I need to delete the task object?
            }
    //      qDebug() << "WorkManager::getLIstOfItems(), ---> list of tasks is : " << taskNames;
            return taskNames;
        } else  {
            qDebug() << "WorkManager::getListOfItems(), ---> dpList was 0";
            return taskNames;  // empty list
        }
    }
    

    I also found this thread:http://supportforums.blackberry.com/t5/Native-Development/Adding-options-to-a-DropDown-from-c/m-p/21... that helped me get the filled drop-down list when the application starts.

    However, I need to re - fill list from time to time, when the list (a GroupDataModel) changes.  calling the function above a second time anywhere in my application appears to hang the application immediately.

    I think / thought it might have something to do with the slot for the onSelectedValueChanged, but I can't understand it.

    It seems down right when I do dpList-> removeAll().

    I also can't seem to find the right place to call this function to an object of type in my class.  I think it's because the drop-down list is not ready yet as the dpList * is always 0 unless what I call after the line:

    app->setScene(root);
    

    in the applicationui.cpp file.  Calling it works on start-up, but trying to update the list later (by removeAll() and recreate) causes the app crashing.

    is there a better way to do it?  .. and make it safer?  I can't understand how to do this.

    Thank you!

    J

    First, drop the:

    dpList->setSelectedOption(0);
    

    Not only if it is not necessary, but it will explode your application if the function is called when there is already no options in the menu dropdown.

    Also, do NOT delete the task, because it is still owned by the datamodel. I also see that you use type casting C, which just blindly accepts your cast, even if it's a mistake. Instead, if you know for sure what kind it will be this way instead:

    Task* myTask = static_cast(myObjects[i]);
    

    If you are not sure if the type you are casting the is the type you need, use the dynamic_cast instead:

    Task* myTask = dynamic_cast(myObjects[i]);
    

    The advantage of this more static_cast , is that if you try to perform a type cast is not compatible, then myTask will be set to NULL.

    Alternatively, Qt offers a replacement for dynamic_cast which works on platforms where is not regular C++ casts.

    Task* myTask = qobject_cast(myObjects[i]);
    

    It is functionally equivalent to dynamic_cast, but as I said, it works on all platforms that Qt exists, whereas dynamic_cast cannot.

    Once you did get back to us.

    oddboy wrote:

    Hey guys,.

    I'm trying to dynamically load items Option in a drop-down list by using C++.  I have a function in my class of WorkManager file that does the trick:

    QStringList WorkManager::getListOfItems() {
        int i = 0;
        QStringList taskNames;  // used for debugging mainly, so i can print the list out to debug
        QList  myObjects = m_model->toListOfObjects();
        DropDown * dpList = bb::cascades::Application::instance()->scene()->findChild("scriptListDropDown");
        if (dpList != 0 ) {
            dpList->setSelectedOption(0);
            dpList->removeAll();
            for (i = 0; i < myObjects.size(); i++) {
                Task * myTask = (Task *) myObjects[i];
                taskNames.append(myTask->taskName());
                dpList->add(Option::create().text(myTask->taskName()).value(myTask->command()));
    //          delete myTask;  // do I need to delete the task object?
            }
    //      qDebug() << "WorkManager::getLIstOfItems(), ---> list of tasks is : " << taskNames;
            return taskNames;
        } else  {
            qDebug() << "WorkManager::getListOfItems(), ---> dpList was 0";
            return taskNames;  // empty list
        }
    }
    

    I also found this thread:http://supportforums.blackberry.com/t5/Native-Development/Adding-options-to-a-DropDown-from-c/m-p/21... that helped me get the filled drop-down list when the application starts.

    However, I need to re - fill list from time to time, when the list (a GroupDataModel) changes.  calling the function above a second time anywhere in my application appears to hang the application immediately.

    I think / thought it might have something to do with the slot for the onSelectedValueChanged, but I can't understand it.

    It seems down right when I do dpList-> removeAll().

    I also can't seem to find the right place to call this function to an object of type in my class.  I think it's because the drop-down list is not ready yet as the dpList * is always 0 unless what I call after the line:

    app->setScene(root);
    

    in the applicationui.cpp file.  Calling it works on start-up, but trying to update the list later (by removeAll() and recreate) causes the app crashing.

    is there a better way to do it?  .. and make it safer?  I can't understand how to do this.

    Thank you!

    J

  • Related question drop-down list help

    In my dropdown menu, I have several different time zones and they are all related number of UTC offset. The problem is that when I click on a zone (for example Russia), he returned to the zone which precedes it in alphabetical order with the same offset from UTC. This is problematic because many different countries sharing the same UTC offset (that is-14-14).

    I wonder if there is a way to stop the drop-down menu to change automatically in a different time zone that has the same offset or if there is a way to get into the drop-down list and add all variable offsets.

    I'm new to JS if possible sentence there for a beginner. I never used before livecycle but know C++ and Java, and will have a hard time setting. With all the resources out there, it is difficult to find a good place to get a Uni livecycle background so if anyone has recommendations on the reference material so I would be interested in this good.


    Thank you.

    Hello

    The problem is that the bound value represents the value of the object, so that it always displays the first item in the display which corresponds to the bound value.

    We know by one of the LC Designer, setItems(), methods that Adobe will at some point in the future allow us to link several values in a drop-down list object. However for now you cannot have a single value given.

    But there is always a workaround solution. If you set values the display of elements to include the country. Thus, for example for a display item «Russia», the bound value would be "Russia,-14 a 14.

    It is a unique value in the drop-down list, so it will not solve the current problem.

    The last step would be to analyze parts of the bound value, so that you get the offset of UTC, which you can then use in your script.

    There is an example here: http://assure.ly/HjRnIN.

    Hope that helps,

    Niall

  • Help select the value from a drop-down list box

    Hello

    I develop a script (in JavaScript) which will allow a user to select an export PDF presets (that are loaded in a drop-down list) and then export the InDesign file to PDF, by using the selected PDF preset.

    I have the combo fill properly and I am also able to export to PDF correctly, however I have a problem setting the preset has been selected by the user. Here are some of my code fragments:

    Drop-down list:

    with(borderPanels.add()) {

         pdfDD = dropdowns.add();

         sl = new Array();

         for (i = 0; i < app.pdfExportPresets.length; i++)

         sl.push(app.pdfExportPresets[i].name);

         pdfDD.stringList = sl;
         pdfDD.selectedIndex = 0;

    }

     

    ...

     

    myPreset = pdfDD.selectedIndex;

    In PDF format:

        // Open, Export, & Close
        for (i = myFileAmount; i >= 0; i--) {
            app.open(File(myFolderContents[i]));

            createHyperlinks();

            app.activeDocument.exportFile(
            ExportFormat.pdfType, File(myFolder.fsName + "/" + app.activeDocument.name.split(".indd")[0] + ".pdf"), false, myPreset);
            app.activeDocument.close(SaveOptions.no);
        }

    During the passage of myPreset, it is defined as 6 (the index from the drop-down list).  How can I set myPreset that the real value of what has been chosen?

    Thank you!

    In view of your code, you probably need something like:

    myPreset = app.pdfExportPresets.itemByName (pdfDD.stringList [pdfDD.selectedIndex]);

    @+

    Marc

  • Make visible or invisible drop according to the value of another drop-down list. Help!

    Hello

    I need to create the following form... I want to choose at the beginning of the shape between 3 options (imagine: 'Opt1', 'Opt2' and 'Opt3'). And after that, I would like to make visible 10 different lists. I mean, if I choose 'Opt1', 10 drop-down lists related to 'Opt1' will become visible (the drop-down list together, including the text of the title and the clean drop-down list). Otherwise, if I choose 'Opt2', 10 drop-down lists related to 'Opt2' will become visible and the same 'Opt3 '.

    This problem, which seems to be very easy to resolve, it is impossible for me. I have read hundreds of forums and manuals, but I can't find the solution. I tried with several thousands of events, but I can't do the form works as I want... So, please, can someone help me?

    Thank you very much.

    Hello

    Here is an example. The script is located in the event of changing the drop-down list. The easiest way is to group your drop-down menus in subforms, then simply script for the visibility of three subforms, instead of 30 drop-down menus.

    The script focuses on the choice of the user and changes the visibility by using a switch statement. One if exposed to the exit event would work as well.

    switch (xfa.event.newText)
    {
         case 'Option 1':
              option1.presence = "visible";
              option2.presence = "hidden";
              option3.presence = "hidden";
              break; 
    
         case 'Option 2':
              option1.presence = "hidden";
              option2.presence = "visible";
              option3.presence = "hidden";
              break; 
    
         case 'Option 3':
              option1.presence = "hidden";
              option2.presence = "hidden";
              option3.presence = "visible";
              break; 
    
         default:
              option1.presence = "hidden";
              option2.presence = "hidden";
              option3.presence = "hidden";
              break;
    }
    

    Note that all three subforms are hidden in Design view. The drop-down list choice makes the appropriate subform visible.

    In design mode, you can select a subform in the view of the hierarchy and in the object/field tab change its visibility to visible, if you want to work on it in the design.

    Hope that helps,

    Niall

  • Make a field of text/hide according to the results of a drop-down list box

    Hello

    I wonder if someone could help me with this. I want to show/hide some text boxes in my form according to the choice made by the person filling in. For example, there is a dropdown list containing a selection of numbers 1-4. If 1 was selected, the text boxes below 1 would be visible and obligatory, if the 2 have been chosen, 2 text boxes below would be visible and required etc...

    I'm new to FormCalc (only started using it this morning), so simple a possible explanation would be fantastic.

    Thanks for reading!

    Of course, you can have javascript and formcalc in the form. Not only the two in the same field, same event; D

    Okey, let's try some things:

    (1) check if the "binding" from the drop-down list is the same as the values that you choose. In the script you are referring to the bound values.

    (2) other names for the Textfields would be better, because it is more difficult to refer to "Textfield1 [1]" then to for example: 'New '. I was just to lazy to give them names. (If it's on another page or subform, you refer to the fields correctly: as MyForm.FirstSubform.FirstTextfield... this name lies in the specific script field.)

    (3) check your script once more... want to make invisible mandatory fields?

    (4) check if your form is dynamic. (If it isn't you will not see the changes...)

    You should probably do it in small steps, such as:

    (1) first of all, you refer to areas such as:

    This.rawValue = Firstfield.rawValue;

    If the changed value fields got you its name and to be sure that the event you put is the right one.

    (2) try the different parts of the script and look at how it works. Problems can be more easily found and then

  • The PHP/MySQL dynamic drop-down list

    I know this should be easier he became... I even bought two new books on PHP and Dreamweaver, and I'm still lost.

    I am trying to create a very simple search for a Web site. This research would be a category based with a drop-down list only search. There would also be an admin section that would add new records to the DB.

    So far, I have created a basic admin page that submits new records to the appropriate categories.

    I created a simple search with a dynamic Drop Down page, and I have created a basic results page.

    If the problem I have is that the Drop Down dynamic list shows the names of similar category according to the number of records exists. Where it should show only the unique category names.

    Once selected, the results page and the records are displayed correctly using a dynamic array.

    Anyone know what I should do to change this dynamic list so that it does not display the duplicate names?

    Thank you.

    destind4film wrote:
    > Can give you details on how to do it. I saw this same response in another
    > post in the forums but I do not understand where this setting is.

    This is a very basic SQL query. The SEPARATE after that SELECT keyword ensures
    that duplicate records are removed from the Recordset.

    > I checked my phpmyadmin and there is an option for single, but it will not
    > work for categories in my PB because there are naturally several entries
    > with the same name of category attached.

    UNIQUE is a type of index that forces a column to store only unique values.

    > I don't see this option in DW.

    You will not. Dreamweaver provides the absolute basics to create the
    code for working with a database. Unless you want to be severely limited in
    what you create, you have to learn a few basics of database
    design and build your own SQL queries.

    To add SEPARATE to your basic SQL query, you must click on the Advanced
    button in the Recordset dialog box and insert it into the SQL query by hand.

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

Maybe you are looking for

  • In Windows XP, Firefox turned off, Int.Explorer on. How to recover Firefox

    using windows XP sp3. Internet Explorer has unexpectedly replaced Mozilla Fire Fox in my Start menu (without me this option) how to make Fire Fox in the list? I can always get Fire Fox icon, but I want to put in the list. What method would you please

  • touch screen ripped off by toddler! 7520e HP

    Hello Sorry if this is in the wrong section of the forum. Please move if necessary. My one year old son became curious and "explore" our printer. He pulled the swivel touchscreen! It is fixed by two cables in water to the unit. Ribbons Plug connector

  • Verizon confirms what ICS spread from today?

    official website of verizon http://News.verizonwireless.com/news/2012/06/Motorola-droid-RAZR-Maxx-upgrades-to-ice-cream-sandwich... and on verizon twitter account http://Twitter.com/VZWSupport/status/216173594907115520

  • WRT54GS V7 Web UI does not completely load

    I already talked to Linksys support and they had to do a hard reset to my router but it does not solve the problem. What is happening is that I'm constantly having to plug and unplug my router to access the Web user interface. I go to the default add

  • White screen after sign in

    When I sign-in in Windows Vista, my screen is black. I saw something on the desktop. Can anyone solve this problem