Current Position:Home > Unable to default a value in LOV in Expense Allocations page of iExpenses

Unable to default a value in LOV in Expense Allocations page of iExpenses

Update:10-11Source: network consolidation
Hi friends,
I am trying to default a value in a Lov (Which is a one of the segments in KFF).
This Lov is in a HGrid region of "expense allocations page" of iExpenses.
But i am unable to default that.
I am using the below code.
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OADBTransaction dbTran = am.getOADBTransaction();
OAApplicationModule am1 = pageContext.getRootApplicationModule();
dbTran.writeDiagnostics(this,"tnv AM, AM1 : "+am+", "+am1, 2);
// AllocationsHeaderVO
OAViewObject vo = (OAViewObject)am.findViewObject("AllocationsHeaderVO");// AllocationsHeaderVO
dbTran.writeDiagnostics(this,"tnv AllocationsHeaderVO : "+vo,2);
Row row = vo.getCurrentRow();
dbTran.writeDiagnostics(this,"tnv AllocationsHeaderVO row: "+row,2);
String arr[]= row.getAttributeNames();
Object arrVal[] = row.getAttributeValues();
for (int i = 0; i <arr.length ; i++)
dbTran.writeDiagnostics(this,"tnv arr[i] : "+arr,2);
dbTran.writeDiagnostics(this,"tnv arrVal[i] : "+arrVal[i].toString(),2);
}catch(Exception e)
dbTran.writeDiagnostics(this,"tnv null Exp arrVal[i] : "+i,2);
OAMessageLovInputBean busAreaSeg2 = (OAMessageLovInputBean)webBean.findChildRecursive("KffSEGMENT2");
OAMessageStyledTextBean busAreaSeg2Desc = (OAMessageStyledTextBean)webBean.findChildRecursive("KffSEGMENT2Desc");
busAreaSeg2.setText("100"); // A -- I am able to default this value, but user is having no option to change the value, if i go with this.
busAreaSeg2.setText(pageContext, "100"); // B -- Unable to default with this....
busAreaSeg2.setValue(pageContext, "100"); // C -- Unable to default with this...
Could somebody please help me out, in defaulting this.
Thanks in advance,

The Best Answer

Hi Guys,
I am trying to Default Task LOV field based on the Project selected in Project LOV field, But i am not able to get the handle for Task LOV field in iExpenses of ExpenseAllocationDetailPG.
Please provide me some hint to achieve the same.
Thanks in advance.