Query Syntax for Dynamic Navigation Menu

I'm trying to build a Navigation menu from a query using the following syntax:
select LEVEL,
       LABEL,
       LINK,
       'NO' as IS_CURRENT,
       null as IMAGE
  from V$RC_MENUS
where CLUB = :APP_CLUB
start with PID is null
connect by prior ID = PID
order by SEQUENCE, LABEL
The query itself works fine for all values of APP_CLUB but it only generates the menu entries for some values of APP_CLUB, but not others. The SEQUENCE value determines the order of the entries within each level. Is this the correct syntax for a query-based navigation menu? How does it determine which sub-levels belong to a parent?  Does the ordering of the resultset have any impact on how the menu is generated?

Jritschel-Oracle wrote:
I'm trying to build a Navigation menu from a query using the following syntax:
select LEVEL, 
      LABEL, 
      LINK, 
      'NO' as IS_CURRENT, 
      null as IMAGE 
  from V$RC_MENUS 
where CLUB = :APP_CLUB 
start with PID is null 
connect by prior ID = PID 
order by SEQUENCE, LABEL 
The query itself works fine for all values of APP_CLUB but it only generates the menu entries for some values of APP_CLUB, but not others. The SEQUENCE value determines the order of the entries within each level. Is this the correct syntax for a query-based navigation menu? How does it determine which sub-levels belong to a parent?  Does the ordering of the resultset have any impact on how the menu is generated?
As stated in the documentation:
...do not specify either ORDER BY or GROUP BY, because they will destroy the hierarchical order of the CONNECT BY results. If you want to order rows of siblings of the same parent, then use the ORDER SIBLINGS BY clause.
Try:
select LEVEL,
      LABEL,
      LINK,
      'NO' as IS_CURRENT,
      null as IMAGE
  from V$RC_MENUS
where CLUB = :APP_CLUB
start with PID is null
connect by prior ID = PID
order siblings by SEQUENCE, LABEL

Similar Messages

  • Howto Refresh SAP BW Query Changes for roles (User menu)

    Hi All,
    I have apply new changes for combine hierarchy. However I have tested in Query Designer/web and its works ok hence the user cant see the change.
    Howto Refresh SAP BW Query Changes for roles (User menu)
    Below is the setup we do have (sap bw 3.5)
    1. User run query from User menu (They logon to bw backend and run query by click on the icon on thier user menu.
    Changes.
    1.Apply combine hierarchy (Rows in Query Designer)
    2. I have display query on the web and its work as expect
    Issue
    1. Query not refresh in user menu (Roles) Users run the query through user menu
    Regards Jon

    thank you

  • Dynamically build URLS  for dynamic navigation

    hello all, I am trying to develop dynamic navigation for pl/sql portlets in oracle portal 10g. When admins place the portlets i develop on pages or tabs, etc, i would like to be able to query the database for there location(what page or tab its assigned to) dynamically so i can build links that would allow linking from portlet to portlet no matter where the admin placed them in the Portal. So my question is, what table or tables list the page_id or tab_id for portlets when they are added to a region on page or tab???

    The Content Area Views describe the information that you can access from PL/SQL.
    Peter

  • FAGLL03 : Submit syntax for dynamic selections

    Hi Experts,
    My z report contains following fields in selction screen.
    1 . G/ L account
    2. Comapny code
    3. posting date
    4. document type
    5. layout
    In my z report i used following syntax for passing selection screen values to standard program and getting data.
    SUBMIT FAGL_ACCOUNT_ITEMS_GL
                      WITH SD_SAKNR   IN S_SAKNR
                      WITH SD_BUKRS   IN S_BUKRS
                      WITH X_OPSEL    EQ ' '
                      WITH X_CLSEL    EQ ' '
                      WITH X_AISEL    EQ 'X'
                      WITH SO_BUDAT   IN S_BUDAT
                      WITH PA_VARI    EQ P_VAR
                      EXPORTING LIST TO MEMORY
                     AND RETURN. 
    The above syntax is not working for dynamic selection field ( document type ), entire document types data is fetching from standard program. I want to fetch document type data based on my z report selection values for document type field.
    Expect for document type field , submit syntax is working.
    kindly provide submit syntax for my above requirement .
    Any suggestions from experts....
    thanks & regards,
    Hari priya
    Edited by: Hari  Priya on Aug 24, 2009 4:33 PM

    Hi,
    Try like this.
    call function 'RS_REFRESH_FROM_SELECTOPTIONS'
      exporting
        curr_report = 'FAGL_ACCOUNT_ITEMS_GL'
      tables
        selection_table = i_sel[].
    Fill your profit center values in i_sel
    Submit FAGL_ACCOUNT_ITEMS_GL with selection-table i_sel and return
    WITH FREE SELECTIONS TEXPR AND RETURN
    Regards,
    Shamma

  • Submit syntax for dynamic selections for T-code FAGLL03

    Hi Experts,
    My z report contains following fields in selction screen.
    1 . G/ L account
    2. Comapny code
    3. posting date
    4. Profit Center
    5. layout
    In my z report i used following syntax for passing selection screen values to standard program and getting data.
    This is for T-code FAGLL03
    SUBMIT FAGL_ACCOUNT_ITEMS_GL
    WITH SD_SAKNR IN S_SAKNR
    WITH SD_BUKRS IN S_BUKRS
    WITH %%DYN001-LOW (Profit Center)
    EXPORTING LIST TO MEMORY
    AND RETURN.
    The above syntax is not working for dynamic selection field ( Profit Center), entire Profit center data is fetching from standard program. I want to fetch profit center data based on my z report selection values .
    Expect for profit center field , submit syntax is working.
    kindly provide submit syntax for my above requirement .
    Any suggestions from experts....
    Edited by: PLP REDDY on Nov 25, 2009 8:59 AM

    Indeed it won't work. Instead of passing parameters one by one use
    [SUIBMIT... WITH SELECTION-TABLE rspar|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm#!ABAP_ADDITION_3@3@]
    Here you add one line per parameter (field KIND = 'P' ) and multiple lines per select options (field KIND = 'S' ). For the latter you need also provide SIGN and OPTIONS, i.e SIGN = 'I' , OPTIONS = 'EQ'
    The lin I gave you will explain it more.
    Regards
    Marcin

  • Map Viewer Query Rewriting for Dynamic themes and  Materialized Views.

    Hi,
    I am usng a WMS request to render FOI points in my map.
    Internally query rewrite is happening in Mapviewer for this dynamic theme and my data points query is getting converted as
    select FROM
    ( select status, shape from MatView.MyTab where id = '3' )
    WHERE MDSYS.SDO_FILTER(shape, MDSYS.SDO_GEOMETRY(2003, 4283, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(144.948120117188,-37.8162934802451,144.950866699219,-37.8141237016045)), 'querytype=WINDOW') = 'TRUE'
    here the rewritten query is not correct and is throwing exceptions in mapviewer log
    How can I make this query to be written correctly.
    (My orginal query before rewrite is: select status,shape from MatView.MyTab where id='3' )
    I am using a materialised view : MatView is a materialized view.
    When I used normal tables, the query is re written correctly.But for this materialized view this is happening.
    How can I correct the error?
    Is this has something to do with some Spatial Indexing in Materialised view or Query Rewriting for materialized view?
    Edited by: 841309 on Mar 10, 2011 11:04 PM

    Oops!
    The Materialized view was not accessible from the schema I tried :)
    And so when I gave permissions,it formed the correct query.
    So if permission is not there,map viewer will rewrite the query in a wrong way! New information.

  • Dynamic query syntax for EJB

    If i'm going to let the user search the database table (eg. Employee) based on 4 parameters, ie. employee id, employee name, position and address. In cmp entity bean, the stupid way is to create (2 power of 4) findByMethod ejb-ql statements to fulfill the search. Is there any dynamic way to do the querying of table for cmp bean with only one findByMethod?
    Any suggestions or help would be much appreciated. Thanks.

    Hi Julius,
    CMP unfortunately does not support dynamic OQL methods (unless something has changed since the last time I looked at the specs). There are however tools and software (eg powertier) that can provide this type of functionality (like a generic findBySQL(String sql) method) on some J2EE servers.
    One way to solve it of course is to have 4 different methods, and then in your java code have a case or if statements selecting the correct one based on what the user enters. It is not a pretty solution but it would work.
    regards,
    Dion

  • ADF Query Panel for Dynamic VO.

    Hi All,
    i am using jdev version 11.1.1.5.0.
    In my use case i have created one dynamic VO because table and no of column decided run time. now i want to provide filter on that vo using Named view criteria as ADF query panel.
    but column and table decided run time. So can i create dynamic query panel(View Criteria) run time?
    or Is there any another way to achieve my requirement?
    Thanks in Advance.

    Hi Manish,
    not sure if this is what you are looking for, but you can have dynamic viewcriteria in a search region.
    In the searchregion binding in the pageDefenition simply use an EL Expression to determine what criteria to use.
    <searchRegion Criteria="#{pageFlowScope.startupMode eq 'mgr' ? 'CriteriaForManager' : 'CriteriaForEmployee'}"               
                         Customizer="oracle.jbo.uicli.binding.JUSearchBindingCustomizer"               
                         Binds="EmployeesView1Iterator"                
                         id="CriteriaForManagerQuery"/>  I explained it on my weblog : http://lucbors.blogspot.nl/2011/10/in-my-current-project-use-lot-of-re.html
    Good luck,
    Luc

  • Refreshing query data for Dynamic Page Generator

    Can anyone tell me why I must exit out of XMII and re-login in order to have any updates saved in either a Data Query or Display Query show up when I use the Dynamic Page Generator.
    I attended the Xmii beginner level training.  In the training, I could hold the Ctrl key and click the Refresh button on my browser to update the templates.
    Thanks
    Mike

    Mike,
    The reason for this was that the machines that were used in training had Java SDK 1.5 installed if you are using 1.4 you cannot hold down the ctrl key to refresh the cache you must go into Tools -> Sun Java Console -> click the "X" key and that will clear the cache.
    Erik

  • Syntax for dynamic dropdown in form

    I have a simple database structure with a table for venues and events.
    I am trying to add a select drop down in my form to add a new event which lists the venues, and inserts the VenueID into a field in the Events table.
    I have this, which I think is pretty close, but its not pulling anything through:
    <select name="VenueID">
        <?php
        $sql = "SELECT VenueID, Venue FROM Venues ORDER BY Venue ASC";
        $result = mysql_query($sql);
        while ($row = mysql_fetch_array($result)) {
        echo '<option value="' . $row['VenueID'] . '">' . $row['Venue'] . '</option>';
        ?>
    </select>
    Thanks for any pointers.

    Just to say I have it working now by explicitly referencing the DB again, i.e. adding:
      mysql_connect('localhost', 'username', 'password');
      mysql_select_db('database');
    A connection file was referenced in the header but must have needed that too.

  • Navigation menu not showing up

    Hi,
    I am creating a site using iWeb and have uploaded it to my web host and all runs fine... except for the navigation menu, which is kinda important. I know i could make my own, but I would like to use the default one anyway.
    So everything looks fine in iWeb. Here is a screenshot showing the default navigation menu (I am using the darkroom theme)
    But when I publish to my server and view through safari (have also tried Firefox and get the same results), this is what I see where the navigation menu should be:
    There is no light grey horizontal box, no writing, just a black dot point. The dark grey on the sides is normal, its not in the iweb screenshot because my window wasn't very wide.
    I tried disabling the menu, re-publishing (which removed the dot point), enabling it again and re-publishing but I still get the same issue.
    Any ideas on why I can't get the menu??
    Cheers.

    I had the same issue.  It's a cache settings problem.  I resolved it this way:
    Go to Firefox > Preferences > Advanced > Network
    On that screen under the 'Cached Web Content' section, UNCHECK the 'Override automatic cache management' check box. 
    Then quit Firefox entirely and restart it.  Should do the trick.
    Peace out
    SL

  • Can you disable the DPS navigation menu?

    I have a project where i have to create a doument with  all the bells and whistles of DPS for iPads. I've got to be able to navigate through buttons, have video and slideshows, different length pages, etc.  The thing is, the document is not meant to be published, but rather ran on several iPads at tradeshows. Indesign and DPS are the perfect solution except for the navigation menu (the home button on the iPad will be covered by an encasement). Is there any work around to disable the navigation menu (home, previous page, TOC...)? Can anyone recomend any other solution to this problem?
    thanks in advance for any help!

    Hi Johnnes -- This was not my question ... but I'd appreciate your help with
    this question that I've posted in several forums with no answer:
    As of cs5.5, I can't get a multi-state object to stay on the same state when the
    ipad is rotated unless I use buttons with "go to next state"selected. When
    "swipe" is selected in the Overlay panel OR when I'm changing states with
    individual invisible buttons, such as in a timeline, the MSO reverts to the
    first state when rotated.
    This worked fine in my previously published apps. Is it a software issue? I need
    a new procedure? Viewer builder bug? Yes, the MSO has the same name and Links
    file.
    Help! Thanks, Beth

  • What incorrect syntax found in this query for dynamic search

    I make this stored procedure for dynamic search by date from date to employee no employee name
    but it give me error why
    Create proc CollectsearchData15
    @StartDate datetime,
    @EndDate datetime,
    @EmployeeID NVARCHAR(50),
    @EmployeeName nvarchar(50)
    as
    Begin
    DECLARE @SQLQuery as nvarchar(max)
    SET @SQLQuery = N'SELECT * from ViewEmployeeTest Where (1=1)'
    If @StartDate Is Not Null
    SET @SQLQuery = @SQLQuery + N' And (joindate >= @StartDate)'
    If @EndDate Is Not Null
    SET @SQLQuery = @SQLQuery + N' And (joindate <= @EndDate)'
    If @EmployeeID Is Not Null And @EmployeeID != ''
    SET @SQLQuery = @SQLQuery + N' And (EmployeeID = @EmployeeID)'
    If @EmployeeName Is Not Null And @EmployeeName != ''
    SET @SQLQuery = @SQLQuery + N' And (DriverName Like ''%'' + @EmployeeName + ''%'')'
    Print @SQLQuery;
    Exec sp_executesql @SQLQuery,
    N'@StartDate datetime, @EndDate datetime, @EmployeeID nvarchar(50), @EmployeeName nvarchar(50)',
    @StartDate, @EndDate, @EmployeeID, @EmployeeName;
    but it give me this error why
    Msg 102, Level 15, State 1, Procedure CollectsearchData15, Line 28
    Incorrect syntax near ';'.

    I think you are missing an END. Perhaps with no dynamic sql :
    SELECT * from ViewEmployeeTest
    WHERE
    (joindate >= @StartDate OR @StartDate IS NULL)
    AND
    (joindate <= @EndDate OR @EndDate IS NULL)
    AND
    (EmployeeID = @EmployeeID OR @EmployeeID IS NULL)
    AND
    (DriverName Like '%' + @EmployeeName + '%' OR @EmployeeName IS NULL)
    Thanks and regards, Rishabh K
    Please keep in mind that this might cause proc to generate bad plans
    http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Dynamic programming tabstrip, no tabs in pull down navigation menu

    Hi everybody,
    I create with dynamic programming a tabstrip with some tabs. Than I have the problem that the navigation menu ( or pull down menu ) for the navigation between the tabs is not filled.
    So my question is, must I put the generated tabs in the menu and how, or is it a feature not yet supported? I couldn’t find a method to do this.
    Thanks for any help
    Regards
    Christian

    webmasterinflorida wrote:
    > Hi everyone,
    >
    > I was wondering if I could get some input. I have just
    re-designed our
    > magazine's site, www.easternsurf.com
    >
    > I used Pop-Up menu function in Fireworks 8 to generate
    our Navigator bar. For
    > the most part everything has been working well, BUT
    we've had a couple of
    > complaints that the navigator bar's pull-down menus get
    stuck behind the
    > photos/banner ads/etc.
    Consider redesigning again? The page is 240 kb, which is
    about 200 kb
    more than it should be. It would be OK if everyone used a
    high speed
    connection, but broadband penetration in the US is stuck at
    around 50%.
    About half your viewers aren't going to stick around until
    the page
    finished loading.
    Skim through the forum posts to learn more (and scary stuff)
    about the
    drop down menus.
    Linda Rathgeber [PVII] *Adobe Community Expert-Fireworks*
    http://www.projectseven.com
    Fireworks Newsgroup:
    news://forums.projectseven.com/fireworks/
    CSS Newsgroup: news://forums.projectseven.com/css/
    http://www.adobe.com/communities/experts/

  • Configure custom query group in navigation menu

    How do we configure custom query groups? Say for example: I have created a custom query group and added my custom query definitions to it. How do I configure this so that when I click on Contract Management Tab on the workbench, my custom query group is invoked?
    I need to configure custom query group in navigation menu. Any help would be appreciated.
    Regards,
    Bindu Sharma

    Hi Bindu,
    As per my understanding, it is standard and query group cannot be added in the navigation but you can add your quries under Agreement and Claus Library.
    Kindly refer the blog for the same: http://scn.sap.com/docs/DOC-55733
    Let me know if you need any other information.
    Thanks,
    Kushagra A

Maybe you are looking for

  • Cost center not appearing while settling to GL Account using AIAB

    Hi There is one AuC 100000019.  There are two values: Rs.10000 and Rs.145500 Now i want to settle it to GL account using AIAB. In AIAB under Category field, i gave GL (i.e. GL account as Category). Then i mentioned GL Account as settlement receiver.

  • Web site critique  please

    got a new index page up but would love a litle advise -- no need to pull punches -- have a small question though -- when i reduce my browser size things fly out -- any ideas on how to fix index page www.healthhokkaido.com many thanks to anyone who ta

  • How do I create a digital ID?

    How do I create a digital ID and signature

  • How AP_SUPPLIER_SITES_ALL.EDI_ID_NUMBER is getting populated

    Hi, Please help me in checking how the AP_SUPPLIER_SITES_ALL.EDI_ID_NUMBER is getting populated and if it is being shown in the front end? -pat

  • Types

    What are the type of reports available in SAP? Diff each and every typef of reports? Also tell me the real time applications of reports?