on 08-12-2010 5:29 AM
Dear All
I have a dynamic table I have given a context node as a data source and it executes a query and populates itself based on the resultset of query this node contains no of columns and rows
When I created a TableFilter
I used IWDTableColumn from the current view
and looped though the context elements and binded the values of attributes of each context element to this column inside a loop
But when I run the application By default first row comes selected for the table and when I click on showFilter Button the contents of row that is selected disappear
If i move selection to any other row and click on showfilter again contewnts of selected row disappear.
Not sure what is wrong but if someone can give some inputs,leads I will highly appreciate it
Here is snippet of code
if(value.equalsIgnoreCase("Show Filter"))
{
ttb.setText("Hide Filter");
ttb.setTooltip("Hide Filter");
for (int columnIndex = 0;
columnIndex < wdContext.nodeResultSetMetaData().size();
columnIndex++) {
IWDTableColumn column = (IWDTableColumn)view.getElement("TableColumn" + columnIndex);
column.bindFilterValue( wdContext.nodeViewResultSet().getNodeInfo().getAttribute(
wdContext.nodeResultSetMetaData()
.getResultSetMetaDataElementAt(columnIndex)
.getColumnName()));
Edited by: Gaurav Singh on Aug 12, 2010 6:29 AM
Hi Gaurav,
if table filtering is what youre trying to accomplish this might help.
http://wiki.sdn.sap.com/wiki/display/WDJava/GenericTableFilter+Code
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am also implementing the TableFilter for Dynamic Table and not able to get it working let me know if you happen to get this working.
Thanks
Ragu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.