How can I add categories to drop-down lists or check-boxes?

hello can I use sub categories or group items by labels when using drop-down lists or check-boxes?

You can't include sub-menus in a drop-down. What is possible, though, is to populate another drop-down based on the selection made in the first one, or use a pop-up menu. Both things require a script, though.

Similar Messages

  • How can I make a bound drop-down list using OAF?

    Please note, this is for OAF. I am aware of the support in ADF.
    I'm sorry this is such a basic question, but I've been trying for days, and I can't think of anywhere else to look for an answer.
    I need a simple drop-down list, not a search. This particular list only has 10 or so items. It is based on a view containing a code value, and a description. I need all descriptions to be available at all times. Just click the arrow, and the entire list is displayed. When the user selects an entry, the code associated with the discription populates a bound attribute. Ideally, when the page is instantiated, the code value controls the text value visible in the collapsed drop-down list. Visually, it would be similar to an html <select> element.
    Can someone please tell me how I can produce such a simple thing, or point me to some documentation?
    Thank you.

    Thank you for the excellent reference Peddi. I had played with the OAMessageChoiceBean component yesterday, but I was able to tell from your instructions that "Picklist Display Attribute" and "Picklist Value Attribute" really are not for binding to the database EO. That was the key piece of information that had me confused.
    In addition to adding the messageChoice component to the page, I needed to write some code to synchronize the picklist value with the corresponding code value, which I placed in am OAFormValueBean (hidden form field) which I could then bind to my application's database EO in the controller, running in the processFormRequest procedure:
    /** Synchronize the catalog code with the selected catalog name */
    protected void syncCatalogValues(OAPageContext pageContext,
    OAWebBean webBean, MyApplicationAMImpl am) {   
    OAMessageChoiceBean mcb =
    (OAMessageChoiceBean) webBean.findChildRecursive("CatalogName");
    OAFormValueBean cc =
    (OAFormValueBean) webBean.findChildRecursive("CatalogCode");
    String catalogDescription = mcb.getText(pageContext);
    if (catalogDescription != null) {
    String catalogCode = am.getCatalogCode(catalogDescription);
    cc.setValue(pageContext, catalogCode);
    Along with a little code to get the catalogCode value from the LOVVO, that's all it took.
    Thanks again. This was a great help.
    Pete

  • How can I put JTree into drop-down List of JCombobox

    I want to create a drop-down list which shows a list of nodes. When the user clicks on a node, it should open to show the leafs. Clicking on a leaf should close the ComboboxPopup and show its value. Creating a renderer only represent my tree, but I can't trap the events.
    Here is my simplified code.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.border.*;
    import java.util.*;
    public class ComboBoxTreeDemo  extends JPanel
         static JFrame frame;
         ComboBoxRenderer renderer;
         JTree tree;
         public ComboBoxTreeDemo()
              setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));
              DefaultMutableTreeNode root =  new DefaultMutableTreeNode("top");
              DefaultMutableTreeNode sub1 =  new DefaultMutableTreeNode("sub1");
              DefaultMutableTreeNode sub2 =  new DefaultMutableTreeNode("sub2");
              root.add(sub1);
              root.add(sub2);
              tree = new JTree(root);
              String[] string = {"1" };
              JComboBox jcb = new JComboBox(string);
              renderer = new ComboBoxRenderer(this);
              jcb.setPreferredSize(new Dimension(100,22));
              jcb.setEditable(true);
              jcb.setRenderer(renderer);
              JPanel jpa = new JPanel();
              jpa.setLayout(new BoxLayout(jpa, BoxLayout.PAGE_AXIS));
              jpa.setAlignmentX(Component.LEFT_ALIGNMENT);
              jpa.add(jcb);
              add(jpa);
              setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
         private static void createAndShowGUI()
              JFrame.setDefaultLookAndFeelDecorated(true);
              JFrame frame = new JFrame("ComboBoxTreeDemo");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JComponent newContentPane = new ComboBoxTreeDemo();
              newContentPane.setOpaque(true);
              frame.setContentPane(newContentPane);
              frame.pack();
              frame.setVisible(true);
          class ComboBoxRenderer extends JPanel implements ListCellRenderer
              ComboBoxTreeDemo cbt;
              public ComboBoxRenderer(ComboBoxTreeDemo cbt)
                   this.cbt = cbt;
                   setLayout(new BorderLayout());
                   add(cbt.tree);
              public Component getListCellRendererComponent(JList list,Object value,int index, boolean isSelected,boolean cellHasFocus)
                   return this;
         public static void main(String[] args)
              javax.swing.SwingUtilities.invokeLater(new Runnable()
                   public void run()
                        createAndShowGUI();
    }

    Thank you for the excellent reference Peddi. I had played with the OAMessageChoiceBean component yesterday, but I was able to tell from your instructions that "Picklist Display Attribute" and "Picklist Value Attribute" really are not for binding to the database EO. That was the key piece of information that had me confused.
    In addition to adding the messageChoice component to the page, I needed to write some code to synchronize the picklist value with the corresponding code value, which I placed in am OAFormValueBean (hidden form field) which I could then bind to my application's database EO in the controller, running in the processFormRequest procedure:
    /** Synchronize the catalog code with the selected catalog name */
    protected void syncCatalogValues(OAPageContext pageContext,
    OAWebBean webBean, MyApplicationAMImpl am) {   
    OAMessageChoiceBean mcb =
    (OAMessageChoiceBean) webBean.findChildRecursive("CatalogName");
    OAFormValueBean cc =
    (OAFormValueBean) webBean.findChildRecursive("CatalogCode");
    String catalogDescription = mcb.getText(pageContext);
    if (catalogDescription != null) {
    String catalogCode = am.getCatalogCode(catalogDescription);
    cc.setValue(pageContext, catalogCode);
    Along with a little code to get the catalogCode value from the LOVVO, that's all it took.
    Thanks again. This was a great help.
    Pete

  • How can I get my Bookmark drop down list back?

    I had to clear and restore my Macbook Pro and when I installed Firefox the drop down Bookmark menu is gone. I have the same version of Firefox on two computers and one has the drop down menu and this one doesn't. How do I get it back?

    Do you mean the star on the location/address bar to bookmark the current page?
    You can try to click the Restore Defaults button in the Customize palette.
    Make sure that toolbars like the "Bookmarks Toolbar" are visible.
    *"3-bar" Firefox menu button > Customize > Show/Hide Toolbars
    *View > Toolbars<br>Tap the Alt key or press F10 to show the Menu Bar
    *Right-click empty toolbar area
    Open the Customize window and set which toolbar items to display.
    *"3-bar" Firefox menu button > Customize
    *check that "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    *if "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the Customize palette into the Customize window to the Bookmarks Toolbar
    *if missing items are in the Customize palette then drag them back from the Customize window on the toolbar
    *if you do not see an item on a toolbar and in the Customize palette then click the Restore Defaults button to restore the default toolbar setup
    *https://support.mozilla.org/kb/customize-firefox-controls-buttons-and-toolbars

  • Drop-down list of check-box options with header.

    Okay, I'm not sure if this is actually possible but I shall ask anyway. Partially because I have limited FP real estate and also because I think this is relatively easy method for the user to use, I have come up with the following idea:
    I want something that looks similar to a menu ring when not selected, displaying the text 'Plots'. Then, when it is clicked a list/menu opens downwards (as opposed to the default operation of menu rings). In this list/menu will be an element for each plot that is displayed on an XY Graph. Each element will contain a check-box (control) and a string (indicator). The strings will each display their respective plot name. The user can then click on the list/menu/thing to show the elements for the plots, and can check or uncheck however many they wish. The idea is that whichever plots are checked will be the ones displayed on the XY Graph.
    Firstly, have I explained this well enough, and secondly, is it possible?
    Thank you.
    James
    Never say "Oops." Always say "Ah, interesting!"
    Solved!
    Go to Solution.

    Just to make sure I wasn't leading you down the garden path, I messed around a little and came up with the following two vi's (LV 8.5)
    Load  Custom Ring Main.vi, run it, and try selecting the ring list.
    Hope this helps! 
    Thoric (CLA, CLED, CTD and LabVIEW Champion)
    Attachments:
    Custom Ring Main.vi ‏24 KB
    custom_ring_subvi.vi ‏37 KB

  • Does anyone know how to Add a date drop down list to a pdf file?

    Can someone tell me how to add a Date drop down list in a form

    There's no built-in function that does that in Acrobat, but there are some third-party tools that do.
    The two most known ones are by FormRouter, which is free and based on form fields (but also a bit buggy), and a non-free version created by Max Wyss, which is based on a dialog object.

  • How can I display images in drop down.

    Hi All,
    How can I display images in drop down.
    <select><option>image here</option></select>
    please reply soon.
    anser please
    Thanks

    I have not found html forum..That's just incredible.
    where can i find it ?Sorry, I'm still recovering from that remark.
    please reply soonEvery time you end a post with this, or "urgent" or other such keywords, the forum automatically introduces a 5 minute delay so that will actually make the whole process slower (not faster).

  • How to add values to drop down list in adobe forms

    how to add values to drop down list in adobe forms

    Hi,
    If you are using WD Java following are steps of filling values in DD Box:
    1 Create a simple type in the Dictionary.
    2 Create an attribute "CountryNew" in the Context of type created by you.
    3 Write following code in the init method of the form:
    IWDAttributeInfo countryinfo =
                   wdContext.nodeEmployee().getNodeInfo().getAttribute("CountryNew");
    ISimpleTypeModifiable Country = countryinfo.getModifiableSimpleType();
    IModifiableSimpleValueSet countryValueSet =
                   Country.getSVServices().getModifiableSimpleValueSet();
    countryValueSet.put("IN", "INDIA");
    countryValueSet.put("US "USA");
    4 Add a Enumrated DD box in the form and bind it to the attribute "CountryNew"
    Hope this helps
    Amit

  • How can I enable the automated drop down for the subject line on the email page

    How can I enable the automated drop down for the subject line on the email page as I send more than 300 emails everyday with the same subject line. Before it use to happen in my gmail account but now its not. Please help me as its increasing my work time because I have to type the subject line again and again on each email I send. Please help me guys.

    This is usually caused by one or more bookmarks having a long title.
    You can check that folder in the Library and shorten long names.
    * Bookmarks > Show Al Bookmarks
    *Bug 626066 - History, Bookmarks menus too wide because of pages with long titles on 64bits
    <i>Please do not comment in bug reports: https://bugzilla.mozilla.org/page.cgi?id=etiquette.html</i>

  • Can we assign OTR to drop down list?

    Hi, All:
    In Webdyn Pro, Can we use Text element or can we assign OTR to drop down list text field.
    for example:
    wa_value_set-text  = $OTR:ZPACKAGE/TEST_MSG
    thanks,

    STEP 1 GET THE OTR TEXTS:
    <b>
    As described in previous answer...
    CALL METHOD CL_BSP_RUNTIME=>GET_OTR_TEXT
          EXPORTING
            ALIAS = 'OTR_Package/OTR_Elemet'
          RECEIVING
            TEXT  = wa_value_set-text .
    </b>
    Step 2 Update Node attribute info with the set of
    <b>
    Update the meta data info behind the COntext Node attribute that is to have the
    drop down list.
    GET NODE from WD_CONTEXT.  (use wizard)
    Then call GET_NODE_INFO to get the reference to the meta.
    Then ADD  your values,  whatever they are from STEP 1 to the ATTRIBUTE 
    of the node. Using SET_ATTRIBUTE_VALUE_SET method.
    </b>
    Seems a strange thing to do.
    May I ask why the OTR is to be the source of drop down lists ?
    regards
    Phil.

  • How can I clear the browser pull down list, I have followed directions using options and it just won`t clear

    How can I clear the browser pull down list, I have followed directions using options and it just won`t clear

    Entries in the location bar drop down list with a yellow (blue on Mac) star at the right end are bookmarks.<br />
    You can remove such a bookmarked item that shows in the list if you open that url in a tab and click the yellow star in the location bar.<br />
    This will open the "Edit This Bookmark" dialog and you can click the Remove button to remove the bookmark if you want to remove such a bookmarked entry.<br />
    * [[Clearing Location bar history]]
    * [[Cannot clear Location bar history]]

  • How can I add a language on pages (Greek) to check the spelling when that language is not on the list?

    how can I add a language on pages (Greek) to check the spelling when that language is not on the list?
    I can see other languages available for spelling check, but not Greek and I dont see how to add it.
    I have added the Greek keyboard on the Mac, so I can write in Greek , but I dont know how to check the spelling in Greek on pages

    You can try to add a 3rd party spellchecker
    http://milaraki.com/blog/2010/11/greek-spelling-at-pages-how-to/

  • External XML data files to add values to drop down lists

    I would like to have external XML data files to add values to drop down lists in my form.. But when i create a data connection it is working properly only in the Preview in Livecycle Designer.. but not in the PDF form(Adobe Reader). Moreover im not sure whether it will work in the form manager..!plzz help me!
    Raghava Kumar V.S.S.

    Hi,
    For the case of raghavakumar, Is it really that I need to have LiveCycle Reader Extensions? Is there any other way that could do the same?
    Thank you

  • How can i add artists to my updates list

    how can i add artists to my updates list at itunes store?

    Hi Yubbi45,
    Unfortunately there are some webpages which Reader Mode won't work with. If Reader Mode isn't compatible with a webpage you won't see the book icon won't appear in your URL bar, but you can try to force it by adding "about:reader?url=" at the start of the URL. For example:
    about:reader?url=http://www.bbc.co.uk/programmes/b04p5b36
    From here, there will be a button at the bottom-right of the screen that will add an item to your reading list.
    If this doesn't work for you, it might be worth trying bookmarks. You can [[Bookmark Tags - Categorize bookmarks to make them easy to find|use bookmark tags]] to organise the bookmarks you want to read and keep them separate from the rest of your bookmarks. For example, I often bookmark articles and tag them "to read" if I know I'll want to come back to them later.
    Bookmarks have the added advantage of being [[How do I set up Firefox Sync?|synchronised with Firefox Sync]]. So if you use Sync, you could bookmark something to read on your tablet, and finish reading it when you're at your PC.
    I hope this helps,
    Jayelbe

  • Webdynpro " How to add values in Drop down list By Key"

    Hi experts ,
    i want to create a drop down list by key, i don't know how to assign values to it ( i.e. add list entries ) . Please help me on this ..
    With regards ,
    James..
    Valuable answers will be rewarded ....

    Hi,
    To fix values to the drop down key at runtime in the webdynpro application you can use the following code:
    DATA:
    lr_node_flightinfo TYPE REF TO if_wd_context_node,
    lr_nodeinfo_flightinfo TYPE REF TO if_wd_context_node_info,
    l_scarr type scarr,
    lt_value_set TYPE TABLE OF wdr_context_attr_value,
    lw_value_set like line of lt_value_set.
    get nodeinfo of node flightinfo
    lr_node_flightinfo = wd_context->get_child_node( name = 'FLIGHTINFO' ).
    lr_nodeinfo_flightinfo = lr_node_flightinfo->get_node_info( ).
    get value set (VALUE = CARRID , TEXT = CARRNAME)
    select carrid carrname from scarr into table lt_value_set.
    clear lw_value_set.
    lw_value_set-value = 'AI'.
    lw_value_set-text = 'Air India'.
    append lw_value_set to lt_value_set.
    sort the value set by the describing TEXT
    SORT lt_value_set BY text.
    set value to context attribute
    lr_nodeinfo_flightinfo->set_attribute_value_set(
    name = 'CARRID' value_set = lt_value_set ).
    Here CARRID is a drop down by key field on the screen.
    in The context it is an attribute in the node FLIGHTINFO.
    Please give Reward Points if this piece of code helps
    Regards,
    Manish

Maybe you are looking for

  • Ise 1.2 Device Registration not auto filling the MAC field

    Hello I have installed 1.2 and when guests login, they get the new (not improved imo) device registration portal, but the field where they have to enter the MAC adress is empty, I can remember it was prefilled in previous ISE versions. Is this normal

  • Best Practice for deploying in Production Cluster

              I have the following.           2 Physical machines each running 2 jvm's, thus I have 4 jvm's in my cluster.           We access the jvm's via an IIS plug-in.           When it comes time to do a new .war file migration, do you need to stop

  • Crash in VBA with new GW Client 8.0.2

    Hi @ all, we use the GW API in a Word VBA Process. After the Client update from 8.0.1 to 8.0.2 wie have problems. The Word VBA an the Word application will hang up after the Process. We use API Call as follow: Set GW = CreateObject("NovellGroupWareSe

  • Substituting the field PROJK of BSEG table using Substituting Exit

    Hi All, Actually I am using substituting the PROJK field using substitution exit U901. but after this form routine standard routine in program GBTC2FIJ is getting called which is reverting my changes. because there is a  temp structure which is not h

  • Détection de données sur un port Série

    Bonjour, Je voulais savoir si il était possible de détecter l'arrivé de donnée sur un port série afin de pouvoir les lire directement sans continuellement tester le buffer du port, une sorte d'interuption en fait. Cordialement Nathan P.S.: Bonne Anné