Hello,
I have to extend an oaf page to add extra field for more information on the page. The data which I require to get more information is stored as form value in nested region. Code from the PG layer is below.
<oa:formValue rendered="false" prompt="Person ID" dataType="NUMBER" viewName="TerminationDetailsVO" viewAttr="PersonId" shortDesc="Person ID" id="PerPersonId" adminCustomizable="false" promptTranslationExpansion="100%" user:akAttributeCode="PER_PERSON_ID" user:akAttributeApplicationId="800"/>
I tried using below code in ProcessRequest but couldn't read value of personId. All i need is to be able to read value of PersonId
try{
OAFormValueBean personIdBean = (OAFormValueBean)oawebbean.findChildRecursive("PerPersonId");
String strFormValue = (String)personIdBean.getValue(oapagecontext);
oapagecontext.writeDiagnostics(this,"personId from strFormValue"+strFormValue,1);
} catch(Exception e){
oapagecontext.writeDiagnostics(this,"error while getting value from formvalue",1);
}
or
String v_emp =(String)oapagecontext.getSessionValue("PerPersonId");
Also, is there a way to implement changes without bouncing the server?
Any lead is greatly appreciated.
-Thanks,