Skip to Content
avatar image
Former Member

Table filter

Hi, I have created a filter on one of my fields in a table ui element in my view. I have also created a context attribute that I bind to the table element. I fill that context attribute with values so that the user can choose a value to filter on. In order to get the input field of the selection value open for input I am switching the filter function on /off. So far it's working. But my question is, when the user selects a value in the dropdown list, where should I create the action to handle the filter?

I suppose I have to add my own code that really filter the valus in my table? What is the method IF_WD_TABLE_METHOD_HNDL~APPLY_FILTER doing?

I found th component DEMO_TABLE but unfortunaltely I can not find the action FILTER anywhere, anyone that could help?

Thanks a lot, regards Lena

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • May 04, 2012 at 07:23 AM

    Hi,

    IF_WD_TABLE_METHOD_HNDL~APPLY_FILTER table utility functions r lik


    1. data-source must be bound to node without subnotes.

    2.Only static attributes may be attached to this node.

    3.The filter function does not work for hierarchical tables.

    here follow the below link for functionality of filter table

    http://help.sap.com/saphelp_nwes72/helpdata/en/56/b1e5f79e814d5e99d91272a4ac52d6/content.htm

    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/2d/390e422dfcde2ce10000000a1550b0/content.htm


    and as per my understanding there s no logic of filter action in webdynpro , you can write a action code according to your requirements using context element, and bind with node. u can also try with onLeadSelection option to execute the action.

    Also u can refer the following threads for better understanding

    http://scn.sap.com/thread/1757458

    http://scn.sap.com/thread/1766136

    http://scn.sap.com/thread/795805

    Hope its useful to u,

    Regards

    Jana



    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 06, 2012 at 03:50 AM

    Hi Lena

    If you put a DropDown UI in the table, you must use the action assigned to this DD.

    In the properties of this DD, there is an action called 'OnSelect'. Use this

    to create a new action. Each time the user selects an item

    you can find out what item he selects by probing the current

    element of the node this DD is attached to.

    regards

    yuval

    Add comment
    10|10000 characters needed characters exceeded