Saturday, 12 August 2017

Hide Main Menu in PeopleSoft using Peoplecode


Hide Main Menu in PeopleSoft using Peoplecode



To Hide the Main Menu through PeopleCode:

The Main Menu (which is show in above figure) is processed from a HTML object - PT_HNAV.
The HTML of PT_HNAV is as shown:


In order to hide the main menu permanently from PeopleSoft using Peoplecode is shown below:

Option 1. Either modify the PT_HNAV HTML object as shown below:

 And then save the HTML object. By this way the main menu will be permanently hidden from PeopleSoft.

 Option 2: Save the Modified PT_HNAV as new HTML object like PT_HNAV_MOD.

Open the Application Package - PT_NAV2(Application Package).NavHover(Aplication Class) OnExecute(method). Search for The HTML -  PT_HNAV.

The Following Code will be found :

  &HTML_inst = GetHTMLText(HTML.PT_HNAV, &navInfoHTML, "pthnav", & favHTML, "pthnavbarfldr", &mainMenuTxt, &mainMenuTxt, & mainMenuHTML, &breadCrumbHTML, &navJS, "pthnavbcanchor", & 508styleSheet, %This.abnGetBCTemplate(), MsgGetText(95, 5099, "Refine Search"), MsgGetText(95, 5098, "Recent Search Results"), MsgGetText(95, 9106, "Search Results Popup"), MsgGetText(95, 436, "Drop-Down Menu"));

Now replace the HTML.PT_HNAV to  HTML.PT_HNAV_MOD

After replacing the code looks like :

 &HTML_inst = GetHTMLText(HTML.PT_HNAV_MOD, &navInfoHTML, "pthnav", & favHTML, "pthnavbarfldr", &mainMenuTxt, &mainMenuTxt, & mainMenuHTML, &breadCrumbHTML, &navJS, "pthnavbcanchor", & 508styleSheet, %This.abnGetBCTemplate(), MsgGetText(95, 5099, "Refine Search"), MsgGetText(95, 5098, "Recent Search Results"), MsgGetText(95, 9106, "Search Results Popup"), MsgGetText(95, 436, "Drop-Down Menu"));

Save the PeopleCode . By this way the main menu will be permanently hidden from PeopleSoft.



1 comment:

  1. Can you please post better screenshots for this topic (Hide Main Menu in PeopleSoft using Peoplecode)?
    Thank You

    ReplyDelete