Change the SelectedIndex of a combobox a Click button

This may sound simple, but I'm unable to implement the code. I have a combox box in my app (categorySelectorDropdown), inhabited by a collection of table which contains the "categoryid" property I also have a variable in my application called "chosencategoryid", I have defined, the value which changes based on the clicks of other buttons/items in my application. I have a button that when clicked should be selectedindex combobox control changes to the given index which has the same value of the categoryid as the value of the chosencategoryid variable but I am struggling to understand the code

I thought that the click on the button would be something like: -.

categorySelectorDropdown.selectedIndex = (categorySelectorDropdown.selectedIndex WHERE categoryid == chosencategoryid);

Except that obviously would not work, but it's the best way I can explain what I want it to do. Can anyone advise me on what should be the syntax?

Try sonething like:

for each {(currentCategory:Category var in _categories)

if(currentCategory.ID == chosencategoryid) {}

categorySelectorDropdown.selectedItem = currentCategory;

break;

}

}

Where is _categories and the table category Articles, and is the data provider for the dropdown list drop-down list.

Tags: Flex

Similar Questions

  • I don't see the Audio waveform in the timeline panel. No triangle click button. Just changed pcf. Help!

    I don't see the Audio waveform in the timeline panel. No triangle click button. Just changed pcf. Help!

    I solved the problem.  It was just a matter of push lines down and creating a larger space of work for each row of the audio.  Never had this problem at the time of AVID or FCP.  I appreciate your help!

  • Optical mouse HP changed the settings to do a right-click instead of left-clicking to open a program.

    Original title: optical mouse 2.4 ghz hp

    My HP 2.4 GHz wireless optical mouse has suddenly decided to swap the functions of the right and left clicks so that, for example, I do a right click on a program to open it instead of left-click as usual. anyone knows how I can get back to normal please.

    Hello

    1. What is the version of the Windows operating system?

    2. What is the model of your HP wireless optical mouse?

    3. did you last changes before this show?

    4 when was the last time it was working fine?

    Method 1:

    The problems with the mouse button or scroll the parameters: http://support.microsoft.com/kb/303091

    Method 2:

    Step 1:

    Change the settings of the mouse for Windows 7:

    http://Windows.Microsoft.com/en-us/Windows7/change-mouse-settings

    Step 2:

    Change the settings of the mouse for Windows Vista:

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-mouse-settings

    Step 3:

    Change your settings of the mouse for Windows XP:

    http://Windows.Microsoft.com/en-us/Windows-XP/help/change-mouse-settings

    I hope this helps.

  • Change the perspective of an object when click

    How can I do when doing a click to the spinning object and change the perspective, as shown in this example:

    http://jsfiddle.NET/aV76H/1282/

    Sorry for my English

    Thanks in advance

    It's pretty easy as Animate publishes also JS and HTML, you can simply include the same code in your publication Animate.

    Here is an example

    https://drive.Google.com/file/d/0B2k82B_Y-fXCSk5zMFNWZm5pVDg/edit?USP=sharing

  • Change the background fill color based on Radio button selections

    Hello

    I am very new script in LC, so I hit a wall on my last form. I am creating a form with a scale of 'leikert-like', however one of the stipulations (from my boss) is in this context of buttons are to be filled based radio which button is selected.

    For example, Question 1 has 4 radio buttons to choose: poor, fair, good, great. If the person completing the form selects poor, I wish the poor to fill background color. If someone chooses right, I would like to than this background color to be filled, as well as the background of the poor. Good selection would fill the colors of good, fair and poor; and selecting the big would fill the four colors.

    Someone has ideas of how / if possible? In my first tests, I got the button itself to change the colors, but not the background fill (which can be changed manually on the border palette).

    Any ideas would be much appreciated. Thank you!

    Aaron

    Here is the code that you can use in the event of modification of the ExclusionGroup (title default RadioButtonList) object. It is the parent of each individual option button object.

    for (var i=0;i
    

    This also assumes that the value of each option button is sequentially numbered from 1 to however many boxes option you have.

    Now, here's the thing. I'm assuming that each radio button has a different color. You might code for the colors yourself in JavaScript, but I manually chose the colors through UI Designers. Once all the colors of radio buttons have been defined, select a radio button and go see > XML Source. Where we see the element, add the presence of the attribute = "hidden". Do this for each option button. Here's what I mean:

                      
                      
                         
                          
                            
                         
                      
                      
    

    Kyle

  • How can I change the model modules?  When I click on module it said I did not, but the model has 3.

    I'm new to Business Catalyst.  My site is litigationstore01.businesscatalyst.com.   3 modules are present in the model that I use which lead to 3 different product pages.  I can't find the place to change these modules.  When I click on modules in the left column a model of module group arrives, but not a way to edit what's already there. What Miss me?

    Hey there,

    Those who are not of the modules, they are produced by what I assume is the module recommended products. Depending on how this module is implemented it will use will be list or the backup from the list.

    Wise FTP it would be produced Layouts - OnlineShop - small and small backup product.

    The developer reference

  • Change the image background bitmap on a click

    I have the label with a text on the label... and I add a bitmap image right below the label.i put navigation click on the click event of image.for. now what I want,
    First, when I click on this image, the image will be replaced by a different bitmap (second)
    and
    second - my text will be saved in my database, I did the second.

    Problem solved then?

    If so, please mark this issue as resolved - see instructions in the Lnk help upwards if you are not sure about this.

  • Where has version 9 of Jabber changed the directory property, it asks to click to call?

    Hi people,

    We just had a bit of a drama where an upgrade of Jabber with CUPS has made the Jabber Software watch the directory 'phone number' property instead of the property 'IP phone' previous.  In our directory, phone number is the long number with area code and IP phone is the four-digit short dial extension.  This has caused havoc, as well as communications costs associated with going to the PSTN to call the next office, calls telephone inter-service are displayed as the number of coming out of this office instead of the extension of the agent.  In 'settings for legacy clients' cups there is a drop down to specify which property to use, where is that past to 9.x?

    Hello

    Can you please provide the following information:

    -Version presence

    Version - CUCM

    -Version of jabber

    Please note jabber version 8.x is set up in the CCMCIP profile on the presence server (settings for legacy clients), version 9.X now seeks the jabber - config.xml file that lives on the server tftp CUCM and completely ignores the profile CCMCIP.

    I would use the link below and it can help you generate the jabber - config.xml easily for all 9 versions and has a "Business phone" field you can change to "ipPhone", then download this time finished the CUCM tftp server, restart the tftp service and Jabber clients and test.

    https://supportforums.Cisco.com/document/106926/Jabber-config-file-gener...

    Hope to help

    Aaron

  • How can I change the program that opens when I click on the mail to post a link on Vista.

    I would like to change it to an email that I use, as AOL or Gmail.

    Do you use a real email client for AOL or GMail (like Microsoft Outlook, Windows Live Mail 2011, Thunderbird, etc.)?

  • How to fix a narrow strip along the right side that seems to be a copy of the right part of the browser, forcing me to right click buttons to use?

    I haven't downloaded or done something again, but today a narow Strip appeared along the right side of my window and forces me to click to the right of any button or scrollbar I want to use. Sometimes, this narrow strip is white, but it usually appears as a second window, with another bar visible, but unusable scroll.

    I saw two other reports of the present, and I'm not sure whether the previous users were able to resolve it, either by using our suggestion or in other ways. Please take a look at suggestions in these discussions:

    There must be some common element here...

  • change the dollar sign to pound sign on button 4

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Hello

    If you use the UK keyboard, press SHIFT + 3.

    If you use the keyboard, with NumLock on, hold down the ALT key and type 156 on the keyboard. When you release the ALT key, the symbol of the book is displayed.

    You can also change your keyboard type in Windows 7.

    I hope this helps.

    Thank you for using Windows 7

    Ronnie Vernon MVP

  • Change the page layout in iExpense so this button bar is shown only once.

    Hi all

    In our standard iExpense page, for Exam fee screens button bars are ongoing posted TWICE - at the top of the page and the bottom. But I want that this button bar to display only once. I tried to see where it is defined in the section of page layout to reorganize but am unable to zero in where to make this change.

    Pointers?

    Kind regards
    Archana.

    Archana,

    You mentioned, I submit my page, I am taken to review the page again.
    The review page is the second page on the right, how you found the box on this page.
    Maybe the same region is divided between the first and the second page.

    In this case, when you get to the second page (review) must check your controller extended with page you're in and get the handle of your box and make it readonly.

    Otherwise, add your checkbox in a region where it is not shared in the review page.

    Thank you.

    With respect,
    Kali.
    OSSi.

  • Dynamically place video clip on the corner and the overall position with a mouse click (button) that is always running.

    Anyone know the code to find the global positioning of the coordinates X and Y of a click of a button which turns constantly,
    then the code when you click the button, it displays a clip on the top-(position de x et y lorsque vous cliquez dessus) to the angle that you clicked (so the buttons are always rotating so others can click on them where they are)

    to explain the context, I am designing a model to the top of an interactive round table
    When someone approaches her and click on one of the buttons that move, it reads where the person has clicked on it and open a new box (video clip) where they have clicked on it (on the corner) so is not backwards if you're upstairs.

    I have included my .fla file that shows the four navigation buttons and a small diagram
    explain what I'm trying to do.

    you don't have a class named MethodAnimalMC.

  • How can I change the value of a group of radio buttons to a bidding process?

    I have an interactive report on page 1, and I'm passing the value of a column to the page of the two group of radio buttons.

    I wish I could switch this radio group and pass the parameter currently displayed in the submission process:

    #OWNER #. (CHPWD)
    PUSERNAME = >: P2_USERNAME,.
    PPASSWORD = >: P2_NEWPASSWORD,.
    (PUNLOCK = >: P2_RADIO_LOCKED);

    : P2_RADIO_LOCKED is not acquire any value that I can see.

    Published by: xerosaburu on August 17, 2009 15:07

    Published by: xerosaburu on August 17, 2009 15:08

    Hello:

    You could modify the code for the page process of implantation of the rocker.

    begin
    #OWNER#.CHPWD(
    PUSERNAME => :P2_USERNAME,
    PPASSWORD => :P2_NEWPASSWORD,
    PUNLOCK => :P2_RADIO_LOCKED);
    select decode(:P2_RADIO_LOCKED,'1','2','2','1) into :P2_RADIO_LOCKED from dual;
    end;
    

    CITY

  • Change the mouse click on display once for all the clicks?

    When you create a demonstration of the software in Captivate, I would like to change the mouse click default Visual to the custom effect 'blue circle' for all clicks.  Is there a way to change the default or modify all mouse clicks with an entry?  It is possible to change the shape of all occurrences of the mouse pointer by right clicking a mouse, but it doesn't seem to be a similar option for the click of mouse vizualized.
    Thank you, in advance.

    Try this option in the PI (Inspector):

    Kind regards

    Michel

Maybe you are looking for

  • How can I go back to iTunes 12.3.2 12.4? Upgrade went wrong - very bad!

    I let iTunes upgrade to 12.4 12.3.2 on my win 10 portable 64-bit. Subsequently, the "subfolder" which was labeled bought ' under library in my music went along with all of my downloaded music. Then I went to get my downloaded Apps and they were missi

  • NB100-125 - I can copy recovery USB drive?

    Hello world! First of all, sorry for my bad English. I have a Toshiba NB100-125 that came with installed perfect Windows XP Home Edition. All good, but I decided to install Windows 7 on it.OK, he ran on this subject, but I think it was a little heavi

  • No Windows 7 driver for the hp officejet 5510 all in one printer?

    Hi I have an old HP OFFICEJECT 5500 SERIES ALL-IN-ONE (the model is 5510).  I bought it for my original DELL XP in 2004.  He worked especially well when I transferred to my next OS from VISTA DELL (less some functions) but the impression was very goo

  • My recovery disk failed.

    When I tried to restore the system, the process could not retrieve the system.  The PC is unusable.  Is it possible to get an Acer recovery disk?

  • Cannot access internet. Icons doesn't work no more.

    My pc allows me to connect and my icons appear, but if I click on one of the icons who goes online, it does nothing. I tried rebooting (nothing) and it won't allow me to restore.