How can access every item on a HorizontalList Component

Hi,
       I would like to know how can I access every item on a HorizontalList component. What I want to do is something like this:
My HorizontalList:
<mx:HorizontalList
        bottom="0"
        backgroundAlpha="0.0"
        id="catalogoOpciones"
        columnCount="3"
        height="80"
        hideEffect="{esconderse}"
        horizontalScrollPolicy="on"
        selectable="false"
        showEffect="{mostrarse}"
        width="100%">
        <mx:itemRenderer>
            <mx:Component>
                <mx:VBox  height="100%" verticalGap="0" horizontalAlign="center">
                    <mx:Label id="titulo" text="{data.nombre}"  textAlign="center" styleName="nombreOpcionDetallePlato" />
                    <mx:ComboBox id="seleccion" dataProvider="{data.opciones}" labelField="label" labelFunction="funcionLabelComboBox"                                         styleName="comboOpcionDetallePlato" change="dispatchEvent(new Event('cambioOpcion',true))"/>
                    <mx:Script>
                        <![CDATA[
                            public function funcionLabelComboBox(item:Object):String {
                                    return item.label + ", $" + item.precio;
                        ]]>
                    </mx:Script>
                </mx:VBox>               
            </mx:Component>
        </mx:itemRenderer>
    </mx:HorizontalList>
What I want to do is to show on an Alert screen the selected index in every ComboBox on the horizontallist:
for(var i:Number=0;i<horizontalListt.dataProvider.length;i++){
     var indice:Number = (horizontalListt.dataProvider.getChildAt(i) as ComboBox).selectedIndex;
    Alert.show(indice.toString());
I must add, that the horizontalList is working just fine, the only thing that's giving me problems is the access to every item in the list.
Thank you very much for your time and help.
Sebastián Toro O.

Greg, thank you for your quick response, but your answer is a little ambiguous for me. How can my dataProvider change when the user selects another index? the itemRenderer it's supposed get the information off the dataProvider to fill its ComboBoxes, but when the user selects another index, that change shouldn't have any effect on the dataProvider.
remember that the itemRenderer is:
<mx:itemRenderer>
            <mx:Component>
                <mx:VBox  height="100%" verticalGap="0" horizontalAlign="center">
                    <mx:Label id="titulo" text="{data.nombre}"  textAlign="center" styleName="nombreOpcionDetallePlato" />
                    <mx:ComboBox id="seleccion" dataProvider="{data.opciones}" labelField="label" labelFunction="funcionLabelComboBox"                                                   styleName="comboOpcionDetallePlato"  change="dispatchEvent(new Event('cambioOpcion',true))"/>
                    <mx:Script>
                        <![CDATA[
                            public function funcionLabelComboBox(item:Object):String {
                                    return item.label + ", $" + item.precio;
                        ]]>
                    </mx:Script>
                </mx:VBox>               
            </mx:Component>
        </mx:itemRenderer>
So what I whant to access, is every Component that the itemRenderer created:
Alert.show(((catalogoOpciones.dataProvider.getItemAt(0) as VBox).getChildByName("seleccion") as ComboBox).selectedIndex.toString());
I want to get the selectedIndex of the ComboBox of the First Item that was created on the  HorizontalList. I thought the last line of code would do the trick but it doesn't. Could you be more specific please?
Thanks again
Sebastián Toro O.
PS:don't worry that if you answer my question you'll get the 10 pts

Similar Messages

  • How To Access PAGE ITEM (single row) from HTML source

    Hi Guys,
    I have a page Item that return a string.
    I would like to show this string
    How To Access PAGE ITEM (single row) from HTML source?
    My desire final output is
    <marquee>:P1_PAGE_ITEM</marquee>
    Can please help me
    Thanks

    Hi,
    You can refer the page items in your page header as &itemname. For example, if I have page item P15_TEST, I will add the following in header:
    <marquee>
       &P15_TEST.
    </marquee>But make sure that you have a process before header to populate the value in your page item. Otherwise, there will be a null scrolling (which you can't see!) :)
    Regards,
    Zahid

  • How can access stock value corresponding to an ItemCode and WarehouseCode ?

    Hello everybody. Do you know how can access stock value (corresponding to OITW.StockValue) corresponding to an ItemCode and WarehouseCode in SAP BO 2005 using DI API objects ?
      Thanks in advance,
      TLBS

    Hello,
    you need to use the items Object of the DI
    you need to first make a GetByKey on your item Code
    this object has a child object called ItemWarehouseInfo,
    using this object (it has several line, one by Warehouse), find the good Warehousecode, and look at the value InStock)
    HTH
    Sebastien

  • How can I remove items from my start up disc and create more space on it?, How can I remove items from my start up disc and create more space on it?

    My Mac Book Air tells me that the start up disc is nearly full land that I do not have the capacity to load Maverick.  How can I remove items that I may not need from this disc?

    Move them to an external hard drive, formatted as HFS Extended (Journaled).

  • How can i remove items from list that have been deleted when i click on them it keeps showing empty

    how can i remove items from the list that have been deleted when i click on them it keeps showing folder empty

    Actually, Reader SHOULD keep showing documents that no longer exist, I disagree. It's no big deal, and people will quickly realise why they can't open the file. They open more files, the old ones move off.
    The REASON why it should not check is that checking whether a file exists can take a long time when things aren't good. For instance if a file server goes down, or a memory card is unplugged. That in turn would mean delays opening the File menu, and I've seen some software that can sit there for several minutes. That would really give people something of which to complain...

  • How can I remove items from the open a recent file menue.

    How can I remove items from the "Open a Recent File" menue. Many other applications allow the clearing of that file . Is this possible in Adobe Reader 10.1.2 ? If so how?

    See this previous topic: http://forums.adobe.com/message/3759596
    It is for Acrobat, but the registry entries are similar for Reader.

  • How can i upload items in the product catalog ?

    Hello ,
    How can i upload items in the product catalog? ( Other than running the concurrent program to import the items from inventory module) 

    Hi,
    Is this in iStore or Other CRM Module?
    Regards
    Shyam
    Please see following Metalink Note ID for all in One solutions
    Oracle E-Business : All In One Metalink Note ID's
    If you are happy with the Document, please mark as Helpful by doing so this will provide assistance for other people looking for answers to their queries.

  • How can  I have items in the Dock show up as lists

    How can  I have items in the Dock show up as lists rather thanimages?

    Control-click a folder and choose to display it as a stack, or Option-click it to display its contents.
    (67835)

  • How can I open items made with apple works

    How can I open items made with apple works

    You need to purchase Pages for your iMac. You can buy it from the App Store.
    I don't know if the version of Pages for the iPad will open the Apple Works documents. If you have the documents on your Mac and want to open them on your iPad the easiest way I can think of is to open a DropBox (Google it) account and store the documents there. Then you can try to open the documents in Pages on your iPad. If that doesn't work then I know Pages for OS X will open the Apple Works WP documents.

  • What is the "Other" category under storage and how can i delete items from this?

    My disc is almost full.  "About this Mac" says that I have 47 GB of "Other."  What is this Other and how can I delete items from this?

    For information about the Other category in the Storage display, see this support article.
    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
    iPhoto ▹ Empty Trash
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then reboot. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation. You also need enough space left over to allow for growth of the data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown asBackups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Reboot and it should go away.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) to explore the volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.
    Deleting files inside an iPhoto or Aperture library will corrupt the library. Any changes to a photo library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    If you have more than one user account, make sure you're logged in as an administrator. The administrator account is the one that was created automatically when you first set up the computer.
    Install ODS in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The application window will open, eventually showing all files in all folders, sorted by size with the largest at the top. It may take a few minutes for ODS to finish scanning.
    I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with ODS, quit it and also quit Terminal.

  • My RAM is full. How can I delete items from RAM?

    RAM is nearly full on MacBook. How can I delete items from RAM?

    Nothing is stored permanently in RAM. I think you mean on your hard drive:
    If you really meant RAM then add more RAM. Otherwise,
    Freeing Up Space on The Hard Drive
      1. See Lion's Storage Display.
      2. You can remove data from your Home folder except for the /Home/Library/ folder.
      3. Visit The XLab FAQs and read the FAQ on freeing up space on your hard drive.
      4. Also see Freeing space on your Mac OS X startup disk.
      5. See Where did my Disk Space go?.
      6. See The Storage Display.
    You must Empty the Trash in order to recover the space they occupied on the hard drive.
    You should consider replacing the drive with a larger one. Check out OWC for drives, tutorials, and toolkits.
    Try using OmniDiskSweeper 1.8 or GrandPerspective to search your drive for large files and where they are located.

  • How can access data in rman output file "daily.log"

    Hi All,
    i did use following query for rman out
    output file "daily.log" has been created,but does not exist data.
    how can access data in output file "daily.log"
    bash-3.00$ sh rmant.sh
    Recovery Manager: Release 10.2.0.3.0 - Production on Thu Jun 30 16:54:16 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: DEV (DBID=45558086)
    RMAN> Spool log to daily.log;
    2> run
    3> {
    4> backup databas;
    5>}
    6> spool log off;
    7>
    Spooling started in log file: daily.log
    Recovery Manager10.2.0.3.0
    Starting backup at 30-JUN-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=634 devtype=DISK
    channel ORA_DISK_1: starting compressed incremental level 0 datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00014 name=/u02/proddata/a_int01.dbf
    input datafile fno=00022 name=/u02/proddata/a_txn_data01.dbf
    input datafile fno=00023 name=/u02/proddata/a_txn_data02.dbf
    input datafile fno=00024 name=/u02/proddata/a_txn_data03.dbf
    input datafile fno=00039 name=/u02/proddata/a_txn_data04.dbf
    input datafile fno=00038 name=/u02/proddata/undo02.dbf
    input datafile fno=00027 name=/u02/proddata/a_txn_ind03.dbf
    input datafile fno=00028 name=/u02/proddata/a_txn_ind04.dbf
    input datafile fno=00012 name=/u02/proddata/undo01.dbf
    input datafile fno=00015 name=/u02/proddata/a_media01.dbf
    input datafile fno=00025 name=/u02/proddata/a_txn_ind01.dbf
    input datafile fno=00026 name=/u02/proddata/a_txn_ind02.dbf
    input datafile fno=00029 name=/u02/proddata/a_txn_ind05.dbf
    input datafile fno=00021 name=/u02/proddata/a_summ01.dbf
    input datafile fno=00019 name=/u02/proddata/a_ref01.dbf
    input datafile fno=00020 name=/u02/proddata/a_ref02.dbf
    input datafile fno=00001 name=/u02/proddata/system01.dbf
    input datafile fno=00002 name=/u02/proddata/system02.dbf
    input datafile fno=00003 name=/u02/proddata/system03.dbf
    input datafile fno=00004 name=/u02/proddata/system04.dbf
    input datafile fno=00005 name=/u02/proddata/system05.dbf
    input datafile fno=00006 name=/u02/proddata/system06.dbf
    input datafile fno=00007 name=/u02/proddata/system07.dbf
    input datafile fno=00008 name=/u02/proddata/system08.dbf
    input datafile fno=00009 name=/u02/proddata/system09.dbf
    input datafile fno=00010 name=/u02/proddata/system10.dbf
    input datafile fno=00011 name=/u02/proddata/system11.dbf
    input datafile fno=00013 name=/u02/proddata/a_archive01.dbf
    input datafile fno=00036 name=/u02/proddata/sysaux01.dbf
    input datafile fno=00016 name=/u02/proddata/a_nolog01.dbf
    input datafile fno=00037 name=/u02/proddata/izu01.dbf
    input datafile fno=00017 name=/u02/proddata/a_queue01.dbf
    input datafile fno=00018 name=/u02/proddata/a_queue02.dbf
    input datafile fno=00031 name=/u02/proddata/odm.dbf
    input datafile fno=00034 name=/u02/proddata/portal01.dbf
    input datafile fno=00035 name=/u02/proddata/sfx01.dbf
    input datafile fno=00030 name=/u02/proddata/ctxd01.dbf
    input datafile fno=00032 name=/u02/proddata/olap.dbf
    input datafile fno=00033 name=/u02/proddata/owad01.dbf
    channel ORA_DISK_1: starting piece 1 at 30-JUN-11
    channel ORA_DISK_1: finished piece 1 at 30-JUN-11
    piece handle=/sw/weekly_cum_database_DEV_t755196858_c1_s24_p1 tag=WEEKLY_CUM_DAT
    ABASE comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:32:55
    channel ORA_DISK_1: starting compressed incremental level 0 datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current control file in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 30-JUN-11
    channel ORA_DISK_1: finished piece 1 at 30-JUN-11
    piece handle=/sw/weekly_cum_database_DEV_t755198834_c1_s25_p1 tag=WEEKLY_CUM_DAT
    ABASE comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
    Finished backup at 30-JUN-11
    Spooling for log turned off
    Recovery Manager10.2.0.3.0
    Recovery Manager complete.
    bash-3.00$

    i did try this but it hangs
    bash-3.00$ sh rmant.sh
    Recovery Manager: Release 10.2.0.3.0 - Production on Fri Jul 1 10:52:01 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: DEV (DBID=45558086)
    RMAN> Spool log to 'daily' append;
    2> run
    3> {
    4> backup as backupset
    5> incremental level=0 cumulative
    6> device type disk
    7> tag "weekly_cum_database"
    8> format '/sw/weekly_cum_database_%d_t%t_c%c_s%s_p%p'
    9> database;
    10> }
    11>

  • How can i validate items in java

    hi....
    how can i validate items in java....so that user can not type in characters
    in the place of number????
    please help?!?

    Hope u know getText() method returns string
    i.e text1.getText() returns string.
    U need to convert the string to integer with integer class. Go
    to the documentation to search for it.
    Then attach a conditional statement stating if not numeric
    , then not valid. if u have little knowledge of java, u will understand it.
    Otherwise, wait till tomorrow bcos I'm late for xmas carol.

  • How can we delete item master records in B1?

    Hi everyone,
    Can anyone tell me to how can we delete item master records in B1?
    Regards,
    Ronauk

    Hi Ronauk,
    Item Master Data --> Right click and Remove Items
    Before that check the items
    1.Item was '0' qty
    2.Item Master Data--Inventory Data-->Check all the warehouse-->Instock-->Commitment->Order Qty
    Removal items is fresh nothing problem for removing process.
    Is there any postings, the all related data's are abused.
    Regards,
    J.M.Halik

  • How can I delete items from my iCloud to make more storage available?

    Wanting to make room in my iCloud storage, how can I delete items?

    http://support.apple.com/kb/HT4847

Maybe you are looking for

  • Since I updated my iphone I lost all my data, contacts emails etc.

    So just a while ago, itunes recommended to update my iphone. While living in this era everything seems to be in need of updates, apparantly nobody can make a normal functional wokring program at once anymore. Anyway of course i accepted and voila, it

  • Premiere CS4 - Encoding with AME ridiculously slow

    Hello there. After having read many threads on various forums, I have not come to a single hint as to why AME is encoding any type of video materal extremely slow. I'm sorry if this question has been asked many times on this forum, but maybe someone

  • What is the execuatable for report gen

    hai can any one help how to genarate report from back end how to chk reports version

  • JAVACARD development environment???

    Hello everyone I am a beginner of javacrad development, I built a environment like this: Eclipse V3.3.2 JRE 7 Plugin JCDE0.1 JCDK 2.2.2 JCOP Tools 3.1.1.b already activate but I found there are some errors for this environment. 1. I can not generate

  • WinFS repository content gives Internal Server Error

    Hi,   I am stuck with a Windows FS repository problem . The repository is displyed in KM Content with the folder hierarchy. But whichever document (xls,pdf,doc etc) that I open inside gives a "<b>Internal Server Error</b>". There are 4 repositories e