Wednesday 11 July 2018

pagecontext in oaf

pagecontext in oaf

 

Page Context: - We use Page context in the controller Methods. We have two Methods in Oaf controller that is Process Request and Process Form request. OA Framework passes the Page Context as a Parameter in the Process and Process form request Methods. Page context helps to write the Controller code in the OAF. With the help of Page context, We do controlling of the OAF Pages Components for Example :- If we need to Set Value to the OAF page Item ‘Name’ and then if will Page Context like below.

 

oapagecontext.putParameter(“Name”);



If we need to get the value of the OAF Page Item field which is entered by the user in the OAF page then we will use Page Context like below.

oapagecontext.getParameter(“Name”);

For redirecting to the current page or another page. For example to redirecting to current page itself use oapagecontext.forwardImmediatelyToCurrentPage. Or you may use oapagecontext.sendRedirect(snewpage)
We also use PageContext to get the Control of the Application module attached to this Page like below
oapagecontext.getRootApplicationModule()
If we are doing debugging of some issue so we can put some messages in the OAF controller code and can see in the page run time with the help of Page Context like Below.
oapagecontext.writeDiagnostics
pagecontext in oaf

0 comments:

Post a Comment

Contact us for any Collaboration, Project Support & On Job Support Work

Name

Email *

Message *