Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

APEX 5 - Dynamic List navigation menu - entries are shown twice

Bernhard FWMay 13 2017 — edited May 14 2017

DB 11.2 - APEX 5.1 - I have setup a Dynamic List used as a navigation menu (left side).

Those entries, which are assigned to a parent_id_page are shown below that parent entry - fine - as expected.

But the (sub-) entries are shown as entry on the same level as the parent entries as well.

Oracl_community_entry_question.PNG

Question: How can one avoid a.m. behaviour ?

Here are my entries:

Oracl_community_entry_question2_liste.PNG

Thanks in advance
Bernhard

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

My SQL Query reads:

Select

level as lvl

,GM_LABEL As label

,GM_TARGET As target

,GM_IS_CURRENT_LIST_ENTRY is_current_list_entry

,GM_IMAGE as imagevalue

,null image_attribute

,null image_alt_attribute

,null as attr1

From GM_GUI_MENU

--- my authorisation:

where ':'||GM_GUI_MENU.GM_MENU_MODULE||':' like

'%:'||(select M.ROLLE from AK_MITARBEITER M where upper(M.BENUTZERNAME) = upper(:APP_USER)||':%' )

Connect By Prior GM_UID = GM_PARENT_GM_UID

ORDER SIBLINGS BY GM_UID

This post has been answered by fac586 on May 13 2017
Jump to Answer

Comments

fac586
Answer

Bernhard Fischer-Wasels wrote:

DB 11.2 - APEX 5.1 - I have setup a Dynamic List used as a navigation menu (left side).

Those entries, which are assigned to a parent_id_page are shown below that parent entry - fine - as expected.

But the (sub-) entries are shown as entry on the same level as the parent entries as well.

Oracl_community_entry_question.PNG

Question: How can one avoid a.m. behaviour ?

Here are my entries:

Oracl_community_entry_question2_liste.PNG

Thanks in advance
Bernhard

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

My SQL Query reads:

Select

level as lvl

,GM_LABEL As label

,GM_TARGET As target

,GM_IS_CURRENT_LIST_ENTRY is_current_list_entry

,GM_IMAGE as imagevalue

,null image_attribute

,null image_alt_attribute

,null as attr1

From GM_GUI_MENU

--- my authorisation:

where ':'||GM_GUI_MENU.GM_MENU_MODULE||':' like

'%:'||(select M.ROLLE from AK_MITARBEITER M where upper(M.BENUTZERNAME) = upper(:APP_USER)||':%' )

Connect By Prior GM_UID = GM_PARENT_GM_UID

ORDER SIBLINGS BY GM_UID

The query contains no start with clause to specify the menu's root node(s), therefore multiple trees are constructed using each row as a root.

Add the start with clause:

...

start with gm_parent_gm_uid = 0

Marked as Answer by Bernhard FW · Sep 27 2020
Bernhard FW

That is perfectly right/correct: Thank you so much!

1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 11 2017
Added on May 13 2017
2 comments
1,760 views