Wednesday, 22 August 2018

pagecontext.writediagnostics in oaf

pagecontext.writediagnostics in oaf

 
pagecontext.writediagnostics is a combinations two different objects. writediagnostics is the simple method in the OAF to show/create log messages and pagecontext is the OAF class object which helps to execute the writediagnostics method in the OAF controller.Here below I will explain in detail about pagecontext.writediagnostics in oaf and how we can use this in our OAF Pages.
 
 

Complete Details about pagecontext.writediagnostics in oaf

 

writediagnostics Method

 
writeDiagnostics(Object module ,String message,int logLevel);
 
module - current module, usually the "this" pointer
message - message to be included in the log. Limit 4000 characters.
logLevel - Type of log message. Valid values are (UNEXPECTED,ERROR, EXCEPTION,EVENT,PROCEDURE,STATEMENT,PERFORMANCE)
If you are using the pagecontext.writediagnostics to see all the OAF pages log message you first need to set this profile at user level.
 
 

FND: Debug Log Level
 
 

How to implement pagecontext.writediagnostics in oaf

 
 
If you want to Put the Custom Messages in your Controller then you can put these messages like below.
 
 
public void processRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    {
 
/*This is the Custom Message which will be show in OAF page in Oracle Application*/
      paramOAPageContext.writeDiagnostics(this, "XX Start PR ", 1); 
 
{
 
 
Step3:- After Enable the Profile Option Go to the Home page of your Application and go to 'Diagnostics' as below
 
pagecontext.writediagnostics in oaf
 
 
 
Step4:-  Then You need to Choose Diagnostic Option 'Show Log on Screen' as below.
 
pagecontext.writediagnostics in oaf
 
 
Step5:-  Log Level Option should Be ' Statement' Then Click Go.
pagecontext.writediagnostics in oaf
 
 
Step6:- You can see the Log Messages shown below your OAF pages. You just need to Scroll down your Web page and you can see all these Standard and Custom messages there and can do the Debugging in that OAF page.
 
pagecontext.writediagnostics in oaf
 
 
 
 
pagecontext.writediagnostics in oaf

0 comments:

Post a Comment

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

Name

Email *

Message *