cancel
Showing results for 
Search instead for 
Did you mean: 

Table Filtering in NWDS 7.3

Former Member
0 Kudos

Gurus ,

I am looking for a tutorial on table filtering in NWDS 7.3 .

Can someone provide some pointers .

TIA ,

Himanshu 

Accepted Solutions (0)

Answers (2)

Answers (2)

vijay_kumar49
Active Contributor
0 Kudos

Please go through the these steps

Create one context attribute "TableFilter" directly under Root context as below:

Change the type of the "TableFilter" attribute to java class TableFilter. 

Go to the properties of the  table columns: Bind the Attr1 of FilterTestNode to FilterValue property of the Column1 and Bind the Attr2 of FilterTestNode to FilterValue property of the Column2.

In the actions tab create one action as "Filter" and write the below code in that action:

  1. wdContext.currentContextElement().getTableFilter().filter(wdContext.nodeSourceTestNode(),wdContext.nodeTestNode());

In wdDoModifyView() method write the below code:

if (firstTime) {

//Here in the below line of code, "Table" is the ID of the UI element table.

IWDTable tableFilter = (IWDTable) view.getElement("Table");

  1. wdContext.currentContextElement().setTableFilter( new TableFilter(tableFilter, wdThis.wdGetFilterAction(), wdContext.nodeSourceTestNode(), null));

}

Table Filter.JAVA : http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=341542375

And check this link

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60d5b593-ba83-2910-28a9-a7a7c7f59...

Hope this helps!!

Regards

Vijay Kalluri

Sharathmg
Active Contributor
0 Kudos

Table filter is feature which is supported by WDJ but you have to implement.

This document should solve your requirement:http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0cf0997-2e08-2d10-b08e-964a2c...

Regards,

Sharath