Access to a drop-down list item

Hello

I have a drop down list in my application. I did it in my QML file. Now, by clicking on a button in the page, I get a pop-up asking for confirmation of the issue, I selected in the drop-down list. How can I get the item I selected in the list and post it? can anyone help pls

Thank you

without brackets. This is a property, not a function/method.

Tags: BlackBerry Developers

Similar Questions

  • 2 values can be added to a drop-down list item?

    I probably need to explain what it is I'm doing first. It could even impossible the way I'm doing it. So if there's a better way, please do help. But I try to have items listed in a drop-down list. More precisely the elements that are of different lengths with different numbers. I have been using the value of the elements to do simple calculations to work. But I also want it so that once an item is selected the item to a list of material later in the form printed. I'm sure I can set the value of the element as the item number and I the number displayed next to the item (in another column) later in the order form. But I want to be able to always perform the calculations in the subform where is the original drop-down list. Is it possible to assign 2 values (one for use with calculations) and one for use as an item number? Or is there a better way to do what I'm doing? I know I could just name the list drop-down list item and contain the number of point in the name using addItem. But I don't want to confuse the user with numbers, they did not need to see. Only the person who sells the materials needs to know the number of points, not the user.

    Back again...

    Think - the behavior is expected because the values specified in the binding tab lead the overall binding for the drop down menus.

    So if the first dropdown the text resulting from elements such as the display values AND the second dropdown has numbers of items like display settings - then it will work. As long as the two drop-down lists have the same number of elements and sequence in the specified values is the same.

    This means that you must keep two drop-down lists.

    It may be a good idea to have the second dropdown (numbers) configured to read only so that the user cannot interact with it.

    Good luck

    Niall

  • Help to the drop-down list items in list making invisible field

    On the attached form, I have a drop-down list "Item". How can I get the items in this list make the text field "embroidery" visible or invisible depending on the element selected?

    My programming skills are very basic, livecycle as I am just getting into this. Any help would be appreciated.

    Tom,

    our email form.

    hope this is what you were after.

  • Pages of dashboard as a drop-down list items

    Hello

    I have more than 6 pages in my dashboard, I want to display as a drop-down list. Before posting here, I looked at all possible sources and link to joe
    Dashboard OBIEE - Pages of dashboard as a drop-down list items

    But after going through this post I force pass through. Can someone guide me or someone that can give me the right solution.

    Any help would be greatly appreciated.

    TIA,
    KK

    Sure no problem,

    concerning

    John
    http://www.obiee101.blogspot.com/

  • on the drop-down list item event listener

    Hello

    I would like to display ToolTips, once the user holds the mouse on an item from a combobox open.

    If you open the drop-down menu of the combo box, you will see a list of items/ofelements. Each of them can be accessed for example viamyCombo.getItemAt (0).

    It seems to me that I don't get an object with property adata and label. But I think it takes more than that, becausewhen you rest your mouse over a subitem, it will be highlighted. ThisMeans that there is a listener of events on this very simple question. Sohow can I do this?

    myCombo.getItemAt(0).addEventListener(MouseEvent.MOUSE_OVER, ShowToolTip); //impossible
    
    function ShowToolTip(evt)
    {
      trace(evt.currentTarget.label);//stub action
    }
    

    Thanks in advance.

    Gilzad

    If you are looking for the component in the help documents, you will find all the events associated with this object.  If your drop-down list is a component ComboBox, there events such as what you seem to want to have, itemRollOver and itemRollOut, as well as an example of the use of their.

  • Removal of long list of drop-down list items quickly (ss4)

    I have LiveCycle Designer ES4. I often have a long list of list items in my items from the drop-down list. I want to know if there is a quick way to remove all the items in the list (field tab). I have one at the time a click and remove one at a time. Is there a faster way?

    You can use my macro to create dummy texts.

    Just to empty the text field in the Flex dialog box and click OK, to remove all the values in a drop-down list.

    LiveCycle blog: Lorem Ipsum Generator Makro / / Lorem Ipsum Generator Macro

  • Count the number of drop-down list items based on the selection

    You will need to get an "account" (in the fields of totals at the bottom) of each of the values/items selected in the drop-down "ddClassification". My drop-down fields are labeled ' ddClassification.0, ddClassification.1... etc.

    Should a loop be involved? Been looking around for the answers but can't really find anything. The values in the drop-down list 'ddClassification' are 'Choose', 'Major', 'Minor', 'OBS', 'OFI '. If I could just get help on one of the "total" fields (for example perhaps the total large field) first then I could go from there. All THE HELP is APPRECIATED! Thank you!


    I have attached a screenshot and here is the link for the form: Dropbox - ASSESSMENT_NOTES.pdf
    Screenshot.png

    Yes, this requires a loop. Here's the Basic code structure, which you can use for the total key, for example:

    var total = 0;
    for (var i=0; i<=4; i++) {
        if (this.getField("ddClassification."+i).value==4) {
            total++;
        }
    }
    event.value = total;
    

    Place this code in the script to custom calculation of 'txtMajor '.

    Edit: Name of the field max adjusted from 5 to 4...

    Edit #2: Also adjusted the value of "Major" in the value of exports 4...

  • comboBox - browse the drop-down list items?

    I need to subdivide a large list of items in a comboBox in small groups in Flash. Is there anyway to loop through the elements and set the background color of you of each element a value in the dataProvider?

    I can run through the loop using myPoS_combobox.dropdown

    var ddList = myPoS_combobox.dropdown

    for {(var propertyName in ddList)

    trace (ddList [propertyName])

    }

    But I can't seem to get the individual items, much less change their properties.

    Thank you!

    If you want to change the background colors in the part of the list of the combobox component, you will need to use a cellrenderer class: http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d1 18a9c65b32 - 7fd4.html

  • Reading JSON file based on the selected drop-down list item

    I have little code shown below.

    I'm trying to read data from a JSON file based on certain criteria, in this case all the suburbs on a territory

    I can do that quite easily in a liquid hard coding the territory, however, I want to use the value of the < select > option

    I understand that this can be achieved with JavaScript, is it possible otherwise?

    < select id = 'territory' >

    < option value = "xx" >--please select--< / option >

    < option value = "CBD" > CBD < / option >

    < option value = "North" > North < / option >

    < option value = "South" > South < / option >

    < / select >

    {model module_json json="/_System/shipping/shipping.json" = "" = "shipping" collection "}

    < select id = "suburbs" >

    < option value = "xx" >--please select--< / option >

    {% for section in shipping.territory %}

    {% If the element.} TERRITORY is '< value on top of select >' %}

    < option value = "{{point." POSTAL CODE}} "> {{point." SUBURBS}} < / option >

    {% endif %}

    {% endfor %}

    < / select >

    Hi Craig,.

    You can skip liquid altogether and use JS to get the values you need for json.

    If you want to use liquid you need to load the last part with AJAX/XHR to enter the selected value.

    1. create a new file suburb.html and ajax request after #territory selected with the option as a parameter:

    URL: suburb.html? = north shipping

    2. the suburb.html file would be:

    {assign = globals.get.shipping-% selectedTerritory %}<- this="" will="" have="">

    {model module_json json="/_System/shipping/shipping.json" = "" = "shipping" collection "}

  • I can't access Photoshop tool drop-down list in Bridge.

    I have Photoshop CS 5 and you can use my plug-ins without problems. With the help of Photoshop CC 2015 I am unable to do?

    -What are you talking about?

    ~ Rohit

  • Custom draw items from drop-down list

    Hi all

    I'm working on the CS6 plugins portage CC, 2014.

    A question, I am puzzled, is that with CS6, I'm able to customize the drawing behavior of elements within a drop-down list, by substituting the methods in 'IOwnderDrawItem', which was grouped on "kDropDownListWidgetBoss".

    But it seems that with the SDK of CC,

    -The "IOwnerDrawItem" is aggregated is "kDropDownListWidgetBoss", and

    -The "IOwnerDrawItem" no longer has the "DrawItem" method

    The porting guide does not seem to provide a solution to this. I am looking for help on how I can achieve this with CC.

    Thank you very much.

    -Jeff

    I think I found the solution/work around for this. Just display back here as I do see there are a lot of viewers and hope that this would help others who run in the same question.

    Basically, I think that the previous SDK allowed "DrawItem" that essentially provided a quick shortcut to allow a custom drawing of elements within a drop-down list content of the string. Inside the implementation of the method, you would need to enter the contents of the string of the item to retrieve more specific domain based on the chain, and point out things.

    And with the SDK of CC, it seems he wants to discourage this shortcut and promote encapsulation from the drop-down list items. So now, you declare a type of custom widget (extension "kBaseWidgetBoss"), which includes a custom implementation of 'IID_ICONTROLVIEW', which makes the custom drawing. And during the filling of the drop-down list, you will need to create instances of the custom widget type, then put them in the drop-down list list dropdown controller via.

    And for the drop-down list, you can declare your custom type by the extension "kOwnerDrawDDListWidgetBoss", where you can then provide a custom implementation of "IID_IOWNERDRAWITEM", to reach the specific item measure needs.

    I think that it is good intention and cleaner, just I wanted there was more clear instructions in the porting guide.

    -Jeff

  • Drop-down list selection

    If someone has been able to successfully get the current selection in a drop-down list?  I have the drop-down list of channels and can change the selection in the Simulator.

    temp3 vartring = myDropDown.selectedItem.toString ();

    does not work.

    However,.

    var temp1:int = myDropDown.selectedIndex;

    correctly return the index of the selected item.

    I feel like I'm missing something obvious here.

    Thanks in advance for any help.

    Hey,.

    You can configure your tabular data provider and then everything just to get the index selected in the selected point drop-down list and then using that call the element of the array. for example, here is a list of colors in a drop-down list:

    var listOfThings:DropDown = new DropDown();
    
    var dp:DataProvider = new DataProvider();
    
    var arr:Array = new Array([{label:'green'},
        {label:'blue'},
        {label:'orange'},
        {label:'red'},
        {label:'yellow'},
        {label:'silver'}] );
    
    dp.setItems(arr);
    
    listOfThings.dataProvider = dp;
    

    now, if you were to get the index selected in the drop-down list item and select the table at this level:

    arr[listOfThings.selectedIndex].label;
    

    This should retrieve the label of the selected item.

  • User entered values to populate a drop-down list.

    I created a form with a fixed number of lines dynamically.  Each line has a drop-down list field that is initially empty.  I want to add user input to the list to be used on the ground in the following lines.

    Hello

    Here is an example that could help.  https://sites.Google.com/site/livecycledesignercookbooks/home/ReferenceNode.PDF?attredirec ts = 0 & d = 1

    This form allows you to add a drop-down list item value and id which is then picked up by the drop-down list control.  The main problem is having to do a xfs.form.remerge (), which can reset certain properties that are not related to something, usually border error and others.

    Does not seem to need a reinstall, so for the new line is not necessarily a problem.

    Concerning

    Bruce

  • The drop-down list schema lists (with the name/value pairs)

    Hello

    I'm looking for more information on creating a schema type definition that LiveCycle Designer ES will fill (fill in the name and value) of drop-down lists. For example, I have something like:

    < xsd:simpleType name = "RoleTypeCodeType" >
    < xsd:restriction base = "xsd:token" >
    < value xsd: Enumeration = 'ABC' >
    < xsd: annotation >
    < xsd: documentation >
    Aboriginal community
    < / xsd: documentation >
    < / xsd: annotation >
    < / xsd: Enumeration >
    < value xsd: Enumeration = "ADJ" >
    < xsd: annotation >
    < xsd: documentation > referee < / xsd: documentation >
    < / xsd: annotation >
    < / xsd: Enumeration >
    ...

    < xsd:minLength value = "1" > < / xsd:minLength >
    < xsd:maxLength value = "3" > < / xsd:maxLength >
    < / xsd:restriction >
    < / xsd:simpleType >

    This creates a list. I can bind this to a list field. However, of course, when I saw the pdf, my drop down list items in this area are just the three-letter code. I would get the descriptions associated with these articles (as shown on the connection tab) to be filled. The end result is that my list see 'Indigenous community', 'referee', etc. and when selected, return 'ABC', 'ADJ' in the XML during export.

    If list under the connection tab items are filled manually then this export works correctly. However, the list is generated during execution and dynamic. So nobody knows what the schema definition must be for the field in the list on the LiveCycle form to create the name-value pairs?

    Thank you

    John

    Hi John,.

    You will need to incorporate the schema, but you can reference the imported schema as they get integrated as well (there a bug in the designer when they were not integrated, but I think it crept in 8.0).

    In any case to refer to the imported schema you will need to loop though all schemas

    var

    schemas = xfa.resolveNodes('schema[*]');

    Will give it refers to all schemas, the fine loop them;

    for

    (var schemaIndex = 0; schemaIndex< schemas.length;="">

    So if these patterns have an id attribute (I don't think that you can refer to namespace attributes) test the value of the id;

    If

    (schema.@id is "whateveryourschemaidis")

    If there is no attribute ID and you cannot add a you might have to search for the type in each scheme, something like;

    var roleTypeCodeType is schema.xsd::simpleType. (@name is "roleTypeCodeType");

    If (roleTypeCodeType! == undefined)

    {

    ... load the values of the annotation.

    }

    Hope that helps but if you if you can post your schema (and it's imports), I could understand exactly the problem.

    Bruce

  • How to view the separate date in a drop-down list

    I know I've done this before. For the life of me I don't see what I'm doing wrong. I have an outputing to query date/time formats from a database Access in a drop-down list box select. I can't go out on double dates. I wonder if it is because the time in the database is different for each line? I want to just display an 08/09/2006, even if there are 40 of them. Here is my code:

    < cfquery name = "qdate" datasource = "mydb" >
    Entereddate SELECT DISTINCT from archivedletters ORDER BY entereddate
    < / cfquery >


    <! - exit - >


    < do action = "queryarchived.cfm" name = "StartDate" method = "post" > "
    < strong > sample numbers by date range search: facilities > < br >
    Beginner: < br >
    < select name = "StartDate" >
    < cfoutput query = "qdate" >
    < option value = "#entereddate #" > #DateFormat(entereddate, 'mm/dd/yy') # < / option >
    < / cfoutput >
    < / select >

    < br >
    End: < br >
    < select name = "EndDate" >
    < cfoutput query = "qdate" >
    < option value = "#entereddate #" > #DateFormat(entereddate, 'mm/dd/yy') # < / option >
    < / cfoutput >
    < / select >

    < input type = "submit" value = "Go" >
    < / make >

    Thanks for all the help. I tried the method classified by MikerRoo and that seems to fix the problem.

Maybe you are looking for

  • Unable to connect to mobile data iPad mini

    mini iPad cannot connect to mobile data, after touch setting, only aircraft, wifi and Bluetooth icon will appear. After that it's notifications. Already insert the sim card and no support written at the top left. He comes to write iPad with wifi sign

  • cookies.SQLite - shm &amp; cookies.sqlite - wal?

    While Firefox 6 is running, there are two additional cookies files in the profile of: cookies.sqlite - shm and cookies.sqlite - wal. They disappear when Firefox closes. What are doing?

  • Audio level of the Voice-over element does not match level of audiometers

    I speak in my external USB microphone and create an audio clip of the voice-over. The audio level of the clip is too low - the voice is too quiet, so I climb the audio level in the clip. But it still sounds too low, especially on the meters, which ar

  • Problems with my RealTek HD audio device

    My RealTek audio device manager does not work, I tried to download it from downloads.com, but my computer stop himself... I thought he caught a virus: P any suggestions please... A little, I can't run without my sounds!

  • Unknown songs

    There are a bunch of songs on my Sansa Fuze and I have no idea how they got there - for example, "it's Yours to Keep" of medlar from Japan, or "Alias & Ehren" by Lillian.  I can work on what they were previously charged, and I can remove them if I wa