Hi experts,
I have been implementing Documentum Webtop 6.5 SP2 for my client. My requirement is setting custom document sorting order.
I am frustrated that the positions of header and column are unmatched after deploying my own DocList.class.
I have extended ObjectList.class and copied code snippet from DocList.class to my custom DocList class.
The below code snippets handle the issue "Second page is shown when access a folder" raised by others in the community.
And I added both query setting codes to onRender and onInit to make custom sorting support the filtered objectlist.
************************************
public void onInit(ArgumentList args){
super.onInit(args);
//Get dataprovider from control "doclist_grid", retrieve and modify the query, then store it as String newQuery
provider.setDfSession(session);
provider.setQuery(newQuery);
}
public void onRender(){
super.onRender();
//Filter Value: 0=Show Files and Folders, 1=Show Files (Options at top right corner in Webtop UI)
if (hasRendered || filterValue.equals("1")){
//Modify the query again and store it as String newQuery_2
provider.setDfSession(session);
provider.setQuery(newQuery_2);
}
if( ! (hasRendered==false && filterValue.equals("1"))){
provider.refresh();
}
hasRendered = true;
}
boolean hasRendered;
***********************************
I would much appreciate if you can provide a help. Thanks in advance.