cancel
Showing results for 
Search instead for 
Did you mean: 

TableFilter for Dynamic Table creating blank entry

former_member220853
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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,

former_member220853
Participant
0 Kudos

Thanks for reply

I have implemented TableFilter but issue comes only on leadSelect rows I believe

what ever row we select that gets disappeared when we click on show filter

Answers (1)

Answers (1)

Former Member
0 Kudos

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.