How to set values in SSHRParams in a custom controller
Hi,
I'm trying to get person/assignment etc related values in a custom controller using an example from oracle seeded controller, SSVehicleUpdateCO in oracle.apps.pqp.selfservice.vehiclemileage.webui.
the code in seeded controller is
OAApplicationModule localOAApplicationModule = paramOAPageContext.getApplicationModule(paramOAWebBean);SSHRParams localSSHRParams = (SSHRParams)localOAApplicationModule.invokeMethod("getGlobalValues");String str1 = localSSHRParams.getPersonId();String str2 = localSSHRParams.getItemType();String str3 = localSSHRParams.getItemKey();String str4 = localSSHRParams.getActivityId();String str5 = localSSHRParams.getAssignmentId();String str6 = localSSHRParams.getEffectiveDate();String str7 = localSSHRParams.getLoginPersonId();public SSHRParams getGlobalValues() { SSHRParams localSSHRParams = new SSHRParams(this); return localSSHRParams; }
When I replicate above in a custom controller, I get null values when printing the output of any of the string variables, i.e. str1, str2 etc. I believe is because I am missing the code which is used to 'set' these values.