Is it possible to make an item in combobox not be selectable ?

Hi,
In order to get a seperator in combobox , I am using
follwing logic,
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
[Bindable]
public var arr:Array =
[{label:"Test(1)"},{label:"Test(2)"},{label:"----------"},{label:"Test"},{label:"SimpleTe st"}]];
public var str:String = "str";
public function isItem(str:String):Boolean{
if(str.match("--")){
return false;
}else
return true;
]]>
</mx:Script>
<mx:ComboBox width="250" dataProvider="{arr}" >
<mx:itemRenderer>
<mx:Component>
<mx:Label text="{data.label}" color="#000000"
selectable="{outerDocument.isItem(data.label)}" >
</mx:Label>
</mx:Component>
</mx:itemRenderer>
</mx:ComboBox>
</mx:Application>
But it is not working. Is there any solution for this.
Also i would like to know whether my approach is right to get
a separator between two groups of elements in combobox.
Thank You...

This link should help:
http://butterfliesandbugs.wordpress.com/2007/08/27/how-to-add-a-separator-to-your-combobox /
matt horn
flex docs

Similar Messages

  • Possible to make an item editable for certain users and read only for other

    Is it possible to make an item editable for certain users and read only for others?
    I've been able to accomplish this by taken the select statement that I used to define an authorization scheme, placing it in the Read Only condition of the item. However, I would like to simply reference the authorization scheme to utilize caching, and to help keep things cleaner for future maintenance.
    Is it possible to reference an authorization scheme in an item condition similar to the way another item can be referenced by preceding it with a colon (i.e. :P1_First_Name)?

    Thank you, your suggestion worked.
    It would be nice on a future release of APEX if a drop-down box existed under the Ready Only section that would allow an existing Authorization Scheme to be selected or negated when applying the Read Only attribute to a form item.

  • Is it possible to make an item not have any discount at all?

    This is the situation - A customer wants to turn off the ability for all users to give any discount for certain items. Rest of the items may have discounts based upon BP discount or any other price hierarchy discount. Users can also override this discount during order creation. But discount should be possible only if the item master data says the item is discountable.
    Is this possible please? Is there such a field on Item master data to turn off discounts altogether? If not any other suggestions to achieve the above.
    Thanks.

    Hi Bala, you are right, the user must be able to give discounts to items that can be discounted. Most often the discounts will come from the BP price list and associated special and hierarchic pricing.
    As Rakesh suggested, I shall run it by our client if they would want to limit discount ability across the board for their users through General authorizations and perhaps allow for only some users who could override manual discounts to certain limits. Again it pertain to the ability to override manual discounts on top of BP discounts through list for all items for some users only.
    Thanks again Bala and Rakesh.
    Edited by: Syed Aleem on Jan 11, 2011 1:32 AM

  • Is it possible to make the pasteboard and menus not so dark?

    We just upgraded to the new CC version of Indesign. Is it possible to make the paste board and menus/palletes white, or at least not so dark? It is very difficult to see darker colors in the color palette. The high contrast between the dark pasteboard and the white page gives me a splitting headache.

    apologies for the double post. I was not sure how this worked, and did not think it went through the first time. Can you diresct me to where that answer is? We did not see a reply regarding that.
    Thank you for your reply.

  • Is it possible to make an event that does not have an end time?

    I want to make an event that says I have a meeting at 4:30pm. I don't know when they meeting will end, so how do I leave that blank?

    Hi Bala, you are right, the user must be able to give discounts to items that can be discounted. Most often the discounts will come from the BP price list and associated special and hierarchic pricing.
    As Rakesh suggested, I shall run it by our client if they would want to limit discount ability across the board for their users through General authorizations and perhaps allow for only some users who could override manual discounts to certain limits. Again it pertain to the ability to override manual discounts on top of BP discounts through list for all items for some users only.
    Thanks again Bala and Rakesh.
    Edited by: Syed Aleem on Jan 11, 2011 1:32 AM

  • Possible to make a guide into a mask or selection?

    Is this possible? I want to use a guide made from an object, as a cookie cutter for an image that I've placed under it. thanks!

    Thanks,
    This actually worked to crop the OUTSIDE of my circle, but for some reason the hole in the middle of this circle was never masked
    When working with more than one guide/ path, I keep bumping into a few rules.
    I think if I can get this, I'll start to understand how to separate my layers better.
    "The selection cannot contain objects within different groups unless the entire group is selected."
    I get this message even when I select "entire groups"
    "Can't make the selection into guides. Guides cannot be created or released within the selected object types."
    Well, I wasn't trying to create guide, actually. (lol)
    So my real question is, where can I find an advanced tutorial that focuses specifically on layer order/simplification, as opposed to just creating some nice Illustrator image?
    I seem to be inadvertently creating a surplus of extra paths and layers and groups that I don't even need, (i can prove it by throwing them out) lol!

  • So lately my ipad has been syncing my mom's music. I go on to itunes to make sure those albums have not been selected under my ipad and they AREN'T. Someone please help! How do I other music from syncing to my ipad?

    My whole family shares the same MacBook and itunes library.
    For awhile my ipad has been syncing other peoples music to my ipad, and when I check on itunes these albums aren't even selected.
    Someone please help me!!!! How do I stop the unselected music from being synced to my ipad? (and for specific music, my ipad won't let me delete some music right from my music app)

    My wife, daughter and I all shared one iTunes library on one Mac and synced 6 different devices and never had problems selecting exactly what we want to sync to each device.
    Even though you do not have these particular songs or bums selected to sync, do you have "Sync only checked songs and Videos" in the Summary Tab of iTune? If you don't have that option selected, makes sure that you so check it before you sync again.
    You should be able to swipe across songs in the songs tab of the music app - Swiping from Right to Left - and that will bring up the Red Delete Button. You cannot delete entire albums but holding down on the icon to bring up the X on the album icon. That doesn't work in iOS. 7.
    If you are seeing songs in the Music app with the cloud icon on the right hand side, those songs are not on your iPad but are in iCloud and can be downloaded if you want to do so. If you do not want to see those songs, go to Settings>iTunes & App Stores>Show All>Music>Off.

  • How to make the GL account discription possible in FAGLL03 line item display?

    Dear Experts,
        Could you tell me how to make the GL account discription possible in FAGLL03 line item display?
        I checked the layout, there is no account discription.
        How should I do?
    Thanks!
    Xinling Zhang

    Hi
    One you execute FAGLL03, go to Settings>Layout>Current Header Rows
    You can add some predefine characteristics here.
    I am not sure why the hyperlink is not working at your end. But you can search the SDN for special fields in FAGLL03 and you can get lot of posts for this document.
    Regards
    Sanil Bhandari

  • Make a item flexfield mandatory at running time

    Hi everybody,
    I am going to ask something that maybe is not very normal, but, my client really want it.
    I have a descriptive flexfield with several itmes. We want to make one ot these items mandatory at running time based on one condition but in the flexfield definition this item is not mandatory.
    We hava tried by personalization but is not possible.
    Thank you very much,.

    Duplicate post, possible solution on this thread:
    Make a item flexfield mandatory at running time
    Regards,
    Gareth

  • It's possible to make Hierarchical Tree from multiple tables ?

    the famous example for Hierarchical Tree is about employee_id and manager_id field in employees table ............ so I was wondering it's possible to make[b] Hierarchical Tree from multiple tables ? and How ??
    if the answer associate with example that will be so kind of you :D
    and thanks in advance.

    HI
    use curose in when new form instance or procedure then u can got data more then one table like that
    DECLARE
    htree ITEM;
    top_node FTREE.NODE;
    new_node FTREE.NODE ;
    child_node ftree.node ;
    item_value VARCHAR2(30);
    cursor prime_cur is select main_desc mgr_name, main_code dept
    from pur_item_group_mst;
    cursor child_cur(v_dept number) is select sub_desc,sub_code
    from pur_item_group_dtl where main_code = v_dept ;
    BEGIN
    htree := Find_Item('tmp.tree4');
    for dummy in prime_cur loop
    new_node := Ftree.Add_Tree_Node(htree,
    ftree.root_node,
    Ftree.PARENT_OFFSET,
    Ftree.LAST_CHILD,
    Ftree.EXPANDED_NODE,
    dummy.mgr_name,
    'D:\ORYX_POLYBAGS\accept',
    dummy.dept);
    for child in child_cur(dummy.dept) loop
         child_node := Ftree.Add_Tree_Node(htree,
    new_node,
    Ftree.PARENT_OFFSET,
    Ftree.LAST_CHILD,
    Ftree.EXPANDED_NODE,
    child.sub_desc||' '||'('||child.sub_code||' '||')',
    'D:\ORYX_POLYBAGS\next',
    child.sub_code);
    end loop;
    end loop;
    END;
    Rizwan Shafiq
    www.rizwanshafiq.blogspot.com

  • Is it possible to make a fixed size page in muse, so it doesn't resize?

    I want to make a fixed size page (pic1),
    but there always an extra space on the bottom… pic2

    Thank you for reply - I will check it out…
    Date: Wed, 18 Dec 2013 09:07:46 -0800
    From: [email protected]
    To: [email protected]
    Subject: Is it possible to make a fixed size page in muse, so it doesn't resize?
        Re: Is it possible to make a fixed size page in muse, so it doesn't resize?
        created by Zak Williamson (Adobe) in Help with using Adobe Muse CC - View the full discussion
    Assuming the screenshots are of the same page, the one that's taller is either taller because the minimum page height has been changed or due to some page content (that's not marked as a Footer Item) being located in the new space. This may be an empty text frame or the transparent area of a widget, text frame or other object.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5941664#5941664
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5941664#5941664
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5941664#5941664. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Help with using Adobe Muse CC at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Is there any way to make work item invisible in the SAP inbox?

    Is there any way to make work item invisible in the SAP inbox?
    If yes , How?
    How can we delete a work item without using SAPLSINWP program?Is it possible???

    Thanks suresh, But I was a looking for a solution where as soon as the work item is created should be made invisible in the SAP inbox, is there any way for this or any other alternative?

  • How to make Delivery Item Relevant for Proof of Delivery

    Hi,
      How is it possible to make the Delivery Item relevant for Proof of Delivery (POD). What are the configuration settings required?
    Regards,
    Priyanka.

    Hi Priyanka,
    Following is the method to make Delivery Item Relevant for Proof of Delivery:
    1.  SPRO --> Logistics Execution --> Shipping --> Deliveries --> Proof of delivery
    a.Set POD-Relevance Depending on Delivery Item Category
    (In this activity, you can set the proof of delivery (POD) relevance depending on the delivery item category.)
    Put (X) Relevant for POD, for the relevent Item Categories
    b.Define Reasons for Quantity Differences
    (Define how the quantity is to be calculated (add or subtract the difference quantity, depending on whether you are dealing with an overdelivery or an underdelivery for eg. due to damage during transport).
    2. Set the Relevant for POD indicator on the Shipping tab page of the customer with whom you would like to carry out POD-processing.
    Hope it helps.
    Regards,
    Anirban Roy

  • I am living USA and Mexico for my work and I do have account in USA but is that possible to make Mexican account same time? I like to keep USA account when I'm in USA

    I am living USA and Mexico for my work and I do have account in USA but is that possible to make Mexican account same time? I like to keep USA account when I'm in USA

    If you have a valid payment method in Mexico (e.g. Mexican credit card) billed to a Mexican address then I guess you could.  There are certain disadvantages to having more than one account, but in your case I don't see they apply.  Just make sure you have copies of everything you buy from each country on backup because you will no longer be able to redownload items when you can no longer use that country's store.

  • Is it possible to make an alert message.

    Hi,
    Anyone knows if it Is possible to make an alert-message that pops up ( f.e as a little window) on a specific day to remember me of something I have to do that day?
    Would be handy.
    Is this possible with Tiger or is there a third party application that does the trick?
    Thanks in advance.

    Try a free widget called quikAlert
    http://www.apple.com/downloads/dashboard/business/qwikalert.html
    Regards
    TD

Maybe you are looking for

  • Manual Excise condition type with calculation type as FIXED AMOUNT

    Dear Gurus, I have used a manual excise condition (JMAN) in my pricing procedure the difference is that I've changed its calcultaion type to FIXED AMOUNT. And in the same pricing procedure I have also got a percentage based Excise condition (ZEXC). A

  • Spool request settings

    HI, I am executing one transaction in Background and that generates one spool report. however, the report rows and columns are cutoff  after so many lines and we end up not getting a full report. on the spool request attributes , SAP limits it is 65

  • 2011 MBP 2nd HDD mod with SSD

    I have been trying for days to successfully get Bootcamp 4 +win7 onto my 2011 MBP. I have modded my MBP to have a second hard drive (ssd in main bay, original 750gb HDD in sled where optical drive used to be.) SSD is in the main HDD slot, and was put

  • Shipping point - Inbound delivery

    Hi gurus, Which shipping point do we use in return delivery ? Can we keep the same shipping point for both outbound delivery & inbound delivery. If we maintain different shipping point for return delivery then what is the shipping point determination

  • Devolver iphone 5S perdido

    Como hago para contactar y devolver al dueño original de un iphone 5S de 64 gb encontrado en Playa del Carmen Mexico, es de la operadora AT&T. El correo en la pantalla de bloqueo esta incompleto y no lo puedo contactar via email.