Strange behavior of drop-down list: can select only 3 albums

I have a drop-down list populated from the SharedObject object and it works very well (can add and remove or clear all using the graphical interface that I created) but when it is developed, I can only select one of the first 3 points.

Let's say that when I add to the list, I see these entries:

Test1

5_up_top

diamonds

Spider

bigX

I choose test1, 5_up_top and diamonds, but I can't select spider or bigX.

Huh?

var dp:DropDown = new DropDown();
dp.rowHeight = CONTROL_HEIGHT;
dp.width = 2* LABEL_WIDTH + LABEL_SPACER;
dp.height = CONTROL_HEIGHT+ HALF_LABEL_SPACER;
dp.x = OFFSET + LABEL_SPACER + OFFSET;
dp.y = 4 * CONTROL_HEIGHT + LABEL_SPACER;
dp.rowCount=8;
dp.dataProvider = getSharedData();

and getSharedData():

private function getSharedData():DataProvider{
    _lso = SharedObject.getLocal("LoadGames");
    var valuePair:Object = _lso.data["puzzles"];

    var dp:DataProvider = new DataProvider();
    for each(var obj:Object in valuePair){
        if(obj != null){
            dp.addItem({label:obj["title"], data:obj["game"]});
        }
    }
    return dp;
}

9.4 Simulator running AIR2.5 on Vista32.

I searched this forum but don't have not seen anything like that. Any ideas?

TIA,

Brian

Certainly do.  It is also available in the AS3 library.

package com.lib.playbook.controls
{
    /*
    MIT License:

    Copyright (C) 2011 by John Tegen/O2 Interactive

    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    THE SOFTWARE.
    */
    import flash.events.Event;
    import flash.events.FocusEvent;

    import qnx.ui.listClasses.DropDown;

    public class DropDown extends qnx.ui.listClasses.DropDown
    {
        public var dataField : String = 'data';
        public var defaultSelection : * = '';

        /////////////////////////////////////////////////////////////////////////
    public function DropDown()
    {
        super();
        this.addEventListener(FocusEvent.FOCUS_IN, HasFocus );
    }

        ///////////////////////////////////////////////////////////////////////////
    private function HasFocus( event : Event ) : void
    {
        this.parent.setChildIndex( this, this.parent.numChildren-1 );
    }

        ////////////////////////////////////////////////////////////////////
    public function set selection( value : * ) : void
    {
            var entry   : Object;
            var counter : int = 0;
            for each( entry in this.dataProvider.data )
            {
                if( entry[ this.dataField ] == value )
                {
                    this.selectedIndex = counter;
                    break;
                }
                counter++;
            }
    }

        //////////////////////////////////////////////////////////////////////
    public function get selection() : *
    {
        return this.selectedItem ? this.selectedItem[ this.dataField ] : this.defaultSelection;
    }
    }
}

Tags: BlackBerry Developers

Similar Questions

  • Hi, PDF form of the guru. How to make a text box become a required field IF a drop-down list is selected as the "Yes"?

    Hi, PDF form of the guru.

    How to make a text box becomes a "required field", IF a drop-down list is selected as the "Yes"?

    and 'not required' if the drop down menu selected as 'No' or left blank.

    Any help would be greatly appreciated

    see you soon

    Use this code in the custom drop-down list field validation script:

    this.getField("Text1").required = (event.value == "Yes");

    (Change "Text1" to the actual name of your text field, of course)

  • A drop-down list can do the calculation based on the value selected in a drop down list?

    Form Acrobat X Pro Adobe

    Can I have a drop down list create a calculation based on the value selected in the menu drop-down?

    We have a set lunch and want the user to choose to be "A lunch', 'Lunch B'"C Lunch"or"just the milk. "

    It is for each of the 5 days of the week. There are therefore 5 drop downs, which have all the same 4 above choice.

    If the user chooses among the 3 lunches and then put $2.00 in the total box at the end of the line. If 'Just the milk' may put 0.50 in the box.

    The total area at the end of the line must keep a record of all 5 days and give a total.

    So if someone chooses lunch A LUN, sea and Sun and just milk for Tuesday and Thursday and then the total for this week must be $7,00

    Is it possible by using code or something?

    I did it in Excel, but we need it is an Adobe pdf file.

    TIA

    OK the total box has a 10 all the time to make it look like $ 2.00 for

    everything.

    Before even that I chose something there are 10 in the box.

    I am a newbie to Adobe scripting Total used VB/A .NET etc ' 1980

    However.

    Can you do any debugging in code?

    Initialize the sum

    var sum = 0;

    Make a loop on the drop-down list boxes and add the cost of the invoice sum

    for (var i = 1; i)< 6;="" i="" +="1)">

    Sum += getField("Week1Day"_+_i).value == 'just milk? 0.50: 2,00;

    }

    Set this field to the amount

    Event.Value = sum;

  • Content-aware lack of options in drop-down list of selection of filling [in PSE12]

    No matter what I do, how many times I reboot or even look for answers when I use the Select Content-aware tool, subtract, fill selection - I can't find the selection that supports the content in the drop-down list selection of filling. I am only offered foreground color, background color and color on all guides in Adobe also shown is Content-aware.  I have PSE12 and don't know what to do next?

    Content Aware in the selection of fill is only in photoshop elements 13 and newer.

    Photoshop elements 12 is not aware of content in the selection to fill dialog box.

  • Prepopulate the resulting drop-down list of selections in other areas

    I wonder if anyone can help?

    A form with radio buttons group containing two boxes 'Yes' and «»

    The radio buttons here's a drop-down list that has three items in the list "option A, option B and option C.

    That, here's another drop-down list, with three points, "10000", "15000" & "20000".

    How can I do the following?

    What radio button 'Yes' is selected and the drop-down list "option A is selected, it prepopulates what"10000"in the drop-down list below.

    What radio button 'Yes' is selected and the drop-down list "option B is selected, it prepopulates what"15000"in the drop-down list below.

    What radio button 'Yes' is selected and the drop-down list "C is selected, it prepopulates what"20000"in the drop-down list below.

    Thanks in advance!

    See the pdf attached here: http://groups.google.com/group/livecycle/web/DropDown.pdf

    Is this what you need?

    Nith

  • Hide several pages unless the drop-down list is selected

    Hello

    I have a 4-page form that I need to be able to hide 3 of 4 pages until a selection is made from a drop-down list on the first page box. So I have, for example, the pages marked:

    Page 1

    Page 2

    Page 3

    Page 4

    I have a drop down list which has

    Page 2

    Page 3

    Page 4

    for options and if no selection is made only Page 1, will be visible. If the selection is Page 2, I wish that all pages except page 2 to be hidden and only see page 2, did not 4 pages show and only show Page 2 fields.

    Does anyone know how to do this?

    Thanks in advance for any idea!

    The only downside to the activation of your condition is that the first page of the form can not be deleted. If you set page 1 "Hidden" will be hidden objects on the page, but the page itself will remain in the form that is displayed as a blank page.

    Attached shows a form with page 0-4 (5 pages). A drop down menu on page 0 and it controls the rendering of pages 1-4.

    Steve

  • How to start the message with the drop-down list box selection?

    I'm trying to trigger a message box when I select 'No' as a selection of drop-down list by using the change event:

    If (this.rawValue = "No") {xfa.host.messageBox ("Please try again.", "Error")}

    However, it fires even when I select 'Yes.' Perhaps, it may be due to the fact that the following script is in the event "exit":

    If (this.) RawValue == null) {This.execValidate () ;}

    You have a syntax error. You want to change this.rawValue = 'No' to be this.rawValue == 'no '. In your script this.rawValue = 'No', you set the value of the field to be not so it will always be true in fact.

  • Hide text in the field when the drop-down list is selected

    Hello, I am looking for a way to hide text in a text field when a number is from a drop-down list. For example, I have a table with text field that have a line pre-populated text in them. I would like the text to be deleted if 'Yes' is selected in a data entry drop-down list in the text box empty now.   Here's what I have so far:

    If (this.rawValue == 'Yes') {SubStandard_A.StandardPkgTbl.Row1.TextField2.rawValue == ' ' ;}}

    I tried .rawValue == "", .rawValue == null, .clearItems

    Any help is greatly appreciated!

    Hello

    Just spotted your original script had a double == when assigning the value to the rawValue. You must use the double == equality test.

    Here is a sample.

    We hope that make you it work.

    Niall

  • In Ver 4.0, what happened to the drop-down list of selections for the windows of the current tab?

    In previous versions of Firefox, in any tab open with multiple windows open, which is a search where you would go to a lot of different windows, there was a drop down to the right of the ' previous/next' button which would you allow to select before windows... and always the first. That's gone. It has been extremely helpful and I used frequently. Can add you it?

    You can get the menu drop-down by clicking on the previous/next buttons or now the left key pressed until the list is displayed.

    If you want the drop-down arrow, you can add it with the add-on of dropmarker rear - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • 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

  • Best way to do the math based on the drop-down list box selections

    I've set up a timesheet that employees choose in two different drop-down fields which department they worked in and what station they worked at for each section start and end time. What I'm trying to do, is to have a summary table on the bottom of the timesheet which calculates the time spent for each combination.

    Timesheet snapshot.png

    Departments are N & S, P and so our stations are WN, ZO, LR and FM, the table would look like this:

    WN ZO LR FM
    N & S
    P
    A

    I have three sections of the hours of beginning and end with each of them their time in separate fields called M1, M2, and M3 calculation.  What I'm trying to implement is an if statement for each cell in the table. For example:

    If 'deptmonday1' = N & S and 'stationmonday1' = WN

    then x = M1

    and

    If 'deptmonday2' = N & S and 'stationmonday2' = WN

    then y = M2

    and

    If 'deptmonday3' = N & S and 'stationmonday3' = WN

    then z = M3

    If cell 'WNN & S' = x + y + z

    Can someone help me with the script for my if statements or y at - it an easier way to understand this? I use Acrobat Pro.

    Code custom for "WNN & S" calculation:

    var x = 0;

    var y = 0;

    var z = 0;

    If (this.getField("deptmonday1").value == "N & S" & this.getField("stationmonday1").value == "WN")

    x = Number (this.getField("M1").value);

    If (this.getField("deptmonday2").value == "N & S" & this.getField("stationmonday2").value == "WN")

    y = Number (this.getField("M2").value);

    If (this.getField("deptmonday3").value == "N & S" & this.getField("stationmonday3").value == "WN")

    z = Number (this.getField("M3").value);

    Event.value = x + y + z;

  • How to write Save function based on the drop-down list box selection data in app mxml flex4 with as3

    Hi all

    I'm working on the application web flex4 with as3.

    I have a doubt, I've created a mxml it has two text boxes, except the button and a combo box that is has two option as a percentage and the amount.

    my needs are I gave here.

    need 1: when I choose option amount that two text boxes does not have to be editable.when I select text tat box two percentage option will be editable.

    need 2: when I select the percentage in combox option and two text boxes are empty, and then click the button Save-> I want to display warning msg

    need 3: when I select the option amount combox and the two boxes are emptu click the button Save-> I don't want any warning messages.

    How to validate it and how to write backup for this function.

    This is my sample code:

    list box ID = baseAmtPer

    ID TextBox1 = maxCommAmt.text

    ID = baseAmtPer.text text box

    If (((baseAmtPer.editable!=true) & & (maxCommAmt.editable! = true)) & & ((baseAmtPer.text=="") & &(ma xCommAmt.text=="")) |) (baseAmtPer.text == "") | (maxCommAmt.Text=="")) -> This condition not allowing while I'm selecing amount in combo box. How the TWO TEXT BOX WILL BE EMPTY for this problem

    {

    Alert.Show ("enter in all areas", "Information");

    }

    on the other

    {

    some encodings

    }

    Hello

    Please go through the following Code:

    http://ns.Adobe.com/MXML/2009.

    xmlns:s = "library://ns.adobe.com/flex/spark".

    xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = "955" = "600" minHeight >

    Import mx.collections.ArrayCollection;

    Import mx.controls.Alert;

    Import spark.events.IndexChangeEvent;

    protected function button1_clickHandler(event:MouseEvent):void

    {

    If (comboBox.selectedItem == "Percentage" & textBox1.text == "" & textBox2.text == "") {}

    Alert.Show ("enter the values");

    }

    }

    protected function comboBox_changeHandler(event:IndexChangeEvent):void

    {

    {if(ComboBox.SelectedItem=="Amount")}

    textBox1.editable = false;

    textBox2.editable = false;

    }

    else {if(comboBox.selectedItem=="Percentage")

    textBox1.editable = true;

    textBox2.editable = true;

    }

    }

    ]]>

    Amount

    Percentage

    Thank you and best regards,

    ------------------------------------------------------------------------------------------ --

    Vibhuti Gosavi . [email protected] | www.infocepts.com

    ------------------------------------------------------------------------------------------ --

  • move selected value in one drop-down list to another

    Hello

    I have two lists, and I wanted to make sure that people choose in the first drop-down list before selecting from the second drop-down list. What I tried to do was so, if the user tries to choose something in the second and the first list was unsuccessful, an error message appears asking the user to select from the list.

    The problem I encountered: I can't change the value in the first list to the second list to check and see if the first list got whatever it is selected. Any idea?

    First list: Department

    second list: jobs

    in the first drop-down list

    var selected = xfa.event.newText;

    second drop-down list

    If (selected == "" |) some == "null") {}

    xfa.host.messageBox ("Please select from the first menu drop-down before choosing from this list.");

    }

    Thank you

    F.

    Hello

    In the first drop-down menu script, you declare a variable "selected". This form variable lives only in this event. You can not variable accessthat other events or other objects.

    You are on the right track, but rather to test the variable in the stated case, test the rawValue of the first dropdown.

    if (dropdown1.rawValue == null || dropdown1.rawValue == "")
    {
         xfa.host.messageBox(...);
         xfa.host.setFocus("xfa.form.form1.page2.dropdown1");
    }
    

    Hope that helps,

    Niall

  • Drop-down list options, even if not selected

    Hello

    I'm doing a printable form for our workers to complete tasks and others to work.  In the options field, I have a drop down containing a list of options for them to choose from.  My problem is that, regardless of whether if this conduct is used, it will always show the first thing in the field.


    I would like to print only when something in the drop-down list is selected.  Is this possible?

    Something is always selected in a menu drop-down... The default value, which is

    the first condition in the list.

    If you want to do unprintable fields when the default value is

    You must use a script that hides them before the selected document

    is printed and shows their return again later.

    Tuesday, April 28, 2015 06:38, kushlar47760666 [email protected]>

  • selection in the drop-down list makes the visible field

    I have two drop down fields, select from the first drop down field provides a list of the items contained in the second drop-down list. When an item in the second drop-down list is selected, I want a hidden field to become visible.

    I don't know how to write the script on the second menu drop-down to make the visible area. Here is the script that I have, which does not work:

    If (this.rawValue == 'ACD');

    {

    agentID.presence = 'visible';

    }

    If (this.rawValue is 'Agent');

    {

    agentID.presence = 'hidden';

    }

    Thank you

    M.Dawn

    HI Margaret,.

    Here is the corrected form https://acrobat.com/#d=D3yZytcriTw0pMp4S232Wg.

    You had semi colon after the if statement (which was throw). Also, I've shortened the reference to the agentID object:

    if (this.rawValue == "ACD") {
        agentID.presence = "visible";
    }
    else if (this.rawValue == "Agents") {
        agentID.presence = "hidden";
    }
    

    Good luck

    Niall

Maybe you are looking for

  • Unable to connect to Microsoft Server to get SP1. What should I do?

    I formatted my HD and connected new copy of my saved XP I tried to update SP1, but it cannot conect to such serwer what can I do? Where can I get SP1?

  • What to do if the computer is not compatible with windows 7

    I have a computer that has lost the ability to use Windows XP by notice on my screen.  When I ran to the compatibiliy Windows 7 audit, the computer is not being upgraded to be compatible with windows 7.  What are my options?  I can't get a new comput

  • Corrupted Archive JDE download version 7

    There seems to be an error with the download http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/bd-p/browser_dev I hope this reaches the competent authorities so it can be fixed

  • IPS Signature authorization

    Hello I'll configure IPS on an error C2921 (/ * Style Definitions * / table.) MsoNormalTable {mso-style-name : « Tabel - Normal » ; mso-tstyle-rowband-taille : 0 ; mso-tstyle-colband-taille : 0 ; mso-style-noshow:yes ; mso-style-priorité : 99 ; mso-s

  • Smartphones blackBerry firewall

    Hey people, Marvin here. I have a Blackberry Curve 8530 and when I go to my menu > options > firewall, my firewall is disabled. I should allow him and if not what would you need to activate? Also, the encryption is disabled. I don't understand what i