Styling MenuBar drop-down (how to separate items with borders)

Hi,
I have a MenuBar with some drop down. I would like to
separate each item in the drop down with a top/bottom border such
as the below. How can I do this? I can't seem to get the right
style.
ROOTNode
item1
item2

hi
see this
http://blog.flexexamples.com/2008/01/29/adding-a-horizontal-separator-to-a-flex-popupbutto n-controls-pop-up-menu/
and this
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Live Docs_Book_Parts&file=menucontrols_061_3.html

Similar Messages

  • How to populate drop down list in infopath 2010 with form Active Directory resources.

    I want to populate drop down list in infopath 2010 with Active directory resources.
    Kindly let me know how to do this.

    Actually I posted an alternative approach, whoops. This is the Web service way, but both will work;
    http://blog.mangroveweb.com/pre-populating-an-infopath-from-with-mysql-data-using-a-net-web-service/using-sharepoints-getuserprofilebyname-web-service-to-retrieve-ad-account-information/
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

  • How populate itemrenderer items with data.

    How populate itemrenderer items with data. Ie after my app starts I generate an array collection that I want to assign as the data provider to each combobox in my item renderer, which im using in a datagrid.

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   minWidth="955"
                   minHeight="600">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
            <s:ArrayCollection id="booksWithStores">
                <fx:Object name="book1" stores="{new ArrayCollection(['store1','store2'])}"/>
                <fx:Object name="book2" stores="{new ArrayCollection(['store1','store3'])}"/>
                <fx:Object name="book3" stores="{new ArrayCollection(['store2','store3', 'store4'])}"/>
                <fx:Object name="book4" stores="{new ArrayCollection(['store1','store4'])}"/>
            </s:ArrayCollection>
            <s:ArrayCollection id="booksWithoutStores">
                <fx:Object name="bookA"/>
                <fx:Object name="bookB"/>
                <fx:Object name="bookC"/>
                <fx:Object name="bookD"/>
            </s:ArrayCollection>
            <s:ArrayCollection id="allStores">
                <fx:String>store1B</fx:String>
                <fx:String>store2B</fx:String>
                <fx:String>store3B</fx:String>
                <fx:String>store4B</fx:String>
            </s:ArrayCollection>
            <fx:Component id="renderer1" className="Renderer1">
                <s:MXDataGridItemRenderer>
                    <s:DropDownList dataProvider="{data.stores}" />   
                </s:MXDataGridItemRenderer>
            </fx:Component>
            <fx:Component id="renderer2" className="Renderer2">
                <s:MXDataGridItemRenderer>
                    <s:DropDownList dataProvider="{storesList}" />
                    <fx:Script>
                        <![CDATA[
                            import mx.collections.ArrayCollection;
                            [Bindable]
                            public var storesList:ArrayCollection;
                        ]]>
                    </fx:Script>
                </s:MXDataGridItemRenderer>
            </fx:Component>
        </fx:Declarations>
        <mx:Form>
            <mx:FormItem label="Dynamic Stores">
                <mx:DataGrid dataProvider="{booksWithStores}" width="354">
                    <mx:columns>
                        <mx:DataGridColumn dataField="name"/>
                        <mx:DataGridColumn dataField="stores" itemRenderer="{renderer1}"/>
                    </mx:columns>
                </mx:DataGrid>
            </mx:FormItem>
            <mx:FormItem label="Static Stores">
                <mx:DataGrid dataProvider="{booksWithoutStores}" width="354">
                    <mx:columns>
                        <mx:DataGridColumn dataField="name"/>
                        <mx:DataGridColumn dataField="stores" itemRenderer="{createRendererWithProperties(Renderer2, {storesList:allStores})}"/>
                    </mx:columns>
                </mx:DataGrid>
            </mx:FormItem>
        </mx:Form>
        <fx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                public static function createRendererWithProperties(renderer:Class, properties:Object):IFactory
                    var factory:ClassFactory=new ClassFactory(renderer);
                    factory.properties=properties;
                    return factory;
            ]]>
        </fx:Script>
    </s:Application>

  • How to auto populate a field based on drop down list unless specific item is selected

    Hi all,
    Apologies if I have posted this in the wrong area but I am new to Adobe LiveCycle, JavaScript and these forums.
    I am trying to build an Acrobat form using LiveCycle but am having trouble with the drop down lists.
    Inititaly I simply wanted to populate fields in one table based on the selection of a corresponding drop down list in another table.
    I used the following code and it worked fine:
    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)
    var fFrom = xfa.resolveNodes("Workbook.Content.Table1.Row3.AppropriationDetails[*].Row4.Cell1");
    var fTo = xfa.resolveNodes("Workbook.Content.Table2.Row3.AppropriationDetails[*].Row4.Cell1");
    for (var i=0; i <= fFrom.length-1; i++) {
         fTo.item(i).rawValue = fFrom.item(i).boundItem(xfa.event.newText);
    The problem is that now I want the above code to work UNLESS one of the items in the dropdown list is specifically selected in which case I want the text box in the other table to display a message such as "Enter details in the field below".
    I have tried to create an If Else statement using the following code:
    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)
    var fFrom = xfa.resolveNodes("Workbook.Content.Table1.Row3.AppropriationDetails[*].Row4.Cell1");
    var fTo = xfa.resolveNodes("Workbook.Content.Table2.Row3.AppropriationDetails[*].Row4.Cell1"); 
    for (var i=0; i <= fFrom.length-1; i++) {
         if (fFrom.item(i).rawvalue = "Option 3"){
         fTo.item(i).rawValue = "Enter details in the field below";
         else {
         fTo.item(i).rawValue = fFrom.item(i).boundItem(xfa.event.newText);
    The code now populates the field with "Enter the details in the field below" no matter what item I select from the dropdown list.
    Your help is greatly appreciated.
    Cheers,
    ozzy_q

    Follow Up:
    Ok so ive changed things up a bit and have had some more success.
    I have used a Switch statement in my For loop to perform different actions based on the item selected.
    The code looks like this:
    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)
    var fFrom = xfa.resolveNodes("Workbook.Content.Table1.Row3.AppropriationDetails[*] .Row4.Cell1");
    var fTo = xfa.resolveNodes("Workbook.Content.Table2.Row3.AppropriationDetails[* ].Row4.Cell1");
    for (var i=0; i <= fFrom.length-1; i++) {
         switch (fFrom.item(i).rawValue)
         case "Option 3":
         fTo.item(i).rawValue = "Enter the details in the field below";
         break;
         default:
         fTo.item(i).rawValue = fFrom.item(i).boundItem(xfa.event.newText);
         break;
    This code solves my problem but has thrown up a new issue:
    When i select Option 1 or 2 from the dropdown list  the change in the text field is instantaneous, however if I select Option 3 it wont appear in the text field until I either select Option 3 a second time or select another item. Its as if the text field is a selction behind what I have enterd in the dropdown list.
    Any thoughts?

  • How to populate drop down list in infopath 2010 with form library column

    I created one column of choice type and have put 3 values on this column in form library in site.
    and one drop down list in form library at infopath 2010 but how to populate the dropdown in infopath populate with this column.

    Hi John, you should either add the values to your InfoPath dropdown manually or create a new list in SharePoint with the values and make a connection to that list to populate your dropdown.
    cameron rautmann

  • When NOT using icons on the toolbar, side-bar drop-down for additional toolbar items has disappeared with Firefox 4 and accessing these items requires clicking 'Bookmarks', then 'Show all bookmarks' then 'Toolbar'--ugh, what a pain.

    On older versions of Firefox, Toolbar links ran across the top of my screen, with a drop-down to the far right which would show additional Toolbar items for which there was not room on the screen.
    With Firefox 4, if I'm not using icons (text only), the dedicated Toolbar drop-down is gone and I have to first click 'Bookmarks' to the right of the Toolbar ribbon, then 'Show All Bookmarks', then 'Toolbar' in order to access my additional Toolbar links. Could anyone have made it any harder?
    Why doesn't someone just restore the drop-down at the far right of the Toolbar so that all of my Toolbar items (which I prefer to keep separately from the regular Bookmark items, else I would have just plain bookmarked those items in the first place) are readily accessible?

    You see the orange (on Linux gray) Firefox button if the Menu Bar is hidden (View > Toolbars > Customize or right-click a toolbar).<br />
    If you need to access the hidden Menu bar then press F10 or hold down the Alt key to make the Menu Bar appear temporarily.<br />
    You only see the Bookmarks menu button if the Menu bar is hidden.

  • How to make three drop downs in DW and link with paypal?

    I have this tiresome question to which I have been looking for a solution. The solution is easy but somehow my brain synapses don't work there.
    DreamWeaver + Paypal.
    My form has 3 dropdowns
    First is primary color - red , green etc- Visitor chooses one.
    Then How does he get linked to the second dropdown form- Secondary colors- red blue green etc-
    After he chooses the secondary color and Then he needs to choose the third dropdown- size  -
    AFTER that he presses the paypal button.
    Now please can some altruistic soul give me a solution of can this be done through Dw? (3 forms+paypal)
    What would you suggest- radio buttons or drop down menu?
    Can all three forms be linked to paypal in one go itself? (primary color+ secondary color  + size?)
    Naturally I will have to make paypal forms for each color, but is there any easy way?
    Also is there any way in which pressing on a button brings up an image?
    If you have been patient enough to read this and can help me, I'll be so indebted to you!
    Thanks,

    This is called 'Dependant Dropdown' or 'Cascading Dropdown'.
    There's a beautiful jQuery plugin you can use to get this done.
    Download plugin here: https://github.com/dnasir/jquery-cascading-dropdown
    Demo(s) here: http://dnasir.com/github/jquery-cascading-dropdown/demo.html

  • Adding a "blank" selection for drop-down menus under list items.

    A lot of people on this form are accidentally selecting items that shouldn't be selected and need to be able to change the drop down menu back to blank if they have made a mistake and selected a wrong drop down item in the wrong area.
    Please help,
    Thanks!

    Add an item to your Dropdown list with Blank as text and some value to it.
    When you want to rest to blank, just simply set the rawValue to the value against the blank text.
    For example if I add a blank text and assign a value "1" to it.
    Then in the code I may use like below to rest it to Blank Text.
         DropDown1.rawValue ="1";
    Thanks
    Srini

  • Drop Down - how to pass the selection

    Hi Experts,
    I have created a drop down in a web application using the option characteristic binding. I need to pass the value that the user selects in this drop down to a Bex exit variable, for use in the variable logic. Please tell how this can be achieved.

    Hi
    R u telling abt Bex OR BPS variables
    if Bex variable then u can write the code in Exit where u can read the variable value when u select something in drop down then manupulate it or assign some value to other variable on the basis of some business logic..
    If BPS variable then u will have to write a function module where u need to read the varaible value using that function module and then maupulate it...
    Thanks
    Debasish

  • Maintain a drop down as sales order item text

    Hi,
    I need to add another text type to sales order item text,. However instead of entering text isnt it possible to have a drop down where users can select a text?
    Any ideas?
    Thanks
    Keshi

    It is not possible to select a text using drop down menu. You only can add a text type and populate the text during transaction.
    Alternatively you can do the following.
    Create some text elements and maintain texts for them. say 5 texts.
    Now create a text type in normal text determination.
    Using some user exits, you can automatically decide based on your requirement the text element from where the text has to be populated for this text type.
    This should work fine for you.
    Reward if this helps you

  • How do I go back to my previous version of Firefox? on Version 4 i can no longer get a drop down next to back button with previous visited sites!!

    The bar at the top lists back and forward. However, there used to be a drop down arrow next to forward where I could click it and select from a list of pages (sites) that I had just visited in this session, without having to click back, back, back, back, etc. You get the picture??

    Click-hold the unified Back / Forward button, or right-click it to get the Back / Forward history for that tab.
    Or install this extension to get the old "drop-marker" button restored. <br />
    https://addons.mozilla.org/en-US/firefox/addon/backforedrop/

  • Issue in value set Drop down for ALV in Webdynpro with Index

    Hi Experts,
    We are unable to get the Drop down values in the ALV Table as shown below.
    Code:
       DATA lo_nd_table TYPE REF TO if_wd_context_node.
        DATA lt_table TYPE wd_this->elements_table.
       DATA ls_table TYPE wd_this->element_table.
       DATA: lr_input TYPE REF TO cl_salv_wd_uie_input_field,
             lr_column TYPE REF TO cl_salv_wd_column,
             lt_node_info TYPE wdr_context_attr_info_map,
             ls_node_info TYPE wdr_context_attribute_info,
             lr_dropdown TYPE REF TO cl_salv_wd_uie_dropdown_by_idx,
             lr_info TYPE REF TO if_wd_context_node_info.
       DATA:lt_columns TYPE salv_wd_t_column_ref,
             ls_columns TYPE salv_wd_s_column_ref,
             lv_tabix TYPE sy-tabix,
             lv_count TYPE c.
       DATA: ls_valueset TYPE wdr_context_attr_value,
             lt_valueset TYPE wdr_context_attr_value_list.
       TYPES:BEGIN OF ty_name,
       name TYPE string,
       END OF ty_name.
       DATA: lt_name TYPE TABLE OF ty_name,
       ls_name TYPE ty_name.
    *   navigate from <CONTEXT> to <TABLE> via lead selection
       lo_nd_table = wd_context->get_child_node( name = wd_this->wdctx_table ).
       SELECT * FROM zemp_table INTO CORRESPONDING FIELDS OF TABLE lt_table UP TO 10 ROWS.
       LOOP AT lt_table INTO ls_table.
         lv_tabix = sy-tabix.
         CLEAR: ls_table-leave_values.
         DO 1 TIMES.
           lv_count = lv_count + 1.
           CONCATENATE 'Open' lv_count INTO ls_valueset-value.
           CONCATENATE 'Open' lv_count INTO ls_valueset-text.
           APPEND ls_valueset TO ls_table-leave_values.
           CLEAR ls_valueset.
           CONCATENATE 'Approved' lv_count INTO ls_valueset-value.
           CONCATENATE 'Approved' lv_count INTO ls_valueset-text.
           APPEND ls_valueset TO ls_table-leave_values.
           CLEAR ls_valueset.
           CONCATENATE 'Rejected' lv_count INTO ls_valueset-value.
           CONCATENATE 'Rejected' lv_count INTO ls_valueset-text.
           APPEND ls_valueset TO ls_table-leave_values.
           CLEAR ls_valueset.
         ENDDO.
         MODIFY lt_table FROM ls_table INDEX lv_tabix TRANSPORTING leave_status leave_values.
       ENDLOOP.
       DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
       lo_cmp_usage =   wd_this->wd_cpuse_alv( ).
       IF lo_cmp_usage->has_active_component( ) IS INITIAL.
         lo_cmp_usage->create_component( ).
       ENDIF.
       DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
       lo_interfacecontroller =   wd_this->wd_cpifc_alv( ).
       DATA lo_value TYPE REF TO cl_salv_wd_config_table.
       lo_value = lo_interfacecontroller->get_model(
    *  lo_interfacecontroller->set_data( r_node_data = lo_nd_value_set ).
    **Get the context node information
       lr_info = lo_nd_table->get_node_info( ).
       lt_node_info = lr_info->get_attributes( ).
       LOOP AT lt_node_info INTO ls_node_info.
         ls_name-name = ls_node_info-name.
         APPEND ls_name TO lt_name.
       ENDLOOP.
    *Get all the columns to make row editable
       CALL METHOD lo_value->if_salv_wd_column_settings~get_columns
         RECEIVING
           value = lt_columns.
    * Make the field dropdown
       CALL METHOD lo_value->if_salv_wd_column_settings~get_column
         EXPORTING
           id    = 'LEAVE_STATUS'
         RECEIVING
           value = lr_column.
    * Create Object for dropdown
       CREATE OBJECT lr_dropdown
         EXPORTING
           selected_key_fieldname = 'LEAVE_STATUS'.
       CALL METHOD lr_dropdown->set_valueset_fieldname
         EXPORTING
           value = 'LEAVE_VALUES'.
       CALL METHOD lr_dropdown->set_type
         EXPORTING
           value = if_salv_wd_c_uie_drdn_by_index=>type_key_convert_to_value.
       CALL METHOD lr_column->set_cell_editor
         EXPORTING
           value = lr_dropdown.
    *Set the table Editable
       lo_value->if_salv_wd_table_settings~set_read_only( value = abap_false ).
       lo_nd_table->bind_table( new_items = lt_table ).
    Please suggest me where we are going wrong.
    Thanks in advance...!!!
    Best Regard's,
    Shashi Kanth

    Hi Shashi,
    Your code looks okay.  Debug & check if everything goes fine and all the required list of values getting bound to node.
    Is any code after this logic, which sets data to table ? if so, that logic is wiping out the drop down list values from context node.
    Final check point:
    Read the context node 'TABLE' and fetch records into internal table in WDDOMODIFYVIEW( ) method to make sure that, every row of your table contains the drop down list entries in "LEAVE_VALUES" attribute
    Hope this helps you.
    Regards,
    Rama

  • How to manage items withing categories?

    I want to be able to list and sort (in admin panel) all items in a web app or other area tagged with a specific category.  However, the Category listing option is alphabetical, and what if I have more than one category that starts with A?  for example:  "Apples" "Apricots".  If you have hundreds of items with different categories, it seems that you would need a way to sort them....
    And once I can get a list of category "Apples" items, how to filter based on the data in the fields?  Say customer entered "NO" to wanting a fruit item.  I would like to be able to sort of filter all "Apple" category items, that fruit field has "NO" value.
    And after I get that sorted view, how would I manage categories on these multiple items at once?  Say add another category "Veggies" and remove "Apples" from several items at once.  (can't do this manually if you have hundreds of items!
    Please help!!!

    Suppose i ve Form having Deptno Field and Ename field and both are List Item.... and I want in ename field list select those employee who are in selected Deptno on above list.
    WHEN-New-Form Instance.
    DECLARE
    CURSOR C1 IS
    SELECT Deptno FROM Dept;
    BEGIN
    FOR A IN C1 LOOP
    ADD_LIST_ELEMENT('block.deptno',1,A.deptno,A.deptno);
    END LOOP;
    END;
    DECLARE
    CURSOR C2 IS
    SELECT ename FROM emp where deptno=:block.deptno;
    BEGIN
    FOR B IN C2 LOOP
    ADD_LIST_ELEMENT('block.ename',1,B.ename,B.ename);
    END LOOP;
    END;
    Successfully Run
    Regards
    Danish Hayder

  • Drop-down box does not work with Web GUI

    Situation:
      On CE5 (ECC 5.)-> transaction "MM02"
                     -> click on drop-down for "Material"
                     -> see distorted pop-up
    Solution:
      apply kernel patch #144.
      ITS is part of the Basis, starting with WebAS 6.40

    You wouldn't happen to be using Vista's Home Edition are you?  I work from home and have Vista Home on one of my PC's and it has the same issue when I'm connected to 2004s systems.  Vista Home isn't supported.  Only Vista Prof.  Oddly, if I'm using the same GUI to attach to 4.6C releases, I don't have this issue.

  • When left click drop down arrow and other items, dialog box constantly pops up instead of performing action. how can I turn it off, or must I uninstll mozilla?

    When using mozilla for web searches, each time I click to correct a word or grammar a dialog box constantly comes up like a right click box asking if want to copy, cut correct spell etc. when I click to search at the magnifying glass another box keeps coming up. Seems like everything I left click when in mozilla springs up a dialog box. Pretty frustrating and does not happen when I use AOL search without mozilla. The right click box comes up as it should but need to lose this left click box or firefox. I already checked mouse touch pad properties and made sure R click main.

    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that temporarily turns off hardware acceleration, resets some settings, and disables add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    *In previous Firefox versions, click on the Firefox button at the top left of the Firefox window and click on ''Help'' (or click on ''Help'' in the Menu bar, if you don't have a Firefox button) then click on ''Restart with Add-ons Disabled''.
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".<br>
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, theme, or hardware acceleration. Please follow the steps in the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

Maybe you are looking for

  • Iphone 4s earphone voice problem

    i have iphone 4s it has problem with earphone. the earphone voice of of other caller is very less. i can hardly head the other person but the speakers are working perfectly alrights. someone told me that the earphone speakers are burst. but some othe

  • How to find a specific field name for the sapscript?

    Hi all, I have to print out the ship-to party in a sales quotation, but I can't find out which field should I use in the sapscript, how to find out? I tried to retrieve VBCO2-KUNWE, VBPAPO-KUNNR, VBPAV-KUNNR, but nothing returns. Thanks.

  • Error when creating product group

    Hai frnds,         While creating a product group the following error occurs REQUIRED PARAMETERS MISSING WHEN CALLING UP MODULE help me in the issue regards Karthik.b

  • Validation for ordergroup and costcenter

    hi , how to write validation for , at the time of document entry when we give cost center , order should be mandatory ( this order should be from a particular order group) ie document should should get posted only the orders from a particular order g

  • Nexus 1010 - Issue copying s/w onto device using SCP.

    Hi I'm trying to copy the new version of s/w ( nexus-1000v.4.2.1.SV1.4.iso) onto a Nexus 1010 switch using the command: copy scp: bootflash:repository The software starts to copy but unfortunately only gets to around 10% complete before failing. It's