Dynamic menu question

HI,
I am dynamically updating the run-time menu, such that the choices constantly keep changing. So how do I account for the handling of them considering I do not know what they will be ahead of time (I know they will be numeric)? Do I need to use Get Menu Info? Mainly what do I label the case statement since I will not know that submenu item will be selected?

> I am dynamically updating the run-time menu, such that the choices
> constantly keep changing. So how do I account for the handling of them
> considering I do not know what they will be ahead of time (I know they
> will be numeric)? Do I need to use Get Menu Info? Mainly what do I
> label the case statement since I will not know that submenu item will
> be selected?
If I understand correctly, you have menus that are being
built dynamically. The tags for the menu will be numeric
strings. That means that one thing you can switch on is
the string itself. You will have a case statement with
the possible strings already programmed into it.
Another option is to convert the selected menu string
into a number and use a case with ranges or comma lists
to divi
de up the items however you like.
Greg McKaskle

Similar Messages

  • Dynamic Side menu question!

    Hi All
    Can someone help me with a menu issue I have, basically the problem seems very simple. All I want to do is specify that when a specific 'Entry Point' item is selected the dynamic menu is closed when the page is viewed.
    The reason for this is that on one of my linkes to a page I have a 'dashboard' set up which I want showing on its own without any detailed navagation!
    Any help would be great
    Thanks
    Phil

    Hello Phil,
    Open  the page for which u want to hide the dynamic navigation bar,   there is a property named <b>Initial State of Navigation Panel</b>.
    Just set it to <b>close</b>.
    This will solve the problem.
    Regards
    Deb
    [Rewards points for helpful answers]

  • Dynamic List/Menu question

    Is it possible to add a default item at the top of static options area of a dynamic menu which does not perform any function when activated?
    I have a "Please choose an option" as my static option at the top of the menu. When the "Go" button is clicked when the "Please choose" is visible I would like this to do nothing and only show a results page when any of the active menu options are selected and "Go" clicked.

    Hello Phil,
    Open  the page for which u want to hide the dynamic navigation bar,   there is a property named <b>Initial State of Navigation Panel</b>.
    Just set it to <b>close</b>.
    This will solve the problem.
    Regards
    Deb
    [Rewards points for helpful answers]

  • Dynamic menu problem when chaning from english to arabic language

    Hi all,
          am working on Dynamic Menu its working fine in English when i convert this same menu in Arabic its working fine but the sub menu has some margin...if we set the margin then again for 2nd main menus submenu  is not coming
    in order...
    www.dreamcom.ae   (This is for english working good)
    www.dreamcom.ae/Ar/Index.aspx (This is for Arabic which is not working)
    <div class="wrap">
    <div class="content_wrap menucss">
    <%-- CssClass="menubar" --%>
    <asp:Menu ID="menuBar" StaticEnableDefaultPopOutImage="False" runat="server" Orientation="Horizontal"
    onmenuitemclick="menuBar_MenuItemClick" DynamicHorizontalOffset="2" Font-Size="18px"
    BackColor="#669903" ForeColor="White" StaticSubMenuIndent="100%" Font-Bold="True" Height="56px" vertical-align="top" top="50px"
    margin="0px" position="static" BorderStyle="None" DynamicSelectedStyle-BorderStyle="None" BorderColor="#7ab802" CssClass="menucss">
    <DynamicHoverStyle BorderStyle="Solid" BorderWidth="0px" BackColor="#7ab802" ForeColor="White" />
    <%--below single line is for sub menu --%>
    <DynamicMenuItemStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="0px" Font-Bold="true" Font-Size="17px" HorizontalPadding="6px" VerticalPadding="6px" />
    <%--below single line is for sub menu colour,border --%>
    <DynamicMenuStyle BorderColor="#669903" BorderStyle="Solid" BorderWidth="1px" BackColor="#669903" CssClass="menucss"/>
    <DynamicSelectedStyle BorderColor="#3094FC" BorderStyle="Solid" BorderWidth="0px" ForeColor="#3094FC" BackColor="#5D7B9D" CssClass="menucss" />
    <%--below single line is for mouse over on main menu and mouse over on sub menu --%>
    <StaticHoverStyle BorderColor="#669903" BorderStyle="Solid" BorderWidth="0px" BackColor="#7ab802" ForeColor="#ffffff" CssClass="menucss" />
    <StaticMenuItemStyle ForeColor="White" BorderStyle="Solid" BorderWidth="0px" Font-Size="14px" HorizontalPadding="15px" VerticalPadding="20px" CssClass="menucss" />
    <%--below single line is for sub menu on mouse over --%>
    <StaticSelectedStyle BorderColor="#5CB8FF" BorderStyle="Solid" BorderWidth="1px" ForeColor="#fafafa" BackColor="#5CB8FF" />
    </asp:Menu>
    </div>
    </div>
    this code am using in both english and in arabic.....but in arabic am using style="direction:rtl;" hence it the direction of the content will change...
    and am fetching english and arabic datas are fetch from database..
    Kindly help me out...am trying from long time..
    Thanks.

    Hi,
    This is a ASP.NET question so I think you need to submit the question at:
    http://forums.asp.net/

  • Make a dynamic menu using JSP or Javascript

    Hi ,
    I am trying to make a dynamic menu that is using data retrieved from database in the form of a list.
    I have a javascript to make a tree structure menu, but i need to iterate through the list i am reciveing from the database to make the tree structure. here is the code :-
    <Please reply ASAP as my deadline is near>
    <Note:- in javascript to make static menu ul tag is used to make the parent node and li tag is use to make the child node>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <SCRIPT LANGUAGE="JavaScript" SRC="mktree.js"></SCRIPT>
    <LINK REL="stylesheet" HREF="mktree.css">
    </head>
    <body>
    <%@ page import = "java.util.ArrayList, java.util.Iterator, java.util.List, \WEB-INF\classes\DO_JSP.class,
    \WEB-INF\classes\Url_Name.class, java.util.Comparator, java.util.TreeSet, \WEB-INF\classes\MyComp.class" %>
    <%
         class Url_Name {
         String linkName;
         String linkUrl;
         int order;
         * @return the order
         public int getOrder() {
              return order;
         * @param order the order to set
         public void setOrder(int order) {
              this.order = order;
         * @return the linkName
         public String getLinkName() {
              return linkName;
         * @param linkName the linkName to set
         public void setLinkName(String linkName) {
              this.linkName = linkName;
         * @return the linkUrl
         public String getLinkUrl() {
              return linkUrl;
         * @param linkUrl the linkUrl to set
         public void setLinkUrl(String linkUrl) {
              this.linkUrl = linkUrl;
    class MyComp implements Comparator{
         public int compare(Object a, Object b){
              return (((Url_Name)a).getOrder() - ((Url_Name)b).getOrder());
         class DO_JSP
         int parentId;
         String parentName;
         TreeSet linkList;
         Url_Name tempurl;
         * @return the linkList
         DO_JSP(){
              linkList = new TreeSet(new MyComp());
         public TreeSet getLinkList() {
              return linkList;
         * @param linkList the linkList to set
         public void setLinkList(String linkName, String linkUrl, int order) {
              tempurl = new Url_Name();
              tempurl.setLinkName(linkName);
              tempurl.setLinkUrl(linkUrl);
              tempurl.setOrder(order);
              this.linkList.add(tempurl);
         * @return the parentName
         public String getParentName() {
              return parentName;
         * @param parentName the parentName to set
         public void setParentName(String parentName) {
              this.parentName = parentName;
         * @return the parentId
         public int getParentId() {
              return parentId;
         * @param parentId the parentId to set
         public void setParentId(int parentId) {
              this.parentId = parentId;
    %>
    <%
              List listdojsp =new ArrayList();
              listdojsp = (List)session.getAttribute("JspListName");
              Iterator it = listdojsp.iterator();
              do
    %>
              <%
              DO_JSP tempdojsp = (DO_JSP)it.next();
              String Parent = tempdojsp.getParentName();
              %>
              <ul class="mktree">     
              <li> Parent </li>
                   <ul>
              <%
              Iterator ittemp = tempdojsp.getLinkList().iterator();
                   do
                        Url_Name tempurlname = new Url_Name();
                        tempurlname = (Url_Name)ittemp.next();
                        String link = tempurlname.getLinkName();
              %>
                        <li>link</li>
              <%
                   }while(ittemp.hasNext());
              %>
                   </ul>
                   </ul>          
              <%     
              }while(it.hasNext());
              %>
    </body>
    </html>

    Hi ,
    I am trying to make a dynamic menu that is using data
    retrieved from database in the form of a list.
    I have a javascript to make a tree structure menu,
    but i need to iterate through the list i am reciveing
    from the database to make the tree structure. here is
    the code :- Hi, do you have a question? This is more of a "Look what I wrote" sort of post, and you don't seem to be asking for any specific advice. Please tell us what problem you're having, or the error message you're receiving.
    Brian

  • In outlook 2013 Add-In, Adding dynamic menu to splitButton idMso="DialMenu" is working and the same code is not working in outlook 2010 Add-In.

    In outlook 2013 Add-In, Adding dynamic menu to <splitButton idMso="DialMenu"> is working and the same code is not working in outlook
    2010 Add-In. please let me know, if i am missing something. Below is the xml and screen shot
    <contextMenu idMso="ContextMenuFlaggedContactItem">
     <splitButton idMso="DialMenu">
              <menu>
                <dynamicMenu id="CallContactwithFreedomvoice
    " label="CallContactwithFreedomvoice" 
                            getContent="OnGetContenttest"                           insertAfterMso="Call"/> 
            </menu>       </splitButton>    </contextMenu> 

    Hi Narasimha prasad2,
    Based on the description, the context menu for the flagged contact doen't work in Outlook. I am tring to rerpoduce this issue however failed.
    I suggest that you check the state of the add-in first to see wether the add-in was loaded successfully.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • New page not being opened in new window when using a dynamic menu

    I have read an earlier post about this but I didn't really see a solution I could implement there. I have a dynamic menu, and I want one item on it to open a new frame. Here is the module code from the template.
    {module_menu, version="2", menuId="901683", moduleTemplateGroup="Default"}
    It is the main template menu from the Tribeca site template.
    I have tried inserting (_blank) into the appropriate target frame, and still it opens in the same window.  I gathered from the previous post that it was a version issue, but as you can see, the code says "version 2"... or am I mis-reading that?
    I couldn't find where to make changes. The previous post suggested I look for the CSS on the home template, but I am not using a home template.
    Any thoughts?
    Chuck

    Thanks Liam, it worked. I need a clarification if you can... I don't need all the items in the menu to open in a new window, so under the menu itself, under the individual items, I would set the target frame to "_self" for the items I need to remain in the same window? Or is it an all or none thing?
    I really have appreciated the help you've given me.
    Chuck

  • Dynamic menu in tree structure in JSP

    Hi,
    1) I need to display a dynamic menu in JSP. The menu depends on the values received from database. I need to show the items in the structure of tree (like parents, child relation). The tree can have multiple levels (the parent can have children & these children too can have children). This tree structure would be on left side of the screen.
    I would like to use some custom tags rather than javascript. Can somebody post the custom tags or some samples?
    2) Also, once the user selects different items from menu, different action classes should be called. And accordingly, the right side of the screen will show different data.
    So, there should be any way to set different action classes for the menu items. Please post any samples or helpful links.

    Hi,
    1) I need to display a dynamic menu in JSP. The menu depends on the values received from database. I need to show the items in the structure of tree (like parents, child relation). The tree can have multiple levels (the parent can have children & these children too can have children). This tree structure would be on left side of the screen.
    I would like to use some custom tags rather than javascript. Can somebody post the custom tags or some samples?
    2) Also, once the user selects different items from menu, different action classes should be called. And accordingly, the right side of the screen will show different data.
    So, there should be any way to set different action classes for the menu items. Please post any samples or helpful links.

  • Can you create a javascript dynamic menu based on security data in oracleDB

    I am looking for a dynamic javascript menu that is generated based on the user role... basically i get the user role from ldap and then I have a Security table in oracle data base that has the permission info and i want to generate my dynamic menu based on the data in the database table.... the table has the following columns
    private String userId;
    private String security_level; // page level , field level
    private String permission; //CRUD
    private String permissionType; //ALLOW, DENY

    Hello Suzie,
    It is possible but you have "many" ways to do it, since what will happen is the javascript will be generated by an application.
    Are you developing a J2EE application? with or without JSF?
    The best way will be to Google to find a good Javascript menu library, and adapt the generation of it based on the content of your database.
    Regards
    Tugdual Grall

  • ADF - managed bean error in dynamic menu creation

    scenario:
    to create dynamic menu for two tabs : general..
    general has a subtabmenu in form of menubar wid items: country, city,...
    i created dynamic menus for my application.wen i ran my page i got this error:
    SEVERE: Managedbean menuItem_General could not be created Can't get value from value binding expression:
    '#{resources['erms.menu.gen']}'
    (erms.menu.gen is an entry in UIResources.properties)
    now, i followed the exact same process as mentioned in the SRDemo application, in adfdevguide!
    double checked that
    i. resource adapter is configured in faces-config.
    ii.menu model and menuTreeModel are configured with thier default adapaters in faces-config.
    iii.resource bundle specified in jsp page.
    can sum1 plz refer
    1.wat is the reason of this error? wat are the things dat shud hold true in order to run these dynamic menu? which files shud
    b specified where?
    2. in wat order are the managedbeans created ?
    is it in order they apprear in faces-config file or in order they are used in the jsp page?
    3: is it possible that u click on a menuTab item and it displays its particular menubar's items while staying on the same page? or
    u click on a menubar item and it displays its particular dropdowns while staying on the same page?
    is it posible wid ADF or javascript shud b used?

    Hi,
    looking at code it seems that you are adding textview and inputfield. please check in debugging if the correct context node/attribute  is being created and you are providing its reference while adding UI elements.
    Thanks,
    Chandra

  • Dynamic menu creation in JSP treating source as dynamic xml

    Hi Everyone,
    I have a XML file which is a dynamic one..It is generated from a tool..I need to parse that xml and generate a menu accordingly in a jsp.In menu the data to be displayed comes from thie hierarchical xml file which is a dynamic one..Siblings and child notes are not fixed..it all generates at rum by some other tool.
    Please help me to tell any logic to create such a dynamic menu ...i am using Dom parser to parse that..
    Regards
    Sajal

    Hi
    This is the xml...I want to display the values in a JSP menu..These values comes from this XML...Like for this XML the struscture will be like
    --Category
    |
    | IT Services
    |
    |ABC Softwares
    |
    |Application Developement
    |
    |Java
    |Mainframes
    |Production Support
    <DIMENSIONS>
    <DIMENSION NAME="CATEGORY">
    <DIMENSION_NODE>
    <DVAL>
    <DVAL_ID ID="1"/>
    <VALUE>IT Services</VALUE>
    </DVAL>
    <DIMENSION_NODE>
    <DVAL>
    <DVAL_ID ID="2"/>
    <VALUE>ABC Softwares</VALUE>
    </DVAL>
    <DIMENSION_NODE>
    <DVAL>
    <DVAL_ID ID="3"/>
    <VALUE>Application Development</VALUE>
    </DVAL>
    <DIMENSION_NODE>
    <DVAL>
    <DVAL_ID ID="4"/>
    <VALUE>Java</VALUE>
    </DVAL>
    </DIMENSION_NODE>
    <DIMENSION_NODE>
    <DVAL>
    <DVAL_ID ID="5"/>
    <VALUE>Mainframes</VALUE>
    </DVAL>
    </DIMENSION_NODE>
    </DIMENSION_NODE>
    <DIMENSION_NODE>
    <DVAL>
    <DVAL_ID ID="6"/>
    <VALUE>Production SUpport</VALUE>
    </DVAL>
    </DIMENSION_NODE>
    </DIMENSION_NODE>
    <DIMENSION_NODE>
    <DVAL>
    <DVAL_ID ID="7"/>
    <VALUE>DEF Softwares</VALUE>
    </DVAL>
    <DIMENSION_NODE>
    <DVAL>
    <DVAL_ID ID="8"/>
    <VALUE>Application Development</VALUE>
    </DVAL>
    </DIMENSION_NODE>
    <DIMENSION_NODE>
    <DVAL>
    <DVAL_ID ID="9"/>
    <VALUE>Production SUpport</VALUE>
    </DVAL>
    </DIMENSION_NODE>
    </DIMENSION_NODE>
    </DIMENSION_NODE>
    </DIMENSION>
    </DIMENSIONS>
    So in this way i need to populate the data from XML.. there can be n number of nodes child nodes and Siblings..and siblings can also have further Child nodes...So need to populate the JSP Menu from this xml..
    Please suggest some logic or if somebody has some sample code..

  • How to create a table less structure with dynamic menu module

    Hi guys,
    I am using dynamic menu module for creating a main menu for http://firstsite08.businesscatalyst.com/
    but it is generating table structure. What changes to do i had to make to generate a table less structure from dynamic menu module.

    Hi Andy,
    When you create a Menu, the option dropdown for the menu has Default, but under that you will see HTML CSS Only option which creates a ul li structure.
    For the Menu Module options you can find more information from the knowledgebase: http://kb.worldsecuresystems.com/134/bc_1345.html?bc-partner#main_Menu_Modules
    If you would like to use the version 2 menu module you can find a bit of a guide I wrote here: http://forums.adobe.com/docs/DOC-1903

  • Adding a dynamic menu to a template

    Can somebody tell me what I'm doing wrong please?
    I have created a menu, I want to add it to a template (this template already has a dynamic menu which I added to it by the way, in case it's important to the answer).
    I have selected the Template and have it ready to edit or do whatever next to it.
    I thought the next step was to select "add modules to Template" and then I would get a panel appear on th right hand side with further options to select the menu I want and then go through the insert proceedure.
    But nothing happens when I click on "add modules to Template".
    I already have one menu on the page, I've done it once already, but for some reason it's not working any more. Or have I just completely forgotten what the correct steps are.
    Yes I have researched and googled but I keep getting answers that just tell me how to create a menu or modify a template, or something other than what I need to know.
    Cheers for any help.
    Grant

    Okaaaaaaaaaaaaaaaaaaaaaaaaaay. So now it's working.
    So if you experience the same problem, here's what happened and how I resolved the problem.
    I closed the browser, started up again and tried adding a menu to a page using "Add   modules to a web page" - it worked, but then BC still wouldn't let me have access to the "Add   modules to Templates" button a second time when I tried it with the template - just wouldn't work. So, I shut the browser again but this time loaded the template and tried adding the the module to the template using the button, and it worked.
    So I'm guessing that this is a bug that needs to be sorted Adobe?

  • Styling a dynamic menu using CSS

    Hi everyone, hope someone can help.
    I have spent a few hours starting to style a new site and i am struggling with the dynamic menu
    http://www.innovas.co.uk/ourclients.htm
    what i would like it to do is have a gap in between each of the main menu items so that its not one consistent block of grey background colour. I have tried isolating the style for tr. and adding a border-padding of 1px with a color white, but this adds the border to all table rows. i just need a way of styling a 1px white border into the menu item layout.
    some help would be hugely appreciated
    thanks in advance
    Phill

    Hello!
    The best way to approach this would be to use Dynamic Menu v2. It will save you a lot of hassle.
    There's a thorough explanation covered in this post: http://forums.adobe.com/docs/DOC-1903.
    Let me know how it goes.

  • Need to find a work around for this Dynamic menu issue.

    Hi all, i've search everywhere for an answer to this, i'll try again here.
    So, If i make a site with Muse, and use the menu widget,
    It generates the cool menu automatically everything is fine.
    BUT, what happens if my client creates a new page from his BC backend using a template i made for that purpose while making the site in Muse (a page with the "{tag_pagecontent}" Tag)
    can it show in the menu?.
    i desperatly need help with this one.
    i.

    Unless i insert at the right place in muse (like in a master page) the menu module tag generated by BC right?
    and for some obscure reason, i'm having a F*$*ing hard time to style
    this will need to be possible in Muse future, i know muse grid came with a BC blog Module, hopefully they will come up with a BC dynamic menu module.
    (sigh) ... i'm so discouraged
    y.

Maybe you are looking for

  • Satellite P755-S5320 BSOD

    I receive a BSOD when I attempt to burn a cd/dvd using any program on my laptop.  Can someone please help?

  • Battery Pull - When, Why, and How

    An *excellent* article on the when, why, and how of doing battery pulls on your BlackBerry.  It's recommended many times on these boards to fix a multitude of problems because it WORKS!  Here's why: http://crackberry.com/blackberry-101-battery-pulls-

  • Do I need to change my captured 29.97 fps files to 23.98 fps?

    Of the 290 AG-DVX100 24p clips I've captured to my hard drive for my first feature, about 50 or 60 of them have vid rates (at least according to the clip descriptions in the FCP browser window) of 29.97 fps. My other 230 - 240 clips are (again accord

  • Java write/append to each line of a text file

    I have spent numerous hours trying to figure out what I am doing wrong. If anyone more experienced could tell me what is wrong with my code. I have a very simple text file with 5 lines: line1 line2 line3 line4 line5 All I am trying to do is append so

  • Tmy linus computer is not letting me update the latest  Adobe flash player version 10.3.183.7

    i have a Asus eee 701 computer running Linux and using firefox 3.0.4 but i could not download the latest Adobe flash player version 10.3.183.7 i still using the old version flash player 10,0,22,87 i don't know what to do please help