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

Tags: Adobe LiveCycle

Similar Questions

  • an alphabet by typing in a cell gives drop down suggestions from previous hits on the same column. But how the drop down to choose the suggestions of the other columns and other sheets.

    an alphabet by typing in a cell gives drop down suggestions from previous hits on the same column. But how the drop down to choose the suggestions of the other columns and other sheets.

    Hi mdsavol,

    Your observations are accurate. The 'suggestions' are previous entries in the same column that correspond to what has been entered so far in the active cell. The only direct user control is to activate the function turn on or off in numbers preferences > general.

    There are other ways to include or exclude items of suggestions:

    • To remove typos in the suggestions list, the user must correct the typos in the cell above the active cell. If they are more in the list, they won't be presented as suggestions.
    • To include selections added to the list, the user must enter these suggestions in the individual cells above the active cell and column where they are wanted as suggestions.

    There was a request here a while there is a list of suggestion 'live' similar to those of some websites, which offers a descending list of possible entries as a type in an input box.

    The only way I see to reach a solution similar to what you have asked is to use as many lines at the top of the non-en-tete of the table section to list the items likely to repeat in your table, and then hide the lines. You'll need a list for each column where you want to use this feature with a list previously planted. Existing items will then require a likely hit up to three, then a click to choose from a list small enough to enter a value into a cell. News he will need to enter in full the first time, but after that it will be put on the list and answer the same thing as the terms preseeded.

    While your setting upward (or decide not to do), consider going on the menu of number (in numbers), choosing to provide feedback from numbers and writing a feature in Apple request. Describe what you want. Explain how he could help the average user numbers, and then hope for the best.

    Kind regards

    Barry

  • I transferred X 1 pro overall to another PC, but opening I get the message "serial number you provided is valid but calling it a product was not found on this computer", the drop-down list of products responding to the does not contain the ProX1 op

    I transferred X 1 pro overall to another PC, but opening I get the message "serial number you provided is valid but calling it a product was not found on this computer", the drop-down list of products responding to the does not contain the option ProX1.

    Hi Carl,

    It seems that you have installed Acrobat XI pro as an upgrade and an upgrade you will need a serial number for a product older Acrobat X, etc. 9:

    See, error: "this serial number is not for a product calling it" | Adobe Creative Suite

    Also, I checked with your Adobe ID on the forums and I can only locate XI of Acrobat pro upgrade recorded, please check if you have registered an earlier version of Acrobat on some another email to get this serial number.

    Let us know if that helps.

    Kind regards

    Sandrine Bani

  • ColdFusion in the drop-down list 1 vs ColdFusion in the drop-down list 2

    Hello

    can someone tell me what the difference is between ColdFusion in the drop-down list 1 vs ColdFusion in the drop-down list 2.

    What are the advantages and disadvantages?

    Thank you

    ColdFusion in the drop-down list 1

    < FORM METHOD = "POST" ACTION = "nextpage.cfm" >
    < SELECT SIZE = "1" NAME = "Fruit" >
    < OPTION > select an element < / OPTION >
    < OPTION VALUE = "apples" > apples < / OPTION >
    < OPTION VALUE = "oranges" > Oranges < / OPTION >
    < OPTION VALUE = "peaches" > fisheries < / OPTION >
    < / SELECT >
    < INPUT TYPE = "submit" VALUE = "Fruit to submit" >
    < / MAKE >
    <!--> ColdFusion in the drop-down list 2
    < FORM METHOD = "POST" ACTION = "nextpage.cfm" >
    Types of fruit < td > < table >
    < SELECT name = "Fruit_type" size = "1" >
    < OPTION Value = "apples" > please select < / OPTION >

    < OPTION Value = "oranges" < cfif Fruit_type is "oranges" > selected < / cfif > > oranges < / OPTION >
    < OPTION Value = "apples" < cfif Fruit_type is "apples" > selected < / cfif > > apples only < / OPTION >
    < OPTION Value = "peaches" < cfif Fruit_type's "peaches" > selected < / cfif > > peaches < / OPTION >
    < / select >
    < table >
    < / MAKE >

    I agree with jdeline that means at least one of us is wrong. The name of an input tag does not necessarily match a CF variable.

    Difference #1 - the 2nd form selects an option according to the value of a variable. The 1st form does not work.

    Difference # 2 - If you submit the first form without picking up a fruit, it may not be a form to all variable. If there is, it will be an empty string. If you submit the 2nd form without picking up a fruit, the form variable will have a value of "apples".

  • Raising the event "output" from a drop-down list in all instances of a table row

    I have a drop-down list in a row of table with multiple instances that performs a calculation on the exit event. This calculation takes information from 2 other drop-down lists listed above not repetitive rows of the same table.

    The behavior desired is: If the user change their choices above, all instances of the drop-down list below to execute the "Exit" event script to access the new values above.

    My script is:

    RowOptionalCoverage.DdlCoverageType.execEvent ("exit");     It works, sort of

    It updates only the first instance of RowOptionalCoverage and any subsequent instances. The user can 'Tab' through instances and trigger output for each instance event, but this isn't a reasonable solution.

    I tried using the method resolveNodes without success. I understand, using the method resolveNodes may be required when you reference multiple instances of an object:

    this.resolveNodes ("RowOptionalCoverage [*]. DdlCoverageType [*] ") .execEvent ("exit");"     does not work

    xfa.resolveNodes ("RowOptionalCoverage [*]. DdlCoverageType [*] ") .execEvent ("exit");"      does not work

    No doubt, I have to be incorrectly using the resolveNodes or rate something? Probably something simple.

    All the tips are greatly appreciated.

    Stephen

    Hello Stephen,

    You need to loop through each instance of the line and force the exit event. Without the form, it should look like:

    var oRows = xfa.resolveNodes ("RowOptionalCoverage [*]");
    oNodes var = oRows.length;
        
    for (var i = 0; i)< onodes;="">
    {
    xfa.resolveNode ("RowOptionalCoverage [" + i + "]"). DdlCoverageType.execEvent ("exit");
    }

    You could also index table to determine the number of row repeat:

    var oNodes = RowOptionalCoverage.instanceManager.count;

    You may change this to make it work.

    Good luck

    Niall

  • Populating drop-down list with SQL

    I have a database and I want to fill the drop-down list with a 'Group By' request to show the various categories without showing many of the same.  Here's the code I'm having difficult with:

    DropDown {
                    id: filterSelect
                    visible: true
                    enabled: {if (purchaseValue != false){false}}
                    bottomPadding: 20
                    title: qsTr("Category:") + Retranslate.onLanguageChanged
                    horizontalAlignment: HorizontalAlignment.Center
                    options: Option {
                        id: allOption
                        text: qsTr("All") + Retranslate.onLanguageChanged
                        selected: true
                    }
                    onSelectedOptionChanged: {
                        if(filterSelect.selectedOption == allOption){
                        _app.refreshObjects()
                        }
                        else{
                        dataSource.query = "select * from items where categoryfield LIKE '%"+ filterSelect.selectedOption.text+"%'"}
                    }
                    attachedObjects: [
                        ComponentDefinition {
                            id: optionFactory
                            Option {
    
                            }
                        }
                    ]
                    onCreationCompleted: {
    //                    "select categoryfield from items group by categoryfield"
                        var newOption = optionFactory.createObject()
                        newOption.text = 'Text to add' // or a variable fetched from data source
                        //newOption.otherfields = ...
                        filterSelect.add(newOption);
                    }
                }
    

    I have a data source that fills the listview, I want to use the same database to populate the drop-down list.  How should I go about this?  I tried to configure a different DataSource {} just for the dropdown menu, but I couldn't make it work.  In bold text, I am not clear as where I incorporate my SQL query against the newOption.text =

    TL; DR I try to use a SQL query to fill my menu drop-down using the same PB that is used for the listview.

    Any help will be appreciated and thanked!

    A friend by the name of Roger Leblanc http://appworld.blackberry.com/webstore/vendor/70290/?lang=en&countrycode=CA helped me and created a small code example to explain how it works.

    import bb.cascades 1.2
    import bb.data 1.0
    
    Page {
        Container {
            DropDown {
                id: dropdown
            }
            ListView {
                id: myListView
                dataModel: dataModel
                listItemComponents: [
                    ListItemComponent {
                        type: "item"
                        StandardListItem {
                            title: ListItemData.categoryfield
                        }
                    } // end of ListItemComponent
                ]
            } // end of ListView
        }
    
        attachedObjects: [
            GroupDataModel {
                id: dataModel
            },
            DataSource {
                id: dataSource
    
                // Load the data from an SQL database, based on a specific query
                source: "asset:///pinguin.db"
                query: "select categoryfield from items group by categoryfield"
    
                onDataLoaded: {
                    // After the data is loaded, insert it into the data model
                    // This will populate the ListView. You don't want to show
                    // categoryfield in ListView, I just wanted to show the difference
                    // between populating a ListView and a DropDown
                    dataModel.insertList(data);
    
                    // Now, this will populate the DropDown by iterating through every
                    // data from the query and adding it one by one to the DropDown
                    // using the optionFactory Component Definition to add dynamically
                    // new Options to the DropDown
                    for (var i = 0; i < data.length; ++i)
                    {
                        // Create new Option
                        var newOption = optionFactory.createObject()
    
                        // Set the Option text to categoryfield
                        newOption.text = data[i].categoryfield
    
                        // Add the Option to DropDown
                        dropdown.add(newOption);
                    }
                }
            },
            ComponentDefinition {
                id: optionFactory
                Option {}
            }
    // end of DataSource
        ]
    
        onCreationCompleted: {
            // After the root Page is created, direct the data source to start
            // loading data
            dataSource.load();
        }
    }
    
  • Data from the field drop-down list does not clear when the reset button is activated

    Acrobat Pro XI

    All field boxes are checked in the tab properties of the button actions... but when I click on the reset button of the form I created only the data in clear text fields, not any of the data that has been selected in a drop-down list.  What I am doing wrong?

    The 'rest shape' command returns the fields to their default values. If this

    value is not empty, that's what he'll be back.

  • fill the drop-down list in a table - insert the value in another

    Probably, this should be easy, but do not know if my problem is with my design of the database or with my query from CF, etc.. The drop-down list is filled correctly, but nothing is not subject to the table "order". It is an Access database and the appropriate reports are configured in the db. Let me know if you need more details on my installation of db. I'll do the same thing later on the page with USERS ("outers checker"). I put this up to people Records check equipment ("equipment"). A table has the equipment, the other is supposed to record checkout of the shares ("order"). Here is the code for the drop down menu on the first page and in the action page and the request:


    Query = "qry_item."
    value = "id".
    display = "description" >


    FORMFIELDS = "id, fname, lname, phone, electronic mail" >

    It's pretty simple. You have a form called "Item" field
    Do you see 'Point' in the setting your tag FORMFIELDS?

    If you don't tell the tag to insert a field that's usually what you
    tell him and does not insert the field.

  • How to produce a drop-down list simple code description for the OPS?

    I'm sorry this is a basic question, but I tried for days, and I see nowhere else to find an answer.

    I need a simple drop-down list, not a search. Here is the list account 10 or if items. It is based on a view that contains a code value, and a description. I want that all the descriptions to be available at all times. Just click on the arrow, and the entire list is displayed. When the user selects an entry, the code associated with the discription fills a related attribute.

    Can someone please tell me how I can produce such a simple thing, or point me to the documentation?

    Thank you.

    Hello

    not sure OFA's lists-driven model, but it's how solve you that problem in the ADF. For OAF related issues, please see the OA framework

    Frank

  • Drop-down lists to DataGrid scrolling through the grid reset

    I have a datagrid that contains two columns with drop-down menus. The drop-down list values are defined by program to the given index. But when the grid scroll bar is made to scroll up and down and then back up the selected values to reset. Any idea of this behavior?

    Yes. point converters are "recycled". Flex creates only for the visible rows. When you scroll, item for item data is scrolled position are sent the converter (through the set data() setter), who must use these data to render its visible state.

    This means that all aspects of the item converter must be controlled by the data. You can't do a data-oriented work to initialize or create complete, but need to override the set data() method. Best practices is actually a little more complicated Quen only. You must place the selectedIndex property of the ComboBox value stored within the item renderer.

    Google: Alex Harui point converter recycling

    For a full explanation and examples.

    Tracy

  • Microsoft Silverlight cannot be activated. There is no option to select only activate because it is impossible to select the drop-down list even if it is the most recent version

    I can't activate Microsoft Silverlight. I've attached a screenshot of control. This is the only plugin that says "disabled" next to him. I've updated to the latest version and there is no option on the page of the plugins to acivate because he says 'never activate' and no other selection is selectable.

    Unfortunately, your screenshot is not come through. You can link it to a reply in this thread if you wish.

    If you exit Firefox and it starts again since installing Silverlight, please try this in case a file is locked.

    Can also see you in the editor preferences as follows:

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste the npc and make a pause so that the list is filtered

    (3) If you find a preference for the plugin.state.npctrl preparing to something other than one, try to double click on it and set it to 1. For reference:

    • 0 = > never activate
    • 1 = > ask to activate
    • 2 = > always activate

    If the preference has a different status from 'the user game' as 'locked', which would indicate a different problem.

  • Bookmark icons are not displayed on the drop-down list, although they are in the bookmarks to show all bookmarks.

    When I click on bookmarks, that the icons in the left margin are not displayed, but when I click on view all books in the menu drop down and then on the menu bookmarks, they are displayed in the menu box.

    -> Firefox more recent questions

    Check and tell if its working.

  • Problems adding multiple instances of the Subform subform

    I would like the button to «add a line Prosecutor...» ' to add lines in the subform procSet for each click.  Currently, the button adds only a single instance.  I'd appreciate any help with javascript.  I tried various code examples, but I think the problem is that I need to add pages, then the instances (I think), in any event, I can't fully functional code beyond one case.  Thank you.



    https://files.Acrobat.com/a/preview/62a361cd-fc1e-49F2-BE2A-50d7e18ea98f

    Hello

    replace the current script of the addAttorneyRow button with:

    _attorneySet.addInstance(1);
    

    And don't forget to allow breaks page for procSet :-)

  • When I right click on a website to save to the desktop from the drop-down list is not save to the desktop in it

    There is no backup of office from the dropdown list

    Hi Franpayne,

    Thanks for posting your question in the Microsoft Community forums.

    I see from the description of the problem, you want to save a Web site on the desktop.

    To resolve the problem with the registration of a Web site, I need more information:

    1. you try to put a shortcut to the Web site on the desktop?

    If so, I suggest you try the following steps.

    (a) right click on the Web site.

    (b) click on create shortcut.

    (c) click Yes.

    Let us know the status of the issue after you perform the troubleshooting steps. If you need additional help or information on Windows, I'll be happy to help you. We, at tender Microsoft to excellence.

  • order from the drop-down list of saved reports in the search bar of the IR

    Hello

    I often use the interactive reports and Apex 4.0. We saved a lot of public reports

    but How to manage the order of all the reports in the dropdown in the search bar?

    It seems to appear randomly.

    Thank you LeDi

    Le_di wrote:

    I often use the interactive reports and Apex 4.0. We saved a lot of public reports

    but How to manage the order of all the reports in the dropdown in the search bar?

    It seems to appear randomly.

    Fixed in 4.1 APEX. You will need to upgrade.

Maybe you are looking for

  • Just upgraded to 32.0.1 and drop down menus were shifted to the left. How can I fix this?

    I just upgraded to 32.0.1 for Mac, and from the drop down menus were shifted to the left. I tried to reset. I tried to reset Firefox and the problem was not resolved.

  • Internet while projecting WiDi?

    Hi all! I had a problem with the latest drivers and my Intel Centrino Wireless - N 2230 so I replaced it with Intel Centrino Advanced-N dual band 6235. Everything is good, the latest drivers installed and works very well. But there is a new problem t

  • File extension. $$$ in Windows 8.1 and newer

    Hello everyone I have a quick question: I'm running Windows Server 2012R2 and I think that there is a problem with the file extension. $$$ Is this a known issue for more recent versions of Windows, and is there a solution? The application I am runnin

  • Convert the string to char OR int to a char

    Hello I have a string and you need to convert it to a char Dim str As String = "32771. Or lets say int i = 32771; How to convert one of the two to char is this possible? Thanks in advance

  • Site does return does not correctly in Google Chrome

    If anyone could advise on what it takes to please!  A site that I composed in Adobe Muse (I'm a newbie to Muse), www.mcgcounselling.com.au renders correctly across all my mac devices, including Google Chrome on Mac, but when I didn't try on PC in a c