Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Apr 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Populating Menus and Sunmenus from a parameters file

    Hi All,

    Really new to this so looking for some help creating a menu that is populated from a parameters file. Please see details below. Any help would be greatly appreciated.

    -----------------------------------
    -----------------------------------

    -- parameters.json file

    [code]
    {
    "application":[
    "AppName01",
    "AppName02"
    ],
    "01":[
    "Sub01_01",
    "Sub01_02"
    ],
    "02":[
    "Sub02_01",
    "Sub02_02"
    ]
    }
    [\code]

    -----------------------------------
    -----------------------------------

    -- menu.jsp file

    [code]
    <div>
    <a href="javascript:void(0)" id="mb2" class="easyui-menubutton" data-options="menu:'#menu_app'">Applications</a>
    </div>
    <div id="menu_app" style="width:200px;">
    <c:forEach var="app" items="${params.application}">
    <div>
    <span>${app }</span>
    <div style="width:200px;">
    <div onclick="javascript:window.location = 'to_create_CQR?appName=${app}'">Create CQR</div>
    <div onclick="javascript:window.location = 'transactions?appName=${app}'">Show Trend</div>
    </div>
    </div>
    </c:forEach>
    </div>
    [\code]

    -----------------------------------
    -----------------------------------

    Menu currently looks like:

    Applications
    AppName01
    Create CQR
    Show Trend
    AppName02
    Create CQR
    Show Trend

    -----------------------------------
    -----------------------------------

    What I want the menu to look like:

    Applications
    AppName01
    Sub01_01
    Create CQR
    Show Trend
    Sub01_02
    Create CQR
    Show Trend
    AppName02
    Sub02_01
    Create CQR
    Show Trend
    Sub02_02
    Create CQR
    Show Trend

    -----------------------------------
    -----------------------------------

  • #2
    New to the CF scene
    Join Date
    Apr 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Populating Menus and Sunmenus from a parameters file-menu.png


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •