Is there a way to ensure that the latest value is always fetched?
I am using:
- Code: Select all
private void checkMandatoryAssign(Session s) {
String r="";
try {
AppsContext appsContext=(AppsContext)s.getObject("CTX");
if (appsContext!=null) {
ProfileStore p=(ProfileStore)appsContext.getProfileStore();
r=p.getProfile("PROFILE_VALUE_NAME");
}
else {
UtilFns.trace("Could not get apps context");
}
}
catch (Exception ex) {UtilFns.trace("Failed to get context" + ex.getMessage());}
if (r.toUpperCase().equals("Y")) {
/*Do stuff here*/
}
}/*checkMAndatoryAssign*/
