Home » Developer & Programmer » JDeveloper, Java & XML » SetPrompt function of SortableHeader is not displaying the column header (OAF, JDeveloper9.0.3)
SetPrompt function of SortableHeader is not displaying the column header [message #457956] Wed, 26 May 2010 09:41
dineshkannappan
Messages: 1
Registered: May 2010
Location: India
Junior Member
Hi

I am populating values dynamically in Advance Table,I was not able to get the Column header in Advance Table even after setting the setPrompt function in Sortable Header. Can any one help me in resolving this,
I had copied the code below

OAAdvancedTableBean tableBean = (OAAdvancedTableBean)webBean.findChildRecursive("SearchResultRN");
int i=0;
for( ViewRowImpl viewRow = (ViewRowImpl)view1.first();viewRow != null;viewRow= (ViewRowImpl)view1.next())
{

String selColName=viewRow.getDbColumnName();
OAColumnBean colBean = (OAColumnBean) createWebBean(pageContext,COLUMN_BEAN,null,"col"+i);
tableBean.addIndexedChild(colBean);
OAMessageStyledTextBean textBean = (OAMessageStyledTextBean) createWebBean(pageContext,MESSAGE_STYLED_TEXT_BEAN,null ,"textBean"+i);

OAColumnGroupBean colgrpBean=(OAColumnGroupBean) createWebBean(pageContext,COLUMN_GROUP_BEAN,null,"colgrp"+i);
OASortableHeaderBean sortBean = (OASortableHeaderBean) createWebBean(pageContext,SORTABLE_HEADER_BEAN,null,"sortBean"+i);

colgrpBean.setColumnHeader(sortBean);
sortBean.setPrompt(viewRow.getMeaning());
textBean.setViewUsageName("ResultVO1");
textBean.setViewAttributeName(viewRow.getDbColumnName());
colgrpBean.addIndexedChild(colBean);
colBean.addIndexedChild(textBean);
colBean.addIndexedChild(sortBean);
colBean.setRendered(true);
i++;
}


Thanks
Dinesh K
Previous Topic: pls help!! for inserting date in oracle database.
Next Topic: Javamail - Attaching an embedded email
Goto Forum:
  


Current Time: Wed Jul 17 17:37:49 CDT 2019