on 06-04-2008 10:12 PM
Hi,
I was able to put filter on the table.
I create a toolbar button that initially displays text as "Filter On" and when i click on that filtering will be enabled.
But again when i click on the button i want to disable filtering
here is the code which i wrote
IWDTableColumn Column = (IWDTableColumn) view.getElement("Column") ;
Column.bindFilterValue("VoFilter.Airline");
IWDTableColumn Column2 = (IWDTableColumn) view.getElement("Column2") ;
Column2.bindFilterValue("VoFilter.city");
wdContext.currentContextElement().getTableFilter().filter(null,wdContext.nodeFilter_Flights(),
wdContext.nodeFlight_List(),
wdContext.nodeVoFilter());
IWDToolBarButton button = (IWDToolBarButton)view.getElement("ToolBarRightItems");
if(button.getText()!=null&&button.getText().equals("Filter On"))
button.setText("Filter Off");
else
if(button.getText()!=null&&button.getText().equals("Filter Off"))
{
button.setText("Filter On");
Column2.setFilterValue("");
Column.setFilterValue("");
}
Please let me know how to disable the filtering
To disable to the filter write following code in event handler of the button "Filter On"
wdThis.wdGet<OnFilterActionName>().setEnabled(false);
to enable the filter,
wdThis.wdGet<OnFilterActionName>().setEnabled(true);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.