Getting Navigation Using SQL
Page name known
SELECT P4.PNLNAME,P4.PNLGRPNAME, 'Home > '+P3.PORTAL_LABEL+'->'+P2.PORTAL_LABEL+'->'+P1.PORTAL_LABEL+'->'+P.PORTAL_LABEL Navigation,P3.PORTAL_LABEL L3
, P2.PORTAL_LABEL L2
, P1.PORTAL_LABEL L1
, P.PORTAL_LABEL L0
, P.*
FROM PSPRSMDEFN P
, PSPRSMDEFN P1
, PSPRSMDEFN P2
, PSPRSMDEFN P3
, (SELECT PNLGRPNAME,PNLNAME FROM PSPNLGROUP) P4
WHERE P.PORTAL_URI_SEG2 =P4.PNLGRPNAME
AND P.PORTAL_PRNTOBJNAME = P1.PORTAL_OBJNAME
AND P1.PORTAL_PRNTOBJNAME = P2.PORTAL_OBJNAME
AND P2.PORTAL_PRNTOBJNAME = P3.PORTAL_OBJNAME
AND P.PORTAL_NAME = P1.PORTAL_NAME
AND P1.PORTAL_NAME = P2.PORTAL_NAME
AND P2.PORTAL_NAME = P3.PORTAL_NAME
AND P4.PNLNAME IN("Page Name")
and P3.PORTAL_LABEL<>'Navigation Collections'
order by P4.PNLNAME
When a page name is known:
SELECT DISTINCT
COMP.PNLNAME as Page
, 'Home > '
|| RTRIM(MENU.MENUGROUP) || ' > '
|| RTRIM(MENU.MENULABEL) || ' > '
|| RTRIM(ITEM.BARLABEL) || ' > '
|| ITEM.ITEMLABEL as MenuPath
FROM PSMENUDEFN MENU
, PSMENUITEM ITEM
, PSPNLGROUP COMP
WHERE MENU.MENUNAME = ITEM.MENUNAME
AND ITEM.PNLGRPNAME = COMP.PNLGRPNAME
AND COMP.PNLNAME = 'page-name'
Above Information I Got from http://www.sparkpath.com/
When a record name is known:
SELECT DISTINCT
PFLD.RECNAME
, PFLD.PNLNAME as Page
, 'Home > '
|| RTRIM(MENU.MENUGROUP) || ' > '
|| RTRIM(MENU.MENULABEL) || ' > '
|| RTRIM(ITEM.BARLABEL) || ' > '
|| ITEM.ITEMLABEL as MenuPath
FROM PSMENUDEFN MENU
, PSMENUITEM ITEM
, PSPNLGROUP COMP
, PSPNLFIELD PFLD
WHERE MENU.MENUNAME = ITEM.MENUNAME
AND ITEM.PNLGRPNAME = COMP.PNLGRPNAME
AND COMP.PNLNAME = PFLD.PNLNAME
AND PFLD.RECNAME = 'record-name'
Above Information I Got from http://www.sparkpath.com/
Delivered Page to Search Component Navigation.
There was several solutions to find the navigation path for component and page. There were several SQL statements for different databases. Finally Oracle as developed page this purpose.
In the latest Ptools 8.50 and Application 9.1 application search is possible from two navigations.
1) Main Menu > Enterprise Components > Find Object Navigation
2) Setup HRMS > System Administration > Utilites > Portal Navigation Path
Search is possible with name of Component,Page,Secondary Page and Content Reference.
Search works fine with hidden components as well.

Above Information I Got from peoplesoftlearnings.blogspot
No comments:
Post a Comment