LOV(programatically created) issue on Advanced search Screen in OCO..
I have created a LOV on advanced search screen for Country Field programmatically by extendending the controller using the below code
i am able to access the particular rowlayout bean and code below is starting after that.
OARowLayoutBean CountryRowLayoutBean =
(OARowLayoutBean)RgtColTableLayoutBean.getIndexedChild(8);
if (pageContext.isLoggingEnabled(PROCEDURE))
pageContext.writeDiagnostics(this,
"CountryRowLayoutBean: " +
CountryRowLayoutBean,
PROCEDURE);
int CountryRowLytChldCount =
CountryRowLayoutBean.getIndexedChildCount();
if (pageContext.isLoggingEnabled(PROCEDURE))
pageContext.writeDiagnostics(this,
"CountryRowLytChldCount : " +
CountryRowLytChldCount,
PROCEDURE);
OAMessageTextInputBean CountryMsgTxt =
(OAMessageTextInputBean)CountryRowLayoutBean.getIndexedChild(2);
if (pageContext.isLoggingEnabled(PROCEDURE))
pageContext.writeDiagnostics(this,
"CountryMsgTxt : " +
CountryMsgTxt,
PROCEDURE);
CountryMsgTxt.setRendered(false);
OAMessageLovInputBean CountryLOV =
(OAMessageLovInputBean)createWebBean(pageContext,
LOV_TEXT, null,
MatchRuleAttrId); //MatchRuleAttrId - the fields are rendered through DQM so, this is the Id for the text input , same is taken as id for LOV, to enable search later.