In this tutorial we are going to learn how to display User id ,User name,Responsibility id,Responsibility name and also display User information based on login.
Step1: Create a page LoginDetailsPG under xxerpschools.oracle.fnd.erps.webui
Give the Page name and package name as said earlier.
Now the page will be created and the structure of the page is shown below.
Now create an Am under Package xxerpschools.oracle.apps.fnd.erps.server and name it as ErpsAM.
In PageLayoutRN-Property Inspector attach AM Definition .
Window Title – Login Details Web Page
Title- Welcome!!
Step:2
Create a region under PageLayoutRN—>rightclick —>New—>Region
In Property Inspector
Region Style as messageComponentLayout
Rows:2
Columns:2
After creating messageComponentLayout Region under PageLayoutRN create four items and Item style of all the four items is ” messageStyledText “.
ID : UserId
Item Style :messageStyledText
Prompt : User Id
CSS Class : OraDataText
ID : UserName
Item Style :messageStyledText
Prompt : User Name
CSS Class : OraDataText
ID : RepId
Item Style :messageStyledText
Prompt : Responsibility Id
CSS Class : OraDataText
ID : RespName
Item Style :messageStyledText
Prompt : Responsibility Name
CSS Class : OraDataText
Now the below structure shows the four items which we created .
Step:3
Create a Controller Rightclick PageLayoutRN—>Set New Controller
Name its as LoginDetailaCO under package xxerpschools.oracle.apps.fnd.erps.webui.
In Controller write the below code in processRequest.
import the package
import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
Now,we can also display the User information based on login.
Add the below code in processRequest
Rebuild the controller and Run the page . The output of the page is as follows.