1 xml file, 2 drop-down lists

I've recently set up a video player based on the form tutorial Lisa Larson-Kelley on the construction of a XML playlist, which I managed to get to work. I wanted to take this to the next step in the creation of a second listbok or buttons for categories where only the videos in the category would be displayed in the listbox or title list. I saw information about AS2 solutions, but not for AS3. I have the XML file not that I modified to include a category tag which I was able to analyze the category names in a listbox control, but I'm stuck on the sending of data from the category selected for a second ttilist. I use the following approach to target the second box:

toplist.addEventListener (Event.CHANGE, itemChange);
function itemChange(e:Event):void {}
Blist = toplist.selectedItem.data;

In the tests, by clicking on the toplist category returns the errror

TypeError: Error #1034: Type coercion failed: cannot convert XML@43c0b081 CISCO (category name) attribute in fl.controls.TileList.

If a thread for this exist, or you have some useful suggestions, please and thank you.

I could be wrong, but anytime I have consulted a list or combo or tilelist I had to pull the out point and save it in a generic object before it would let me mess with data. I never got the selectedItem.data to work.

Have you tried to do a smart object and then registering the selectedItem in there?

var tObject:Object = new Object();
tObject = toplist.selectedItem;

tObject.data

Tags: Adobe Animate

Similar Questions

  • 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

  • create the mailing list option missing from 'File', 'New' drop-down list in the 38.3.0 version

    Hi all

    I'm trying to create a mailing list using the steps described in the online documentation, but the "Mailing List" does not appear in the fly-out drop-down list. What I am doing wrong?

    In addition, what is the best way to import a mailing list I have in Eudora?

    TIA

    straysaver

    Thank you for your response. New list appears, under address book.

  • Don't want the previous file names being listed in the drop-down list the name of the file

    I have windows 8. Don't want the names of previous files are represented in the file name drop-down list in the page save money when saving a page on the net.

    Hi sliman,.

    1. which web browser you are using?

    If you are referring to Internet Explorer, the option to erase the file names when you save the Web page is not available. This feature is not provided because if the drop-down list does not display the file names already existing, you can eventually choose a file name that is already reflected in the previous file being overwritten and lost.

    For all windows questions do not hesitate to contact us and we will be happy to help you.

  • Form - enter the names of the State/province drop-down list

    Hello again,

    I use Acrobat Pro DC using a MC Pro and I want to create a list drop-down States and provinces on my form. After clicking Properties and then Options, is there a way to enter all state names at the same time instead of adding one by one? I know there are scripts out there, but I thought that I could create the list that I needed from the List of States - 50 AMERICAN States - Canadian Provinces - Australian States - Mexican States - Brazilian - States ListStates.co... and copy and paste them.

    I read on the drop-down lists, but I don't see that he offered to DC Pro. Please correct me if I'm wrong.

    Thank you.

    Yes, it's possible, but it takes using a script.

    The basic format of this script is:

    this.getField("DropDownName").setItems (["Alaska", "Alabama",...]);

    If you have the items in a text file or a spreadsheet and want to import at the same time you can use a tool like this, I developed, which can be purchased here: Scripts custom Adobe: Acrobat - items import from a text file to a combo box or a list box

    I also offer a free sample with all 50 US States file field drop-down list that you can copy and use in your own file.

  • 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.

  • 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

  • My index drop-down list of bookmarks installation does not include an option to export my absolute Favorites HTML file for security purposes. How can I do a safety case separated from my favorites please?

    I'm on version 4.0.1

    The drop-down list of bookmarks index includes only:
    Bookmark this page
    View all bookmarks
    The toolbar of bookmarks (export done on this etque ease)
    Recent tags
    Recently bookmarked
    Download bookmark modules
    These stars following is a complete list of all my favorites.

    The Tools dropdown has no export function is

    the help file "export bookmarks to an HTML file indicates it is a menu drop down called"Organize bookmarks"- is not a."

    I have an urgent need to save this file because I have to do a reinstall of Windows and my 'C' drive will be erased!

    Thank you, Richard Townsend

    Organize bookmarks has been renamed to display all bookmarks in versions of Firefox 4 +.

  • When bookmarking a page, I get the full list of files in the drop-down list to select any folder in which the bookmark page. What you set for complete list of folders in the bookmarks falling?

    When bookmarking a page, I can not get the list of files to drop down to select any folder in which the bookmark page. The "folder:" bar was showing "Bookmarks Menu". The arrow on the bar descends 5 recent folders which pages were saved, but pop arrow to the right of the bar down opens just to show the three categories and the button "new folder". What you set for complete list of folders in the bookmarks falling?

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).

    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

    See also http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • Display all items or all files in the drop-DOWN list BOX

    Hello

    How to show the total files available in the drop-down list box by scrolling.

    In my project, I have to store the Daq measurement values in file.

    Later, I need to plot a graph since the values of a specified file.

    For this I need to select a file from the number of files.

    Give an idea or a sample program.

    Kind regards

    Hari

    Hi hari,.

    I couldn't open your vi I use Labview 8.5.

    See vi attached with this post.

  • transform of text file content in a drop-down list box

    Hi people,

    I have a file text filled with orders. and I would like to transform this text file in a drop-down list box ring, how can I do?

    text file attached.

    Lee

    Is not no matter what extract lines. Which is just dumping the contents of the file directly on the ring. Which can be accomplished by simply doing this:

  • How to remove a program from the drop-down list files?

    I installed a few programs and they automatically added a link to the files "right-click" menu/drop-down list. Is it possible to modify this list, specifically to remove links these prog added. 2 programs are "7 Zip" comparable to Unrar and "Clary Utilities" a registry cleaner.

    There is a freeware program called "ShellExView" which can enable and disable items in the context menu...

    ShelExView: <> http://shellexview.en.softonic.com/ >

    HTH,
    JW

  • Change the drop-down list of AutoComplete for kind of metadata in music files

    How can I get rid of the entries, unwanted metadata AutoComplete drop-down list boxes in my windows music files.  Specifically in the list of genres.  It seems that everything I never typed in the field of the type is in the list.  The list is very long and includes the wrong spelling, genres, I wish not to use, etc.).  The unwanted entries do not seem to go away if I do not use them.  Is anyway to fix this?

    In case you didn't see my answer below, I'm post it here as well.

    I had the same problem and finally found an answer with the registry editor.  It is explained here:

    Run regedit, and then select HKEY_CURRENT_USER-> software-> Microsoft-> Mediaplayer-> AutoComplete.  You will find lists of AutoComplete items and just delete the ones you don't want to have there.
    I hope this helps!
    Mike

Maybe you are looking for

  • Setup e-mail

    I have an inextricable mess of 3 mailboxes on three device running EL Capitan and IOS9 crossing not sync.  Is there a good step by step instruction?

  • Time Capsule randomly disconnecting Internet

    My light on my Calsule time will turn orange and will randomly stop to connect to Internet for seconds or hours or even days. Have cycled power, factory reset and set up a new Wi - fi network several times, but it still does not work properly. Any he

  • Music by selecting the files/folders

    I just bought a sansa clip and I'm having a problem when playing music. I have my music in the music folder and who plays without problem. I want to have a record of Christmas music and tried to put this folder in the music folder. He went to the fin

  • Why my laptop keep going to workoffline

    When I go to yahoo or any other website my laptop will work offline, why is this?

  • How Keychar response faster? or should I use another method?

    Hello, I have the following of keychar() here: protected boolean keyChar(char key, int status, int time) { if (key == Characters.some key){ // do something; return true; } if (key == Characters.some key){ // do something; return true; } . . . assigne