Search This Blog

Monday, September 28, 2009

How to Hide the Menu Bar and Header in a PeopleSoft Page

First, you need to create a derived record with the HTMLAREA field. Then in the Row init of this field you need to copy the following code.

Global integer &transfer;

Local integer &tr;


 

&tr = &transfer;

rem Error "" | &transfer;

If &tr = 1 Then;

#RECORDNAME#.HTMLAREA.Value = "<script type='text/javascript'>if

(parent.frames['NAV']){parent.parent.location=parent.TargetContent.location;}</script>";

&transfer = 0;

End-If;

The you need to place an html are in the target page, linked to the HTMLAREA field in the record previously created. Finally, you need to add the following code in the source page (the page with the button/link that makes the transfer to the target page) just before the Transfer function:

Global integer &transfer;

&transfer=1;

And thats it!

No comments:

Post a Comment