HOW TO: Change Internet Expenses Cost Center Prompt
Posted
by rveliche
on Oracle Blogs
See other posts from Oracle Blogs
or by rveliche
Published on Tue, 25 Jun 2013 12:35:34 +0000
Indexed on
2013/06/25
16:25 UTC
Read the original article
Hit count: 203
/Personalization
The cost center segment on the General Information page in Oracle Internet Expenses derives its label from the Prompt entered on the KFF setup. Changing this is not possible with the simple personalization, the details below provide the instructions to change the Prompt.
Create a custom class, I call it CustomHeaderKffCO.java in the package oracle.apps.ap.oie.entry.header.webui (or any other). This class will have to extend from oracle.apps.ap.oie.entry.header.webui.HeaderKffCO. Add the following logic to your custom class.
package oracle.apps.ap.oie.entry.header.webui;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.webui.beans.message.OAMessageLayoutBean;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
public class CustomHeaderKffCO extends HeaderKffCO
{
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processRequest(pageContext, webBean);
OAMessageLayoutBean layoutBean = (OAMessageLayoutBean) webBean.findChildRecursive("KffSEGMENT2MessageLayout");
if(layoutBean != null)
{
// You should use messages/lookups to avoid translation issues.
layoutBean.setLabel("Cost Center");
}
}
}
KffSEGMENT2MessageLayout is for illustration only, my Chart Of Accounts has SEGMENT2 as the cost center segment. Please change this to a segment being used eg.Segment6 should be KFFSEGMENT6MessageLayout
Note that super.processRequest(pageContext, webBean); is a must and should always be the first statement.
Once the class is compiled, copy the class to an appropriate directory, in my case I used $JAVA_TOP/oracle/apps/ap/oie/entry/header/webui.
Navigate to the General Information page, click on "Personalize General Information Page".
Click on Personalize icon next to Message Component Layout: (OIEGeneralInformationMsgCLayout)
In the controller class section update the new controller at the appropriate level
If the Link "Personalize General Information Page" is not visible on your instance, check your personalization profiles.
© Oracle Blogs or respective owner