First create a profile option through Application Developer
DOWNLOAD Profile option
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afscprof.lct yourLdtfilename.ldt PROFILE PROFILE_NAME="your_profile_name" APPLICATION_SHORT_NAME="application_short_name"
UPLOAD Profile option
FNDLOAD apps/$CLIENT_APPS_PWD O Y UPLOAD $FND_TOP/patch/115/import/afscprof.lct yourLdtfilename.ldt
Use Below code to get the profile option value.
String appsProfile = null;
CZWebAppsContext ctx = (CZWebAppsContext)pRuntimeNode.getConfiguration().getContext();
Profiles profiles = new Profiles(ctx);
appsProfile = profiles.getSiteLevelProfile(profileName);
if (appsProfile == null) {
appsProfile = profiles.getProfile(profileName);
}
return appsProfile;
Email:kosal01bhati@gmail.com
DOWNLOAD Profile option
FNDLOAD apps/apps O Y DOWNLOAD $FND_TOP/patch/115/import/afscprof.lct yourLdtfilename.ldt PROFILE PROFILE_NAME="your_profile_name" APPLICATION_SHORT_NAME="application_short_name"
UPLOAD Profile option
FNDLOAD apps/$CLIENT_APPS_PWD O Y UPLOAD $FND_TOP/patch/115/import/afscprof.lct yourLdtfilename.ldt
Use Below code to get the profile option value.
String appsProfile = null;
CZWebAppsContext ctx = (CZWebAppsContext)pRuntimeNode.getConfiguration().getContext();
Profiles profiles = new Profiles(ctx);
appsProfile = profiles.getSiteLevelProfile(profileName);
if (appsProfile == null) {
appsProfile = profiles.getProfile(profileName);
}
return appsProfile;
Email:kosal01bhati@gmail.com
No comments:
Post a Comment