Popup menu values

Lets say I have a button that opens a popup menu with 2 levels:
Fruits> Apple
            Banana
            Melon
Vegetables> Carrot
                     Potato
                     Tomato
Is it possible to get both values? I mean, to receive information if fruits or vegetables was selected and also what kind of fruit/vegetable.
Thanks in advance.

Hi,
You could use the cReturn property to encode a value that lets you determine both values, such as;
var choice = app.popUpMenuEx(
     {cName: "Fruits",
      oSubMenu: [ {cName: "Apple", cReturn: "Fruit,Apple" }, {cName: "Banana", cReturn: "Fruit,Banana" }, {cName: "Melon", cReturn: "Fruit,Melon" } ]},
     {cName: "Vegetables",
      oSubMenu: [ {cName: "Carrot", cReturn: "Vegetables,Carrot"}, {cName: "Potato", cReturn: "Vegetables,Potato"}, {cName: "Tomato", cReturn: "Vegetables,Tomato"} ]});
if (choice !== null)
    var selection = choice.split(","); 
    app.alert("You selected the \"" + selection[1] + "\" menu item from the \"" + selection[0] + "\"");
Not ideal as you are effectively coding up the menu structure twice (and assumes you will never use a comma character in a menu item name).
Regards
Bruce

Similar Messages

  • Popup Menu(F1- Help values) is not diaplying for a char at selection screen

    Hi,
    After executed the query, we are trying to get help (F4) values for info object Employee Group (EMPLGROUP) in the selection screen but it is taking long time nearly 1 hr and getting timed out. And for other Chars we are getting the help popup menu.
    for your info...     
    There are only 6 values are there in Employee Group master data table.
    And the characteristic settings in Business Explorer tab are as the following,
    Display u2013 Text
    Text type u2013 Default
    BEx description u2013 Short description
    Selection u2013 No selection Restriction
    Query Def. Filter Value Selection u2013 Only values in Infoprovider
    Query Execution Filter Val. Selection u2013 Only Posted Values for Navigation
    Can any one please suggest us which settings we needs to change to get the popup menu (help values) for Employee Group at selection screen and what is the reason for not displaying the help popup menu?.
    and can any one explain us about the setting "Query Execution Filter Val. Selection u2013 Only Posted Values for Navigation"
    Thanks & Regards,
    Raju. E

    Hi,
    I am getting the data aslo for Employee Group in the query when I drill down that char.
    But I dont know why it is taking long time and getting time out to display the popup menu for help values at selection screen.
    I think this is due to the below setting only at char level,
    Query Execution Filter Val. Selection u2013 Only Posted Values for Navigation
    and there are 3 opstions for the above seeting as below,
    1. Only values in master data
    2. Only values in Infoprovider
    3. Only Posted Values for Navigation
    Can any one help me, which opstion will solve the issue and can any one explain me what is the difference between 2 & 3
    Thanks,
    Raju. E

  • How to convert text values in a popup menu to numerical values?

    Hi there,
    I am trying to create a table in Numbers where one cell needs to have a numerical value inserted into it based upon the value chosen in a popup menu in another cell, and I'm not sure how to go about it.
    To be more specific, I have a cell containing a popup menu with the items "Bronze", "Silver", "Gold" and "Platinum". Depending on which value is chosen, I need another cell to be populated with a value of 1,1.5,2 or 2.5 respectively, as I will then use this value to perform a multiplication elsewhere in the table. I have tried using the IF function in the 2nd cell but I can only get that to match one value and not an array of values.
    Could anybody advise on the most effective way of accomplishing what I am trying to do?
    Many thanks in advance.

    Michael Quayle wrote:
    (1) Hopefully you're not looking for points for being helpful, because all you're doing here is patronising me from the looks of it.
    "The fact to be a newbie doesn't prevent someone to have a quick look, at least to the list of available functions, to know what may be done with the tool."
    (2) This was *obviously* the first thing I did, followed by a Google search. When those avenues were exhausted I tried here. However, like I said, having "a quick look" is useless if you are not familiar enough with spreadsheets to know what it is you are looking for! MY choice of language to describe what I was trying to achieve was obviously not compatible with any search I performed, which is why I had to resort to asking a person rather than a manual. And frankly, the language used within the documentation is often rather alien to me. Having read the documentation for VLOOKUP I still don't fully understand its application. I'm a musician for heaven's sakes - everybody knows we can't read!
    "The users guides were designed to help users, not to help helpers to help users "
    (3) Are all your posts this condescending? I came here to ask a question, not to be accused of being lazy and not reading documentation. Like I said, my own searches through the manual were fruitless, so I came here for help. Are all the responses on this forum so cold and terse?
    (1) Don't worry, I'm not here to grab points.
    (2) Searching in the existing threads with the available tool seems more logical than searching in Google.
    (3) I write what I want, the way I want.
    In the cell C2 of the main table, the formula is :
    =IF(ISBLANK(B2),"",VLOOKUP(B2,vlook_up :: A:B,2,FALSE))
    Apply fill down to fill other cells.
    Yvan KOENIG (VALLAURIS, France) jeudi 4 août 2011 12:55:03
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How to calculate a value, based on value from popup menu?

    I'm creating an estimate worksheet. In one cell, I have a popup menu containing service codes such as "DIS", "SP", "AD" and so on. Based on the selected service code from the popup menu, I would like for the next cell to display the correct rate for that service. For example, if "DIS" was selected, I would like the Rate to apeear as $110. If "AD" was selected, I would like the Rate to show up as $150.
    Thanks in advance,
    Tony

    You can create another reference table with your service code and cost. Then in the main table use the VLOOKUP formula to refer to the reference table and return the costs.
    Example:
    Table 2 (Reference Table)
    _ A ______B
    1 Code ___Cost
    2 DIS _____$ 100
    3 SP _____$ 125
    4 AD _____$ 150
    Main Table
    _A ________ B
    1 DIS _______=VLOOKUP(A1,Table 2 :: $A$1:$B$3,2,FALSE)
    etc,
    etc,
    Regards,

  • FW 8 popup-menu in CSS problem with IE7 & Safari

    Hi,
    hope that anyone out there got some ideas in my issue. I was
    already searching the forum for advice, but couldn't find
    meaningful infos.
    Here is my problem:
    I designed a page in FW8 (Mac) with a nice popup-menu. I
    exported this thing into DW8 having set the option to export the
    menu as CSS and slices to layers. Then I rearranged the html File
    and included some editable regions, as it was to be used as an
    template.
    Everything works fine in Firefox but IE7 and Safari
    experience some problems.
    The popup-layers are displayed behind the main text-area and
    not in front of it - this makes navigation a bit complicated.
    So teh menu is displayed with text and everything, but behind
    the main text.
    What I tried:
    I tried to reset the z-Index of the popup-layers to values
    below 10 (were set to 500) - didn't help.
    I gave every single item a z-index - didn't help.
    I gave the main text area an z-index of 0 or -1 - made the
    layer disappear.
    I reexported the whole thing - made me just crazy.
    I worked through the css file for errors - maybe I'm not to
    good in CSS ;)
    I checked the forums, but could only find issues where the
    menu was not displayed at all or the text was missing - doesn't
    apply.
    -- no more ideas :(
    Link to my page:
    Website
    Link
    I really appreciate your help! Any comments welcome!
    patrick

    > I think it's a bug with ie7. It doesn't support
    javascript completely,
    > nor
    > does it css.
    I don't think this is accurate. Each browser supports things
    differently,
    and CSS is no exception, but support for javascript is fairly
    reliable
    across the board.
    > but I can't find one that I can use my own images, yet
    Then you are not looking in the right place. Go here -
    http://www.projectseven.com/
    and examine their extensive collection of menu products.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "udigrudi" <[email protected]> wrote in
    message
    news:ful3t7$n9u$[email protected]..
    > I've had a similar problem, menus made in Fireworks 8
    don't show up
    > completely
    > in ie7 for windows either. The menu shows up, but the
    text of submenus
    > with
    > submenus doesn't show up.
    >
    > I think it's a bug with ie7. It doesn't support
    javascript completely,
    > nor
    > does it css.
    >
    > Since your website has disappeared, I'm sorry I can't be
    of more help.
    > I'm
    > thinking of getting a "third party" submenu generator
    (but I can't find
    > one
    > that I can use my own images, yet)
    >

  • How to disable the run-time popup menu in the sequence display on TestStand Operator Interface, that allow the use to skip the test?

    How to disable the run-time popup menu in the sequence display on TestStand Operator Interface, that allow the use to skip the test?

    Hello,
                  Regarding the skip/force pass/force fail options, when I set the ControlExecFlow to True in Teststand 3.1 and 3.5, in the Sequence Editor the menu options for skip/force pass/force fail are not active for Technician but, when I launch the Operator Interface logged with Technician the options are active. The problem is that if the technician sets one step to one of these options, and change the user to Operator, the test step remains skip/force pass.
                  Is there any possibility without modifying the Operator Interface (at programming level), to reload default values of the steps when changing the user to Operator?
    Thank you,
    Best regards,
    paio

  • How to create a 3 or more level Popup menu

    Hello,
    I know how to create a 2-level menu for somehting like:
    Fruits>Apple
              Banana
              Oranges
    var choice = app.popUpMenuEx(
         {cName: "Fruits",
          oSubMenu: [ {cName: "Apple", cReturn: "Apple" }, {cName: "Banana", cReturn: "Banana" }, {cName: "Melon", cReturn: "Melon" } ]},
    But what would the code look like for something like (3 level):
    Fruits>Apple
              Banana
              Oranges>Navel
                            Valencia
                            Moro (Blood)
    or even something like this (4-levels):
    Location A......>Site A......>Properties...>Property1
                                                                Property2
                                                                Property3
                            Site B>
                            Site C>
    Location B>
    Location C>
    So overall, how would the above script for a 2-level popup menu be modified for a 3, 4, or more level popup menu?

    Hi,
    You can add the oSubMenu values at any level, so;
    var choice = app.popUpMenuEx(
         {cName: "Fruits",
          oSubMenu: [ {cName: "Apple", cReturn: "Apple" },
                      {cName: "Banana", cReturn: "Banana" },
                      {cName: "Oranges",
                       oSubMenu: [ {cName: "Navel" },
                                   {cName: "Valencia" },
                                   {cName: "Moro (Blood)" } ] }
    console.println(choice.toSource());
    Would give you the menu in your first example.  If the cReturn value is the same as the cName then you can just leave it off (as I have for th 3rd level menu).
    Regards
    Bruce

  • Developing a Sorted Popup Menu

    Hello Folks;
    How would I go about developing / scripting a sorted popup menu for Numbers in iWork 09?
    Thank you,
    vic

    Hi Vic,
    Welcome to Apple Discussions and the Numbers '09 forum.
    The bad news is that popup menus in Numbers aren't sortable, except by heavy handed editing. You can add items—but only to the bottom of the list, you can delete items—from anywhere in the list, and you can rename items.
    You can use Fill down or Fill right to copy a popup menu into a range of cells, but if these are edited popups replacing older versions, the previously set values will be replaced by the value set for the original being pasted in.
    For some flexibility, you might want to use a technique involving a Slider, a LOOKUP table and the VLOOKUP function. Jerrold Green wrote about it and provided some examples in discussion of Working with Pop-up menus in this forum back in April. The link will take you to that discussion.
    Regards,
    Barry

  • See Also popup menu not working

    This had been posted before, but my situation is slightly
    different.
    I have 2 See Also text hyperlinks and one Releated Topics
    text hyperlink on each topic in my online help.
    All are set to dislay topics in a popup menu.
    The help is being generated to HTML help.
    Once generated, one of the See Also hyperlinks displays in a
    Topic LIst Dialog instead of the popup menu.
    The other See Also and the Related Topics hyperlinks are
    dsiplayed with the popup menu.
    I have checked the OPTIONS setting in the .HHP file and there
    is no reference to Language.
    I added one and it still does not solve the problem.
    An older version of this source works fine.
    Any ideas????
    I have to deliver by Wenesday.
    Thanks ---
    Michael F Weart
    LoanPerformance

    Hi Michael
    When you insert controls, if you look behind the scenes using
    the TrueCode tab, you should see that RoboHelp HTML inserts two
    distinctly different blocks of code. One is called a "design-time"
    control and is displayed in green text. The other is the basic code
    used by the HTML Help compiler. This section is displayed in gray
    text. So you have two places to look for this setting. I'm only
    referring to See Also controls here.
    In the "green code" area should be a line that reads:
    <param name="DialogDisplay" value="1" >
    If the value is 1, the control produces a popup. If the value
    is 0, you get a topics found dialog.
    In the "gray code" area should be a line that reads:
    <PARAM NAME="Command" VALUE="ALink,MENU">
    If the value is Alink,MENU, the control produces a popup. If
    the value is Alink, you get a topics found dialog.
    Also, I just noticed you posted this identical question in
    the RoboHelp for HTML Help forum category. Please don't cross post!
    This is outlined in the forum guidelines you can read by
    clicking
    right here.
    Sincerely... Rick

  • Problem with Pre-Popup-Menu in Hierarchical Tree

    Hi,
    In Forms 10g I have made an application with an Hierarchical Tree. All works well, except the use of the Pre-Popup-Menu trigger.
    In that trigger when I read the values of Node_Label and Node_Value I get the values of the previous selected node, not the values of the node on which I issue the right mouse click. So, it seems that by clicking the node I need is not selected.
    Does anyone have any clues to solve this problem?
    Thanks in advance.

    Right clicking does not change the current selection. The tree has no way to report what node was right clicked. Only work around is to left click the node you wish then right click it.
    --pat                                                                                                                                                                                                                                                                                                                                                                                                       

  • JSF Popup Menu on right click

    Hi ,
    I want to popup menu on right click of any component(say tree).I searched on the net and found the tomahawk <t:popup> component.
    This component popup the menu when mouse pointer enter in to the component but I don't want this behavior.
    I want to popup the menu only when I right click on the component.
    This is sample program
    <t:popup id="a"
    styleClass="popup"
    closePopupOnExitingElement="true"
    closePopupOnExitingPopup="true"
    displayAtDistanceX="10"
    displayAtDistanceY="10" >
    <h:outputText id="oa" value="#{country.name}"/>
    <f:facet name="popup">
    <h:panelGroup>
    <h:panelGrid columns="1" >
    <h:outputText value="#{country.cities}"/>
    </h:panelGrid>
    </h:panelGroup>
    </f:facet>
    </t:popup>
    DO you have any component like this ? Or any other way to do like this ?
    Thanks in Advance,
    KK

    I wrote a component a while back that does something similar to what you want. You'd probably need to fix it up and add any features that you need that it doesn't already have. It pops up a menu on a right-click, it allows you to provide a facet to supply the contents of the menu. I doubt I made sure it works in IE or any browser other than Firefox... so there may be JS issues. It has some other component dependencies you might want to remove also. I could get it to the point where you could try it out and fix it up if you want, but I won't have time until next week.
    Ken Paulsen
    https://jsftemplating.dev.java.net

  • Focus lost when a popup menu is activated...

    It seems that when a popup menu is activated the component invoker lost focus. this is ugly because a focus lost can trigger unexpected events (formatting, validating, etc). how can I avoid this?
    thanx

    I must seem a bit weird being the only one to reply to my posts, but I found what is occuring, is that when I do the mouse click the InputVerifier for that JTextField is firing. This is causing a problem, because this input verifier pops up a dialog saying please enter correct values ... and then highlights the entire text field. Problem is if the input is currently invalid I can't use the mouse.
    Any ideas?
    Tom

  • Application wide popup menu for JTextComponent descendants

    Hi!
    I'm working on large project with reach Swing GUI and I got stuck with one small but wery annoing problem. I have to append simple popup menu to all text input fields (JTextComponent descendants) in whole application. I'm realy lazy to append mouse listener on each component, so I'm asking, is there any way to append "default" popup menu for all components. Please, don't answer about custom components instead of Swing plain JTextComponent descendants - it's worse to change classes for all fields then add mouse listener to them.
    As an example of what I want I could forward you to UIManager.put() method, which affects all properties of component behaviour thoughout application. I want to find same solution, maybe there any registry or smth. else in API.
    Than you in advice.

    You could always try extending something like MetalTextFieldUI so that it adds the listeners to the text field automatically. You'd then need to register that UI class with the UIManager at startup:
    public class MyTextFieldUI extends MetalTextFieldUI {
      protected void installListeners() {
        super.installListeners();
        // TODO - Install your listener here
      protected void uninstallListeners() {
        super.uninstallListeners();
        // TODO - Uninstall your listener here
    UIManager.put("TextFieldUI", MyTextFieldUI.class.getName());Personally, I think you're just being lazy... getting your components to extend a subclass of JTextField should be no trouble at all and will leave you with clearer code.
    Hope this helps.

  • How to get system popup menu in java?

    I want to know how to get windows xp or any operating systems default popupmenu in java.
    And i also have problem for using mnemonic for JPopupMenu, it works well when i first press right click of my mouse and use the specified mnemonic for that the action specifed for that is triggered but when is use mnemonic without the using my mouse it doesn't trigger why.

    Please how to get native(e.g windows explorer) popup menu in jfilechooser

  • Creating Popup Menu in Desktop Intelligence

    I need help creating a popup menu in the Tool menu of Deski.
    This popup needs to be visible when a report is open or when no report is open.
    It's my first add-in and I can't make my code work.
    Sub BuildMyMenu()
    Dim PopMenu As CmdBarControl
    Dim CleanPop As CmdBarControl
    Dim unvButton As CmdBarControl
    Dim lsiButton As CmdBarControl
    On Error Resume Next    'disable errors temporarily
    Set PopMenu = Application.CmdBars(1).Controls("&Tools").Controls("&Clean-Up Utility")
        If Err.Number = 0 Then  'button already exists
            Button.Delete       'delete it so that it can be re-defined
        Else
            Err.Clear           'clear the error so other testing can take place
        End If
    Set PopMenu = Application.CmdBars(1).Controls("&Tools").Controls.Add(boBarPopup)
    PopMenu.Caption = "&Clean-Up Utility"
    PopMenu.DescriptionText = "Clean-Up Utility"
    PopMenu.TooltipText = "Clean-Up Utility"
    Set unvButton = PopMenu.CmdBarPopup.Controls.Add(boControlButton)
    unvButton.Caption = "C&lean-Up Universe..."
    unvButton.DescriptionText = "Clean-Up Universe"
    unvButton.TooltipText = "Clean-Up Universe"
    unvButton.OnAction = filename(ThisDocument) & "!ShowUserForm2"
    Set PopMenu = Application.CmdBars(2).Controls("&Tools").Controls("&Clean-Up Utility")
        If Err.Number = 0 Then  'button already exists
            Button.Delete       'delete it so that it can be re-defined
        Else
            Err.Clear           'clear the error so other testing can take place
        End If
    Set PopMenu = Application.CmdBars(2).Controls("&Tools").Controls.Add(boBarPopup)
    PopMenu.Caption = "&Clean-Up Utility"
    PopMenu.DescriptionText = "Clean-Up Utility"
    PopMenu.TooltipText = "Clean-Up Utility"
    Set unvButton = PopMenu.CmdBarPopup.Controls.Add(boControlButton)
    unvButton.Caption = "C&lean-Up Universe..."
    unvButton.DescriptionText = "Clean-Up Universe"
    unvButton.TooltipText = "Clean-Up Universe"
    unvButton.OnAction = filename(ThisDocument) & "!ShowUserForm2"
    End Sub
    What I need is a popup menu from the Tools menu, that says "Clean-Up Utilities". From that popup menu, 2 more buttons: one that says "Clean-Up Universes" and the other "Clean-Up LSI".
    Thanks for your help.

    In what way, exactly, isn't it working? Do you see the pop up menu at all?
    Did you make sure that JS is enabled in your Acrobat?
    I've ran the code and it seems to work fine for me. However, I don't quite
    get what it's supposed to do.
    Is it supposed to take the user to a specific page, or to a named
    destination? It seems like it's trying to do both, which doesn't make much
    sense.

Maybe you are looking for

  • Add sap R/3 enterprise system in solution manager SLD

    Dear All Required solution manager configuration documents. We have DEV QAS and PRD server on SAP mySAP ERP 4.7 ( SAP R/3 Enterprise ) And during the installation of solution manager I select u201CConfigure a Local SLD u201C Which steps I follows to

  • Acrobat Install Error with 10.9.1

    Tried installing Adobe Acrobat XI running Mac OS 10.9.1.  Received the following error: "The Installtion Failed.  The Installer encountered an error that caused the installtion to fail.  Contact the software manufacturer for assistance."  The only op

  • Vectors -please explain

    I'm looking through a textbook (Java How to program by Dietel abd Dietel) which provides some code to connect to database and then to display the database on the screen. However, I am trying to understand the code and can't understand the following m

  • I can not make 16bit tiff file out

    Hello. This is kamecame from japan. I am seeing this US board because Japanese discussion board is not active. I have a queation about shake. I hope to convert Quick Time(motion jpg)to Tiff file format(16bit LZW). I made a success of 8bit Tiff file o

  • LR does not automatically load previews

    I use a 5D and a MacBook Pro laptop. I have my source files (RAW files) on an external hard drive. When I return from a shoot I first copy the files to the external harddrive. Then I open LR, right click on the folder in the left panel and select "Sy