Steps to Debug OAF page Errors (or) How to generate logs for tracing OAF page Errors.
Step:1
You can see the log by using the below code in the Controller Syntax: pageContext.writeDiagnostics(Object,String,int);
Example: pageContext.writeDiagnostics(this,”Enter into CO:=”+assnum,OAFwkConstants.STATEMENT);
For bc4j objects(AM, View Object Impl ,Entity Object Impl)
use the below code as Syntax: getOADBTransaction().writeDiagnostics(Object,String,int);
Example: getOADBTransaction().writeDiagnostics(this,”customerid in AM =”+customerid,1);
Step:2
Set the profile Option Values Go to System Administrator responsibility and set the profile options to enable the log.
Navigation : System Administrator-Profile-System Set FND: Debug Log Enabled to Yes
Save the Record. Set FND: Debug Log Level to Statement
Save the Record. Bounce the Apache. When you login to EBS you can see Logging is enabled.
Step:3
Query FND_LOG_MESSAGES in the database for all the debugging messages.
Select * from FND_LOG_MESSAGES
Now the log messages can be seen in the table. You can also see the log on sreen by selecting the Diagonastic link on OAF Page Select Show Log on Screen Option.