Setting Combobox 'dataProvider' @runtime and using 'labelFunction'

I have 2 comboboxes which are related i.e. when i change cb-1 i need to display values in cb-2 (cb-2 list varies with the value selected). I have simplified my case but this is what my problem is. After i set 'cb-2.dataProvider' when does 'labelFunction' for cb-2 get called?
If i am not clear enough please let me know. Here is the code.....
private function cb-1Change(event:ListEvent):void
{// This will be a dynamic one using the value selected in cb-1
cb-2.dataProvider = __model.someList.getItemAt(0).cb-2VOList;  // extracting from a Map kind object
// This Label function is never getting called
private function displayCB-2Label(item:Object):String{ 
     // something
<mx:ComboBox d="cb-1"           dataProvider="{__model.cb-1List}"
          change="cb-1Change(event)"
/>
<mx:ComboBox d="cb-2"
          labelFunction="displayCB-2Label(event)"
          change="cb-1Change(event)"
/>
          change="cb-1Change(event)"
/>  

Ryan,
        Thanks for the answer. I think i was not clear on my questions. Let me try it again:
Requirement:
       When ever user change cb-1 value it should populate a new list and assign to cb-2 dataProvider i.e. cb-2 list should refresh. cb-2 needs to display right label based on its 'labelFunction'.
cb1 -  List of Strings
cb2 -  List of VO's in the following format
ListVO:
       public var code:String;    // This Code is what user selects in cb-1
       public var  listValues:ArrayCollection;  // List of PlainVO's
PlainVO:
     public var name:String;
     public var value:String;
Also from your answer how can i call 'cb-2 label function in cb-1 change', i mean cb-2 labelFunction expects current 'ListVO' object...right?

Similar Messages

  • Setting App level Items and using it.

    Hi all
    I am setting the application level item value by application level process which is working good.
    application level process : select get_dbname into env_str from dual.
    But when I use this variable value, its not working.
    In logout URL,, I am trying to put &env_str. but that is not working.
    Any idea?
    pb

    Scott,
    Its working, but for some reason this whole thing (using item in logout url) wasnt working for this particular application.
    Thanks for the reply.
    pb

  • HT3702 iv set up an account and used my vista bebt card an its taken my money out an put it in my itunes account and i cant find it

    Iv bought no apps

    If you've added or changed the card details on your account then you've probably had a temporary holding charge applied to the card, which is to check that the card is valid and active - it should disappear off your card within a few days.
    Holding charges : http://support.apple.com/kb/HT3702

  • Question related to POF configuration and use-subclasses

    Hi,
    I noticed that the default POF configuration in coherence.jar (coherence-pof-config.xml) forces the use-subclasses flag to true (the ultimate use-subclasses value is true if whichever loaded POF configuration file specifies it to be true), and thus making it impossible to get error messages if a certain subclass of a registered type is not registered specifically in the POF-configuration, and users may silently lose data this way.
    My question is:
    Is the use-subclasses flag in the coherence-pof-config.xml set to true only because of Throwable-s, or are there other Coherence-provided classes which are serialized by subclass resolution and thus depend on the use-subclasses flag being true?
    If only the Throwable-s depend on that, then instead of setting it to true, we can set it to false and use the following class instead of ConfigurablePofContext as the Serializer class for the POF-enabled services:
    import com.tangosol.io.pof.ConfigurablePofContext;
    import com.tangosol.run.xml.XmlElement;
    * This class extends ConfigurablePofContext with the possibility to
    * configurably disable the subclass-allowed setting forced true in the
    * coherence-pof-config.xml, and still be able to use ThrowablePofSerializer for
    * each not specifically configured Throwable subclass.
    * @author Robert Varga
    public class ThrowableAwareConfigurablePofContext extends
          ConfigurablePofContext {
        * By setting this flag to true, it is possible to disable subclass
        * resolution. Interface resolution remains untouched.
       private boolean m_fDisableSubclassAllowed;
        * {@inheritDoc}
       public ThrowableAwareConfigurablePofContext() {
        * {@inheritDoc}
        * @param sLocator
       public ThrowableAwareConfigurablePofContext(String sLocator) {
          super(sLocator);
        * {@inheritDoc}
        * @param xml
       public ThrowableAwareConfigurablePofContext(XmlElement xml) {
          super(xml);
        * Sets the {@link #m_fDisableSubclassAllowed} flag. You can set this as an
        * &lt;init-param&gt; in the Coherence cache configuration file.
        * @param disableSubclassAllowed
       public void setDisableSubclassAllowed(boolean disableSubclassAllowed) {
          this.m_fDisableSubclassAllowed = disableSubclassAllowed;
        * @return false if disableSubclassAllowed is true, or result from the super
        *         implementation otherwise.
       @Override
       protected boolean isSubclassAllowed() {
          return (!m_fDisableSubclassAllowed) && super.isSubclassAllowed();
        * If the super implementation could not resolve the type id for the class,
        * and subclass-allowed is disabled and clz is a {@link java.lang.Throwable}
        * subclass then it falls back to the configuration for
        * {@link java.lang.Throwable}.
       @Override
       protected int getInheritedUserTypeIdentifier(Class clz) {
          int result = super.getInheritedUserTypeIdentifier(clz);
          if (result == -1 && !isSubclassAllowed()
                && Throwable.class.isAssignableFrom(clz)) {
             result = getUserTypeIdentifier(Throwable.class);
          return result;
    }Thanks and best regards,
    Robert

    dcarrano wrote:
    Hi Robert,
    If you are only interested in Java you are correct.
    If you need more detail please let me know but I hope this answers your question.
    Best regards,
    -DaveHi Dave,
    I am also interested in other environments, so I need more detail.
    I am looking at the portability of my POF Serializer generator in which I assume that use-subclasses is false, because supporting use-subclasses being true would be quite hard to define, not to mention implement.
    Thanks and best regards,
    Robert

  • Create and fill combobox at runtime

    Hi,
    I can now create a combobox, as a child of a gridpanel, at runtime:
    HtmlSelectOneMenu combobox2 = new HtmlSelectOneMenu();
    combobox2.setId("dropdownProject");
    gridPanel1.getChildren().add(combobox2);
    Can someone help me out with how to set the items in the combobox, at runtime?
    From my previous OO-experience I thought I could create a model (DefaultSelectItemsArray?) and attach that to the viewer (the combobox) but I can't find any way of doing that.
    I must say that I'm a java beginner so that may be part of the problem ;-)
    Thanks already,
    Bart.

    Hi again,
    It took me 4 hours but I got it to work myself.
    For the archive, here's the code:
    ArrayList dropdown1Options = new ArrayList();
    dropdown1Options.add(new SelectItem("Choice 1","My First Project"));
    dropdown1Options.add(new SelectItem("Choice 2","My Second Project"));
    dropdown1Options.add(new SelectItem("Choice 3","My Third Project"));
    UISelectItems dropdown1SelectItems = new UISelectItems();
    dropdown1SelectItems.setValue(dropdown1Options);
    HtmlSelectOneMenu dropdown1 = new HtmlSelectOneMenu();
    dropdown1.setId("dropdownProject");
    dropdown1.getChildren().add(dropdown1SelectItems);
    gridPanel1.getChildren().add(dropdown1);
    The link I missed was the one between the HtmlSelectOneMenu and the UISelectItems.
    Appearantly you bind them using the getChildren().add() method. (?)
    I'm gonna give myself the duke dollars! :-)
    Cheers,
    Bart.

  • How to set up and use multiple Ext HD compatible with Windows w/o emulating

    I am in deep doodle and confused, sit down and get a cup of coffee cuz is going to be loooooong.
    I need some suggestions for my present situation. I have posted a similar question but I only got partial answer and I need to complete this task.
    I migrated to my Mac from Windows, and I still have a Windows XP laptop. At first, I formatted my Ext HD as FAT 32 but I noticed that it was too slow. I was suggested to reformat the drives back to Journal. However, recently I had to replace my internal HD and backed up all my data to several Ext. HD. Oh brother what a mistake, while my Mac was at Apple I couldn't get access to my files using my Windows XP laptop because all drives were formatted as Journal (only for Mac).
    At the moment, I have the following:
    1- Seagate (350 GB orig)- complete back up images 110 GB avail
    2- Maxtor ( 500 GB orig) - " " second copy 330 GB avail
    3- Old int w/ casing(150 GB orig) 3rd copy 78 GB avail - is working but not sure if it will last, I had this DR for a long time. All 3 DRs formatted as Journal
    4- Western Dig 1TB (new FW) 1TB avail
    I realized that at the rate that I am shooting I would be running out of space on the current Drives. So I bought 1TB Ext HD FW, but I am in great need from others with more experience than me in setting up a strategy to back up and using my Ext HD. I only use the Int. HD DR 250 GB for Apps only, anything else I use exclusively my Ext HD.
    So I would like to know which drive should I use as my primary one, and how I should set up the other subsequent drives as shown above. Do you think that I should reformat all the drives back to FAT 32, (what a task)? I'm also aware the 4 GB limitations. Or should I just format to FAT 32 the 1 TB, and can I partition the this drive and Format each partition with different format,ie. a couple NTFS and one FAT32.
    Thanks in advance to all

    You can also share a printer between the Mac/PC as well as files and mounted Volumes, see the Tiger articles here
    http://www.ifelix.co.uk/tech/
    You may want to use Bonjour for Windows on your PC
    http://www.apple.com/macosx/features/bonjour/
    Then there are VNC clients for Mac/PC that also allow you to actually control the other machine, if they aren't in the same room and you just need to check something quick that can be handy, it's kind of slow though for regular use.
    The main benefit of partitioning is being able to have different versions of bootable OS on them. You can try out Leopard on a new partition, while keeping your Tiger partition intact, you can have a XP/Vista partition for parallels or BootCamp, etc... other than that drives are pretty much fast enough, having smaller partitions probably won't realize any significant speed ups over searching the whole large drive.

  • How to set-up and use FAMILY Sharing

    Can someone please explain to me in detail how to set-up and use FAMILY Sharing, none of the information I have so far found in the documentation helps at all, in fact it puts you in a constant loop giving the same information over and over again
    We have quite a few devices from ipads, iphones and ipods and I need to set-up Family Sharing.
    We have our main Apple ID which is linked to our Payment method, I have now got my son a new iPad, I have created his Apple ID and set-up a link via FAMILY Sharing to our main Apple ID.
    From what I read we should be able to share our purchased Apps between family members.
    So I figured I would be able to get the Apps now via iTunes that are part of the FAMILY Sharing, however when I go into ITunes (latest version downloaded yesterday) I can only see the Home sharing menu item not FAMILY Sharing, so I cannot work out in Itunes how to get Apps that are FAMILY shared.  So ok I will try and get Apps directly via the Ipad using the App Store.  To test it is working I look for a known paid for App, I then go to download it and it is now asking me to pay for it again. 
    Can someone please explain to me in detail how FAMILY Sharing is supposed to work and how I get it to work please.
    Thanks for your help
    Greg

    Hey GregWr,
    Thanks for the question. The following resources provides some of the best information regarding Family Sharing. Included, you’ll find information on making sure the accounts are set to "Share my purchases”, as well as information on downloading Family Member purchases from the iTunes Purchased section. Please note that some applications are not shareable.
    Sharing purchased content with Family Sharing - Apple Support
    http://support.apple.com/en-us/HT201085
    Which purchased content can I share using Family Sharing - Apple Support
    http://support.apple.com/en-us/HT203046
    If you don't see your family's shared content - Apple Support
    http://support.apple.com/en-us/HT201454
    Thanks,
    Matt M.

  • Can you save your own theme and button set up so I can use the same format

    Can you save your own theme and button set up, so I can use this same format for similar content. I want to keep the button content and the theme the same without having to create it everytime? I am trying to streamline the process for multiple dvd's with the same menu and buttons but different content. Does that make sense?

    I am only new to this caper too, but I am pretty sure you can save a theme as a favourite by pressing the "save theme as favourite" button under file. If you have edited an existing theme but don't want to lose it, make sure you untick the replace existing button.

  • HT204407 my 2 daughters and I are sharing one icloud.  I am trying to set up and use find my friends with them, but it won't let me.  It says I can't send a request to myself when I send one to her email address, which is different than mine.  What am I d

    my two daughters and I have iphones.  I am trying to set up and use find my friends with them. We have 1 icloud, but different emails.  When I send a request it states that I can't send a request to myself.  What am I doing wrong

    Sharing an Apple ID is never recommended for these reasons.
    They can create their own: http://appleid.apple.com and you can add them at the addresses they use for their ID.
    Sharing an Apple ID is not recommended because all of your data gets merged and when it gets deleted from one device, it deletes from them all, such as Contacts.
    iCloud Guide

  • I am trying to create a simple animated gif in Photoshop. I've set up my frames and want to use the tween to make the transitions less jerky. When I tween between frame 1 and frame 2 the object in frame two goes out of position, appearing in a different p

    I am trying to create a simple animated gif in Photoshop. I've set up my frames and want to use the tween to make the transitions less jerky. When I tween between frame 1 and frame 2 the object in frame two goes out of position, appearing in a different place than where it is on frame 2. Confused!

    Hi Melissa - thanks for your interest. Here's the first frame, the second frame and the tween frame. I don't understand why the tween is changing the position of the object in frame 2, was expecting it to just fade from one frame to the next.

  • Music and Video on Nas in folders but how do i set up itunes on multiple computers to see and use these files and create libraries?

    Music and Video on Nas in folders but how do i set up itunes on multiple computers to see and use these files and create libraries?
    So i have had a itunes set up on my old PC, bought a NAS and copied the folders over to the NAS, i did this incorrectly and so then even when i told the old PC to use that folder it saw all the songs but wasnt able to play the songs as it was looking in the incorrect place.
    So now i want my Mac as well as my PC and others to all use the music, videos etc on the NAS they are in itunes friendly folders (as they were compiled this way by the itunes on the old PC.
    When i tell the mac to use the itunes library.itl file it sees the song list (about 100gb) but cant see any songs, so i have removed this file to another location for now with the hope to set up a new file and then get it to see the songs on the folder from the NAS.
    Can someone tell me how to do this for all the Mac's and PC's on my network as i really want one master library that all use and add too.
    Thanks for your help in advance.

    I have the same question but I am using two pc's

  • HT204053 How can I remove an apple Id ( hotmail address)which is being used in the app store and iTunes but is actually a blocked account and use a current live account which is now set for mail etc ?

    I have 2 apple iDs ( hotmail accounts) one of which was set up some time ago and not used for awhile in which time it has become blocked. This Id is set up in iTunes and the app store. It is linked to an old email address which is no longer used which means I can't retrieve a code to reactivate. What I want to do is remove this inactive hotmail account and use the other for all access with iTunes, app store, iCloud,mail etc. without losing all apps and credits. Can this be achieved ? My daughter needs the iPad at school and at the moment can't use iCloud and mail and I am scared to add more iTunes credit when there is a problem with this account... I am desperate and have tried everything I know, thanks

    Welcome to the Apple community.
    iTunes and iCloud and different accounts, you will need to delete both accounts from your device before adding the new details in their place.
    For iCloud go to settings > iCloud, scroll down and hit the delete button. You can then sign back in using your correct details. For iTunes go to settings >store, tap your account ID and then sign out, you can then sign back in using your correct Apple ID.

  • How do I set up mutiple icloud accounts using my Apple ID but giving my children (and their ipod touches) their own icloud e-mail, so we do not share contacts photos etc

    How do I set up mutiple icloud accounts using my Apple ID but giving my children (and their ipod touches) their own icloud e-mail, so we do not share contacts photos etc

    Welcome to the Apple Community.
    Create an iCloud account for each of them.

  • My daughter has an ipod and used itunes through her mom's account, we now set up a new itunes for her iphone, we were able to transfer the purchased music to the library but not the songs she had on old cd's, how do I get all the music off her ipod?

    My stepdaughter has an ipod and used her mom's itunes account, now we set her up with her own itunes but I can only transfer purchased music to her library. How do I get all of her music off of her ipod? (she doesn't have all the cd's she used)

    You may be able to buy a program to do this - not supported by Apple.
    the ipod is not a storage device.  The sync is one way - computer to ipod.  The only exception is itunes purchaes.
    The music should be on a computer as that is where they came from in the first place.

  • Can i set up my iPad and iPod to use iMessage between the two devices with the same Apple ID?

    Can i set up my iPad and iPod to use iMessage between the two devices with the same Apple ID? SO i could iMessage if out from my iPod to my iPad at home to be viewed by a family member?

    Look into using Apple Configurator.  It's the easiest way to "reimage" and Manage iPads that I know of right now. 
    http://itunes.apple.com/us/app/apple-configurator/id434433123?mt=12
    Also, look into using the Educational Volume Purchase Program, if you have not already done so. 
    http://www.apple.com/education/volume-purchase-program/

Maybe you are looking for

  • Logic express 8 won't run the update I downloaded

    I have a registered working version of logic express 8. I downloaded the update and when I try to run it it says "An eligible Logic Express Version was not found in the Applications Folder. This Update requires Logic Express version 8.0" I have a Mac

  • HW mute / LED on HDX16 - details and ... Linux

    Hello HP forum, are there details on the HW logic fo muting ? On Linux the mute key is working but is only controlling SW mute. So the driver sets volume internally to "0", marks the icons as muted, but does NOT mute the HW. So the mute LED on the HD

  • Camera problem helppppp plzz :(

    does anyone know how to solve this? it is getting on my nerves, neither bootcam nor facetime (the camera) work

  • If you think sambo79 is a twirp...

    then post here and I'll give you ALL THE DUKES I HAVE!!!

  • Clean up Dust/Scratches on iPhoto Based Pix ?

    Background:  I have current Mac/iPhoto software and a CanonScan 9000F that came with PSE 8. I plan to scan about 25 trays of old slides and get them organized with iPhoto. The first two trays have been imported to iPhoto events and they turned our re