I have a customized group (Distribution Lists) in which we have groups and users. Our DistributionLists extends GroupList and DLResultSet extends ScrollableResultSet class. I am getting error while setting the scrollable result set. I see nothing in the logs.
DistributionLists.java
---------------------------------------------------------------------------------------------------------------------------------
protected void updateGuiForGroupName(ArgumentList args)
{
m_groupName = args.get("objectname");
if ((m_groupName != null) && (!m_groupName.equals("")))
{
setUpGroupObject();
Datagrid datagrid = (Datagrid)getControl("grouplistgrid");
setUpResultSet();
if (m_bInitialDisplay == true)
{
// datagrid.getDataProvider().setResultSet(m_groupResultSet, null); //<---working fine
datagrid.getDataProvider().setScrollableResultSet(m_groupResultSet);//<--- not working
m_bInitialDisplay = false;
setOptionPanel(true);
}
else
{
datagrid.getDataProvider().refresh(m_groupResultSet);
}
updateBreadCrumb(m_groupName);
}
}
private void setUpResultSet()
{
if (m_mode != null)
{
String constantForAllLink = getString("MSG_DISPLAY_ALL");
if (m_mode.equals("alluserorgroupmode"))
{
if (m_groupResultSet != null)
{
m_groupResultSet.close();
}
m_groupResultSet = new DLResultSet(m_groupObject, getDfSession(), m_filter, constantForAllLink, m_columnNames);
}
else if ((m_mode.equals("querymode")) || (m_mode.equals("searchmode")))
{
m_groupResultSet = new DLResultSet(m_groupObject, getDfSession(), m_filter, m_arg, constantForAllLink, m_columnNames);
}
}
}
--------------------------------------------------------------------------------------------------------------------------------------
DLResultSet.java
public DLResultSet(IDfGroup groupObject, IDfSession session, int displayMode, String constantForAllLink, String[] columnNames)
{
super(columnNames);
// super(groupObject, session, displayMode, constantForAllLink, columnNames);
m_groupName = null;
m_objectId = null;
m_dfcSession = null;
m_groupObject = null;
m_usersCollection = null;
m_groupsCollection = null;
m_nRow = -1;
m_collectionBeingProcessed = 0;
m_bPatternQueryMode = false;
m_filter = 0;
m_constantForAllLink = null;
m_currentObjectId = null;
m_currentDescription = null;
m_currentGroupClass = null;
if(constantForAllLink != null && constantForAllLink.length() > 0)
m_constantForAllLink = constantForAllLink;
else
m_constantForAllLink = "";
m_groupObject = groupObject;
m_dfcSession = session;
m_filter = displayMode;
/*
* Added new column "owner_name" in below array
*/
/*String columnNames[] = {
"name", "r_object_type", "r_object_id", "description", "owner_name", "navigatable", "notnavigatable", "icon_type"
};*/
m_owner_name = "";
m_columnNames = columnNames;
try
{
m_groupName = groupObject.getGroupName();
}
catch(DfException exp)
{
throw new WrapperRuntimeException(exp);
}
setUpCollections();
}
private void setUpCollections()
{
try
{
m_usersCollection = m_groupObject.getUsersNames();
m_groupsCollection = m_groupObject.getGroupsNames();
}
catch(DfException exp)
{
throw new WrapperRuntimeException(exp);
}
}