OnFilter Table,

Hey Guys,
has anybody a Tutorial, how can I use the onFilter Event (for filtering a Table) in Webdynpro?
Thanks Stefan

Hi Stefan,
Create one attribute in Attributes tab.
say  TABLE_CONTROL  typ ref to  IF_WD_TABLE_METHOD_HNDL.
For Table we have event ONFILTER .. create one action for this..
wd_this->table_control->apply_filter( ).
In WDDOMODIFYVIEW write this code..
DATA wd_table TYPE REF TO cl_wd_table.
IF ( first_time = abap_true ).
wd_table ?= view->get_element( 'TAB_FLIGHT_DETAILS' ).
wd_this->m_table_handler ?= wd_table->_method_handler.
wd_this->m_table_handler->set_key_attribute_name( 'PERNR' ). // any key field name
ENDIF.
also check this..
OnFilter event in Table UI element
Cheers,
Kris.

Similar Messages

  • OnFilter in Table UI element.

    Hi,
    I want a Filter functionality in the table ui element. I tried with 'SALV_WD_TABLE' . But it need to click on Filter Hyperlink and then the Filter icon get enabled. My requirement is to display the Filter icon as default it the output.
    Also i want to know the coding for filter event.
    Regards,
    Ramanan

    Hi,
    For the table UI element, you need to define an event handler for onFilter event of the table. Here you have to manually write the code for filtering the values.
    Further, you need to define a context node of cardinality 1..1, selection 0..1. Each attribute of that node must coincide with the data elements of each column that you want to attach the filter to. Then you need to bind the corresponding attributes of the context node to the filterValue property of the table columns for which you want to filter.
    Hope this helps,
    Regards
    Wenonah

  • OnFilter event in Table UI element

    Hi,
    I need the coding for onfilter event in table ui element. And also i need step by step procedure for 'How to make the filter function possible in Table display'.
    ie. How many context nodes to be created, i have mapped on context node with bapi and bind it with a Table ui element.I need to display the filter in that table .Do i need to create on more with same structure  for onfilter or i need two context nodes to be created.
    Plz clear me.
    I have place the filter icon in Table UI Element. Also i binded the Filter context node Attributes with each column in Table ui element.  I need to make that icon function properly.
    Edited by: Ramanan Panchabakesan on Mar 25, 2008 6:51 AM
    Edited by: Julius Bussche on Aug 16, 2010 11:57 AM
    Forbidden word removed from title...

    hi,
    on clicking the filter button i got this error
    What has happened?
    The URL http://<server>/sap/bc/webdynpro/sap/ztabletestapp/ was not called due to an error.
    Note
    The following error text was processed in the system KCS : Conversion of type g to type l not supported.*
    The error occurred on the application server kaar-server9_KCS_00 and in the work process 1 .*
    The termination type was: RABAX_STATE*
    The ABAP call stack was:*
          Method: IFWDR_INTERNAL_API~ASSIGN_UNTYPED_REFERENCE of program SAPLWDR_RG_PROXY_FACTORY
          Method: ONACTIONFILTER of program /1BCWDY/EPRPAVSQP7YFCH7L2M4F==CP
          Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/EPRPAVSQP7YFCH7L2M4F==CP
          Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
          Method: IF_WDR_ACTION~FIRE of program CL_WDR_ACTION=================CP
          Method: DO_HANDLE_ACTION_EVENT of program CL_WDR_WINDOW_PHASE_MODEL=====CP
          Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP
          Method: PROCESS_REQUEST of program CL_WDR_WINDOW=================CP
          Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
          Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Edited by: Ramanan Panchabakesan on Mar 25, 2008 11:11 AM

  • Logic regarding EVENTS OnFilter and OnLeadSelect for table ui element

    provide me logic regarding EVENTS OnFilter and OnLeadSelect for table ui element for webdynpro abap application.

    OnLeadSelect - What kind of logic do you want?  There are many different things that you could do inthe OnLeadSelect
    onFilter- Generally you use IF_WD_TABLE_METHOD_HNDL~APPLY_FILTER  to perform the filter operation.
    In the onFilter itself you probably just have one line of code:
    wd_this->table_method_hndl->apply_filter( ).
    In your WDDOMODIFYVIEW you probably have this code to capture the table_method_hndl object:
    if first_time = abap_true.
      * Get reference of the table view element
      l_table ?= view->get_element( 'TABLE' ).
    * Get reference to the Filter & Sorting API
      wd_this->table_method_hndl ?= l_table->_method_handler.
    endif.

  • Problem with MessageArea and Table

    Hello all,
    i have a form with a Table and MessageArea on it. If the user input something in the Table and click Save, all fields will be checked and the MessageArea shows the errors, in case of any errors.
    If I click on one of the listed messages, I will see the Tooltip near the field I made mistake.
    The problem is, if I input some wrong data into the table and then using navigation buttons on the table navigate to the end of the table and then click Save, I will see Error Messages in the MessageArea, but if I click on the message, nothing happens and I don't see any red fields and don't know where was wrong input. So I have to navigate on table and search for this field.
    How can I override OnAction method of the MessageArea? So, if someone click on an error-message of the MessageArea, I can navigate the user to the field with an error (setLeadSelection(i)) and the user will see, where the input was wrong.
    Can I override the Navigation buttons of the Table? In the properties I can define only onFilter onLeadSelect.
    Thanks in advance.

    Hi,
    I think you can use reportInvalidContextAttributeException() method on IWDMessageManager.
    Ex :wdComponentAPI.getMessageManager().reportInvalidContextAttributeException()
    Re: tutorial ErrorBehavior method from tutorial is undefined
    Regards, Anilkumar
    Message was edited by:
            Anilkumar Vippagunta

  • How to use a FILTER in a normal table in ABAP WEB DYNPRO

    Hi Experts,
    I need to Filter my table in UI using the 'onFilter' event,
    BUT I want the first row of the table to be my INPUTS  to do the filtering - JUST LIKE IN ALV TABLE,
    since i dont want to use an ALV table, i want the same to be done in a transparent table...

    Dear pramodh,
    Here u can achieve filter option in transparent table by creating a button(Toggle) in table.
    1.Now you need to apply filter in OnToggle event.
       wd_this->table_control->apply_filter( ).
    2.when the Filter button is pressed  IS_FILTER_ON attribute will turn ON and FILTER will be set.
       And Automatically the First row is set for INPUTS.
    The Following Code is required to get Handler for Table and also to SET FILTER.
    method WDDOMODIFYVIEW .
        DATA: wd_table TYPE REF TO cl_wd_table,
              w_is_filter_on TYPE wdy_boolean.
        wd_context->get_attribute( EXPORTING name = 'IS_FILTER_ON'
                                   IMPORTING value = w_is_filter_on ).
        wd_table ?= view->get_element(  '<give ur table ID>' ).
        wd_this->table_control ?= wd_table->_method_handler.
        IF w_is_filter_on = abap_true.
          wd_table->set_on_filter( 'FILTER' ).
        else.
          wd_table->set_on_filter( '' ).
        ENDIF.
    endmethod.
    I believe u know about Table Handler. And i can help if u need.
    Thanks & Regards,
    Rakesh Vanamala.

  • Action &OBJECT_ID& does not exist - when Filtering Table

    Hey Everyone,
                             I am trying to implement filtering on a table (not alv).. i have followed the example in DEMO_TABLE.
    - have put the method in WDDOMODIFYVIEW, bound the filtervalue of each column, and implememented a toggle button to show and hide filter row and gave it a filtering function.. - basically exactly like DEMO_TABLE.
    but, when i enter a filter value.. i get this error.
    The following error text was processed in the system LXA : Action &OBJECT_ID& does not exist
    The error occurred on the application server vmsaple07_LXA_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WDR_RR_CONTROLLER~GET_ACTION of program SAPLWDR_RUNTIME_REPOSITORY
    Method: GET_ACTION_INTERNAL of program CL_WDR_CONTROLLER=============CP
    Also, something else thats not right is.. if i put an action under ONFILTER of the table.. The filter row appears when i am on Workbench... BUT when i test the application on the browser, the filter row doesnt appear!.. it did appear once, but its not appearing anymore.
    Thanks...

    hey, i figured it out.. My problem was in this part of WDDOMODIFYVIEW...
    Set or cancel the table's filter action
    IF l_is_filter_on = abap_true.
    l_table->set_on_filter( 'FILTER' ).
    ELSE.
    l_table->set_on_filter( '' ).
    ENDIF.
    You must pass the name of filtering action in the above code.. Just create an action(like below), and pass the action name to the - l_table->set_on_filter( 'FILTER' ) - in WDDOMODIFYVIEW.
    method ONACTIONFILTER.
    wd_this->table_method_hndl->apply_filter( ).
    endmethod.
    Edited by: imatari on Jul 24, 2010 7:25 PM

  • Unable to add Action for table - throwing Fatal error while rendering the table after adding

    Hi,
    I am not able to add action to the table i created.
    when i click on events and then Create Action for "onFilter" event, it is giving me Internal Error. The message details is:
    eclipse.buildId=@qualifier@
    java.version=1.6.0_45
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en
    Command-line arguments:  -os win32 -ws win32 -arch x86 -data C:\NWDS\Workspace
    Error
    Thu Jul 17 11:17:27 IST 2014
    Internal Error
       Plug-In Name: Web Dynpro HTML Rendering
       Internal Error  : com.sap.ide.webdynpro.rendering.html
       Class      : com.sap.ide.webdynpro.viewdesigner.ur.RenderingService
       Method     : renderDelta
       Message    : java.lang.RuntimeException: nullFatal rendering error at control com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.TableAdapter [] and renderer com.sap.tc.ls.renderer.ie6.LSSapTableRenderer. Please contact the developer of the renderer. com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.TableAdapter@1376233Fatal rendering error at control com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.FlowLayoutAdapter [] and renderer com.sap.tc.ls.renderer.ie6.LSFlowLayoutRenderer. Please contact the developer of the renderer. com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.FlowLayoutAdapter@1102ae6Fatal rendering error at control com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.GroupAdapter [] and renderer com.sap.tc.ls.renderer.ie6.LSGroupRenderer. Please contact the developer of the renderer. com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.GroupAdapter@70815bFatal rendering error at control com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.FlowLayoutAdapter [] and renderer com.sap.tc.ls.renderer.ie6.LSFlowLayoutRenderer. Please contact the developer of the renderer. com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.FlowLayoutAdapter@3cb708Fatal rendering error at control com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.ScrollContainerAdapter [] and renderer com.sap.tc.ls.renderer.ie6.LSScrollContainerRenderer. Please contact the developer of the renderer. com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.ScrollContainerAdapter@14a4b5Fatal rendering error at control com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.FlowLayoutAdapter [] and renderer com.sap.tc.ls.renderer.ie6.LSFlowLayoutRenderer. Please contact the developer of the renderer. com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.FlowLayoutAdapter@14983d6Fatal rendering error at control com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.ScrollContainerAdapter [] and renderer com.sap.tc.ls.renderer.ie6.LSScrollContainerRenderer. Please contact the developer of the renderer. com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.ScrollContainerAdapter@16e8151
       Exception  : java.lang.RuntimeException: java.lang.RuntimeException: nullFatal rendering error at control com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.TableAdapter [] and renderer com.sap.tc.ls.renderer.ie6.LSSapTableRenderer. Please contact the developer of the renderer. com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.TableAdapter@1376233Fatal rendering error at control com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.FlowLayoutAdapter [] and renderer com.sap.tc.ls.renderer.ie6.LSFlowLayoutRenderer. Please contact the developer of the renderer. com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.FlowLayoutAdapter@1102ae6Fatal rendering error at control com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.GroupAdapter [] and renderer com.sap.tc.ls.renderer.ie6.LSGroupRenderer. Please contact the developer of the renderer. com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.GroupAdapter@70815bFatal rendering error at control com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.FlowLayoutAdapter [] and renderer com.sap.tc.ls.renderer.ie6.LSFlowLayoutRenderer. Please contact the developer of the renderer. com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.FlowLayoutAdapter@3cb708Fatal rendering error at control com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.ScrollContainerAdapter [] and renderer com.sap.tc.ls.renderer.ie6.LSScrollContainerRenderer. Please contact the developer of the renderer. com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.ScrollContainerAdapter@14a4b5Fatal rendering error at control com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.FlowLayoutAdapter [] and renderer com.sap.tc.ls.renderer.ie6.LSFlowLayoutRenderer. Please contact the developer of the renderer. com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.FlowLayoutAdapter@14983d6Fatal rendering error at control com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.ScrollContainerAdapter [] and renderer com.sap.tc.ls.renderer.ie6.LSScrollContainerRenderer. Please contact the developer of the renderer. com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.ScrollContainerAdapter@16e8151
          [Error: com.sap.ide.tools.services.ui.dialog.DialogService  Thread[main,6,main]]
    The complete error details is also attached with the message.
    After creating the action, the table looks like below:
    Can someone help me on fixing this issue.
    Thanks,
    Abhishek.

    Its a rendering issue with the NWDS/IDE.
    Try, close and re-open for fix it. If it still persists, uninstall NWDS and re-install the right version of NWDS w.r.t the Portal server.
    Regards,
    Sharath

  • WD4A table row unselectable

    Hi ,
    I have developed a WD4A application comprising 3 views. 2 views provide overview screens to 2 different groups of users where they can select the learning forms based on various selection criteria. The third view is to actually show the details of the selected form.
    I have designed one function module to be used by both the overview screens. The function mosule takes the filters via an input structure and returns a table as output. Each view has a table control which is bound to the output table and will show different combinations of columns which are defined at design time itself. So I have 2 table controls in 2 views which are bound to the same context node. The issue is that in one of the views, I am able to select table rows via lead selection, but in the other view the lead selection is not possible. can anyone help?
    Context node details:
    Cardinality     0..n
    Selection     0..n
    Initialization Lead Selection     X
    Singleton     X
    Regds
    Thiru

    The properties for both the tables are the same
    First View:
    ID     TABLE
    accessibilityDescription     
    dataSource     LEARNERVIEW.Z_LMS_INBOX_GET_DATA.EXPORTING_1.P_EXDAT
    design     standard
    emptyTableText     
    enabled     1
    firstActualRow     0
    firstVisibleRow     0
    firstVisibleScrollableCol     
    fixedTableLayout     0
    footerVisible     1
    gridMode     both
    legendId     
    readOnly     0
    rowCount     -1
    rowSelectable     1
    scrollableColCount     -1
    selectedPopin     
    selectionChangeBehaviour     auto
    selectionMode     auto
    tooltip     
    visible     Visible
    visibleRowCount     5
    width     700px
    Events     
    onFilter     
    onLeadSelect     FORM_SELECT
    onScroll     
    onSort     
    Layout Data (FlowData)     
    cellDesign     padless
    vGutter     none
    Second View:
    ID     TABLE
    accessibilityDescription     
    dataSource     APPROVERVIEW.Z_LMS_INBOX_GET_DATA.EXPORTING_1.P_EXDAT
    design     standard
    emptyTableText     
    enabled     1
    firstActualRow     0
    firstVisibleRow     0
    firstVisibleScrollableCol     
    fixedTableLayout     0
    footerVisible     1
    gridMode     both
    legendId     
    readOnly     0
    rowCount     -1
    rowSelectable     1
    scrollableColCount     -1
    selectedPopin     
    selectionChangeBehaviour     auto
    selectionMode     auto
    tooltip     
    visible     Visible
    visibleRowCount     5
    width     700px
    Events     
    onFilter     
    onLeadSelect     FORM_SELECT
    onScroll     
    onSort     
    Layout Data (FlowData)     
    cellDesign     padless
    vGutter     none

  • How to input multiple records in tables in web dynpro

    Hi
    In web dynpro table I am able to input data in first row only. How to input data in other rows.
    Thanks,
    Saurabh

    hi, okay..
    I summarize in 3 aspects:
    1.You want make the Table row play like "Input field"
    The solution is :
    In the table column, you set the cell editor as "Input field"
    2.You want to use the FILTER function
    The solution is :
    set Filter Value property and realize "OnFilter" event...
    3.You want to add Ready for Input rows to your table
    The solution is :
    You should make use of the Context Node bound to the table. The EXAMPLE coding:
      DATA lo_nd_flights TYPE REF TO if_wd_context_node.
      DATA lo_el_flights TYPE REF TO if_wd_context_element.
    * append the element with initial attribute value
      lo_nd_flights = wd_context->get_child_node( name = wd_this->wdctx_flights ).
      lo_el_flights = lo_nd_flights->CREATE_ELEMENT( ).
    * bind the newly created element
      lo_nd_flights->BIND_ELEMENT( new_item             = lo_el_flights
                                   set_initial_elements = abap_false ).
    4.You want to set N rows ready for input initially
    The solution is :
    Set the Row visible property..
    Best wishes.

  • Webdynpro tables

    In a View, I have 2 Web Dynpro Tables, lets say Entity Table and Lending Unit Table. An Entity has zero or more Lending Units and each Lending Unit belongs to exactly one Entity. In short, a 1:M relationship. Eg. Entity A has Lending units 1,2,3. Entity B has Lending Units 4,5,6.
    On first load of the View, the Entity Table will be populated. When the user selects an entry (say Entity A)in the Entity Table, it will fire up onLeadSelect event (which I provided implementation code) to populate the Lending Unit Table with lending units of the selected entity (eg 1,2,3). When I selected another entry in the Entity Table (say selecting Entity B), using Ctrl + Left Mouse Click (to multi-select entities), it does not fire up onLeadSelect event. My intention is to populate the Lending Unit Table with lending units from the 2nd selected entities also (ie. 4,5,6). I understand that it will not fire up the event as the second selection of the entity is not the lead selection.
    Since the Web Dynpro Table only supports 2 events, onFilter (which is not applicable) and onLeadSelect, is there any workaround for this scenario?

    Well, you can try to exploit one WD feature available since SP7. WD has own specific postbacks (request-response roundtrip) these are not associated with any action event handler. These postbacks are invoked for example on table multi-selection events.
    The only place where you can hook into this sequence is calculated attribute getter (not sure for setter).
    So, try the following:
    1. Create singleton sub-node AllLendings under node Entity.
    2. Write a supply function for AllLendings these collect all lendings from parent node (just traverse parentElement.node() and check all elements with flag isMultiselected or with index equals to lead selection)
    3. Create calculated read-only attribute in context directly under wdContext.
    4. In getter function for your attribute write wdContext.nodeAllLendings.invalidate(); return blah-blah-blah;
    5. Bind this attribute to TextView UI element (I guess you can make it visibility BLANK but not NONE, otherwise getter will not be invoked)
    6. Build, deploy, try.
    I do not try exactly this solution myself, but I guess it should work -- we have used this WD feature for tracking "dirty" state of node elements, what is in fact very similar.
    Regards,
    VS

  • Error in Table view

    Hi All,
    I am working in MINISAP training system when i am using table view in any bsp application i got the following errors...
    1. <HTMLB:tableView>:  (Attribute=columnCount)  The attribute does not exist. (Compile time validation error).          
    2. Tag "tableView" contains invalid attribute values.
    How can i solve these errors..? Please guide me...

    i changed into caps but still i got same errors.. whenever i used tableview in Any  Bsp Application i got the same errors what is the reason behind in it..?
    Note: Working in Minisap system
    Here is my another code, again facing same errors
    1.<HTMLB:tableView>:  (Attribute=columnCount)  The attribute does not exist. (Compile time validation error).
    2.Tag "tableView" contains invalid attribute values.          
    <htmlb:tableView id = "table"
                     table = "<%= it_disptab %>"
                     design = "TRANSPARENT"
                     width = "100%"
                     headerVisible = "TRUE"
                     filter = "SERVER"
                     onFilter = "MyFilter"
                     visibleRowCount = "20"
                     allRowsEditable = "TRUE"
                     fillUpEmptyRows = "TRUE"
                     tableLayout = "AUTO"
                     headerText = "<%= tabname %>"
                     selectionMode = "LINEEDIT"
                     onRowSelection = "MyRowSelection">
    </htmlb:tableView>
    Pls help me in this out...

  • Fill a table with data coming from an RFC

    Hello everyone:
    I've followed the Weblog "How many lines of java code did i write for a simple Web Dynpro?"
    /people/durairaj.athavanraja/blog/2004/10/17/how-many-lines-of-java-code-did-i-write-for-a-simple-web-dynpro
    I've called an RFC and created a table with data coming from it (which is also a table). My question is, if in this table there's a field named "UserType" there are two possible values for this field:
    "userA"
    "userB"
    How can I get the table only show me the "userA" registers? The RFC does return all of the users, but when filling the table, can I put an if-else somewhere on my code?
    Thanks a lot
    Alejandro

    Hi Alejandro,
    Referring to the link provided "The logic of the filter process is not implemented in Web Dynpro. The application developer must implement the action to be executed."
    We would have to implement the action onFilter in the controller implementation. Ideally, we fill the data retrieved from backend into a List (java.util.List) (this could be done on init of view) and then subset the list after meeting the criteria in the action handler(say
    onActionFilterData(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent).
    Having done this, you may bind the output list back to the node (shown in table)
    Regards,
    Chaitanya

  • How to filter a table?

    Hi ALL,
    I have a table with four columns. One out of them is a unique column. I want to filter the table for 1000 of records w.r.t. the unique column.
    Code snippets will be appreciated.
    Regards
    DK

    Hi,
    create one context value attribute with String datatype for ex. Filter_Value. And bind this attribute to the filterValue property of the table column.
    write the following code in OnFilter event of the table.
    String filterName = wdContext.currentContextElement().getFilter_Value();
    if(filterName!=null && !filterName.equals(""))
    // Here, call the method (or) write the code which is used to load the table.
    IPrivate<View>.I<Table_Node> myNode = wdContext.node<Table_Node>();
    int n = myNode.size();
    HashMap filterMap=new HashMap();
    int val=0;
    for (int i = n - 1; i >= 0; i--)
    String value = (String) myNode.get<Table_Node>ElementAt(i).get<Attribute_Name>();
    if (value.toLowerCase().startsWith(filterName.toLowerCase()))
    IPrivate<View>.I<Table_Node>Element myElement = myNode.get<Table_Node>ElementAt(i);
    filterMap.put("Elem" + val,newElement);
    val++;
    myNode.invalidate();
    for(int j=0;j<val;j++)
    myNode.addElement((IPrivate<View>.I<Table_Node>Element)filterMap.get("Elem" +j));
    regards
    karthik

  • Filter table tree

    Hello,
    I've been playing with trees in WDA and i've come across some problems.
    I must be able to display a tree based on a recursive node. So I use a table with a mastercolumn of type TreeByNestingTableColumn.
    all good all happy.
    But I also want to be able to filter the darn thing.
    So I implement the OnFilter action of the table in which I dispatch to the table method handler, create the filtering node and set the filtering values.
    In any normal plain table this works like a charm. I believe it even works in a TreeByKeyTableColumn case [update: it doesn't! Same problem there], but in my particular case with the recursive node, the filtering dumps on an assertion.
    What happens is, that during the filtering, the fixed_row_count (actually at that point it's called row_count) is set to the amount of filtered lines.
    Later on, during rendering a check is done that the fixed_row_count must be set to -1 (sap standard) because apparently a tree isn't allowed to have fixed rows. the whole thing dumps at that point (assert something = -1)
    Is this intended behaviour from SAP standard, or am I missing a step?
    Maybe I need to call an extra method or something...?
    and on a sidenote, is there a standard function or method that I can use to export the table contents to excel?
    Thanks in advance,
    Tom
    Edited by: Tom Van Doorslaer on Sep 1, 2008 5:43 PM

    Dump extract:
    What happened?
        In the running application program, the ASSERT statement recognize
        situation that should not have occurred.
        The runtime error was triggered for one of these reasons:
        - For the checkpoint group specified with the ASSERT statement, th
          activation mode is set to "abort".
        - Via a system variant, the activation mode is globally set to "ab
          for checkpoint groups in this system.
        - The activation mode is set to "abort" on program level.
        - The ASSERT statement is not assigned to any checkpoint group.
    Error analysis
        The following checkpoint group was used: "No checkpoint group specified
        If in the ASSERT statement the addition FIELDS was used, you can find
        the content of the first 8 specified fields in the following overview:
        " (not used) "
        " (not used) "
    code extract:
       60
       61     when cl_wd_tree_by_nst_table_col=>cid_tree_by_nst_table_col.
       62       nst_table_col ?= m_wd_row_arrangement.
       63
       64       " TableTreeByNesting does not accept a fixed row count
    >       assert m_fixed_row_count = c_no_fixed_row_count.
       66
       67       concatenate m_data_source_path_name '.' into match_path.
       68       len = strlen( match_path ).
    Active Calls/Events
    No.   Ty.          Program                             Include                             Line
          Name
       19 METHOD       CL_WDR_TABLE_DATA_PROVIDER====CP    CL_WDR_TABLE_DATA_PROVIDER====CM001    6
          CL_WDR_TABLE_DATA_PROVIDER=>GET_TABLE_DATA
       18 METHOD       CL_WDR_TABLE_DATA_PROVIDER====CP    CL_WDR_TABLE_DATA_PROVIDER====CM008    1
          CL_WDR_TABLE_DATA_PROVIDER=>GET_VISIBLE_TABLE_DATA
       17 METHOD       /1WDA/L3STANDARD==============CP    /1WDA/L3STANDARD==============CCIMP   89
          CL_TABLE=>IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT
       16 METHOD       /1WDA/L8STANDARD==============CP    /1WDA/L8STANDARD==============CCIMP   34
          CL_FLOW_LAYOUT_ITEM=>IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT
       15 METHOD       /1WDA/L8STANDARD==============CP    /1WDA/L8STANDARD==============CCIMP   16
          CL_FLOW_LAYOUT=>IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT
       14 METHOD       /1WDA/L7STANDARD==============CP    /1WDA/L7STANDARD==============CCIMP   58
          CL_TRANSPARENT_CONTAINER=>IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT
       13 METHOD       CL_WDR_INTERNAL_WINDOW_ADAPTERCP    CL_WDR_INTERNAL_WINDOW_ADAPTERCM007    6
          CL_WDR_INTERNAL_WINDOW_ADAPTER=>CONV_VIEW_INTO_VE_ADAPTER_TREE
    ME->M_FIXED_ROW_COUNT
        1
        0000
        0001
    ME->C_NO_FIXED_ROW_COUNT
        -1
        FFFF
        FFFF
    Edited by: Tom Van Doorslaer on Sep 2, 2008 8:34 AM
    Edited by: Tom Van Doorslaer on Sep 2, 2008 8:35 AM

Maybe you are looking for

  • He email server didn't recognize your username/password combination.

    Hello I am getting an error message when I am trying to send a photo in iphoto..i just installed it but I am not sure what it means by the above error message..thank you

  • 1.86 MBP QUESTIONS

    I just got a great deal on a MBP but there are some issues I would like to get some advice on. 1) The computer was fine for the first ~8 hours of being on but now it seems that the right speaker makes some sort of hiss and when sounds are played it i

  • Master Detail pages php/mysql  Links

    I have a master/detail page setup that is working properly. I am trying ot add a Link to only a few of the detaill pages but not to show up on others. I tried to set just do the html in a text field but It owuld not come out as link. It did underline

  • CS6 Video length ERROR!!!

    Major problem... I have a H264 clip which the QT player says is 32.05sec, AE CS5 says it's 32.05 sec, FCP says it's 32.05 sec... BUT CS6 says it's 31.15 sec. Same file, frame rate, size, colors, etc. (this is the source file and also is the incorrect

  • Mark objects as permanent

    Hi, we've got an application which is a text processing and analysis tool. It has a main analysis cycle where the application spends most of its time. As it goes, it collects some data and saves them in memory data structures (mostly, hash tables). T