You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

How to refresh the page that refresh should be equal to F5

3 replies [Last post]
Guest's picture
Guest

HI,
CAN ANYBODY SUGGEST ME THE SOLUTION TO REFRESH THE WORKLIST PAGE THAT REFRESH SHOULD BE EQUAL TO F5 BECAUSE UPON WORKING ON ONE WORKLIST I AM NOT ABLE TO SELECT SECOND WORKLIST CAN ANYBODY SUGGEST ME THE SOLUTION?
THANKS IN ADVANCE

Lepa's picture
User offline. Last seen 2 years 20 weeks ago. Offline
Joined: 06/23/2008
Posts: 591
Re: How to refresh the page that refresh should be equal to F5

Why do you want to do such thing? F5 behavior is not what you want on a PeopleSoft page. Use something like GetLevel0().Refresh() to refresh the whole page. Research the refresh method in the PeopleCode API Reference book.

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

Ashar's picture
User offline. Last seen 5 years 1 week ago. Offline
Joined: 03/26/2008
Posts: 227
Re: How to refresh the page that refresh should be equal to F5

Hi,

You can do a F5 equaivalent refresh using javascript..

Peace,

Ashar

Ashar's picture
User offline. Last seen 5 years 1 week ago. Offline
Joined: 03/26/2008
Posts: 227
Re: How to refresh the page that refresh should be equal to F5

Details on this:

Create an HTML say REFRESH_JS

<
META HTTP-EQUIV="REFRESH" CONTENT="1; URL=javascript:ReloadPage()"
>
<
SCRIPT type="text/javascript"
>
function ReloadPage() {
window.top.location.reload();
}
<
/SCRIPT
>

Place an HTML area and an edit box on the page and assign the same record field to both (say DERIVED_HR.HTMLAREA).Make the Edit box as invisible and modifiable via javascript.

Write the below peoplecode in the event where you want to refresh the page.

GetLevel0()(1).DERIVED_HR.HTMLAREA.Value = GetHTMLText(HTML.REFRESH_JS);

---------------------------
Peace,

Ashar