Table Filtering

I have to implement the filter functionality in a table. so I had written this:
IPrivateUDBView.IUDBtableNode UDB_node = wdContext.nodeUDBtable();
int num_ele = UDB_node.size();
String itemValue = wdContext.currentContextElement().getFilteritem();
if(ItemValue==null)
     itemValue=".*";
String NameValue = wdContext.currentContextElement().getFilterName();
if(NameValue==null)
     NameValue=".*";
String DeptValue = wdContext.currentContextElement().getFilterDept();
if(DeptValue==null)
     DeptValue=".*";
String CompanyValue = wdContext.currentContextElement().getFilterCompany();
if(CompanyValue==null)
     CompanyValue=".*"; 
String AreaValue = wdContext.currentContextElement().getFilterArea();
if(AreaValue==null)
     AreaValue=".*";   
if(ItemValue!=".*" || NameValue!=".*" || DeptValue!=".*" || AreaValue!=".*" || CompanyValue!=".*")
    for(int i=num_ele-1;i>=0;i--)
     String UDB_item = (String)UDB_node.getUDBtableElementAt(i).getITEM();         
     String UDB_name = (String)UDB_node.getUDBtableElementAt(i).getNAME();
     String UDB_Dept = (String)UDB_node.getUDBtableElementAt(i).getDEPT();
     String UDB_Area = (String)UDB_node.getUDBtableElementAt(i).getAREA();
     String UDB_company = (String)UDB_node.getUDBtableElementAt(i).getCOMPANY();
    if(!UDB_Item.matches(itemValue) || !UDB_name.matches(NameValue)||
!UDB_Dept.matches(DeptValue)|| !UDB_Area.matches
(AreaValue)|| !UDB_company.matches(CompanyValue))
    IPrivateUDBView.IUDBtableElement del_element = wdContext.nodeUDBtable().getUDBtableElementAt(i);
    wdContext.nodeUDBtable().removeElement(del_element);              
so, when i click on filter button after giving a value that matches a value in the table,
the corresponding row is displayed. But when I clear the filter value and click on filter button again,
the table goes blank. This happens becos I remove the table elements. how can i filter without
removing the elements? i have tried the blog on filter, but that doesn't work.
I also tried to copy the node elements from another node that had the same table elements.
Even though the copy works, the data is not reflected in the table.
IWDNode TableNode = wdContext.nodeUDBtable();
IWDNode CopyViewNode = wdContext.nodeViewTabNode();
WDCopyService.copyElements(CopyViewNode,TableNode);
please tell me hoe to solve this problem.
Thnx
jack

Hi Rajeev
Thanks for the reply.
I gave the steps in the blog another try and this time it worked perfect.
I have not mapped the conteroller's context to the view table context as mentioned in the blog. so, if i dont map it, it does not display anything on the table initially. but after i do a filter, the matched row is displayed.
in order to make values appear in the table initially, I had done the mapping. when i do the mapping and click on filter button, it throws java.lang.IndexOutOfBoundsException.
However, heres what I need:
1.The table in the view has to be populated with the values that are available in the Controller's Node (say..ControllerTableNode).
2.Once i perform a filter, if there is a match with the filter value, it displays that corresponding row.
3.Now, if i want to clear that filter, and revert to the original state of the table with all the data, how do i do that?
I have implemented step 2. but not able to implement step 1 and 3.
please suggest.
thnx
jack
Message was edited by: jack b
Message was edited by: jack b

Similar Messages

  • Has anyone tried the "Table Filters" with Numbers 3.0 (Maverick).

    I use the formula If(isblank(A5),"","Data"). the previous version of Numbers treated the "" as a blank cell and the Table Filters did not display that row if I had the "Reorginize" filter set to "Is Not Blank". The Maverick version treats the "" as text. Has anyone found a work-around for this?

    EM,
    I'd suggest that you try changing
    If(isblank(A5),"","Data")
    to
    If(isblank(A5)," ","Data")
    I changed the null string to a space character.
    When you sort, choose text is NOT a space. (Edit: I meant to say Filter, not sort)
    Jerry

  • Table Filters Behaviour

    Is there a definitive resource or statement regarding the behaviour of Table Filters that anyone knows of please?
    I have a number of tables in my application (some based on EO/VOs and some sql-query VOs) and following a refresh of the page (and VO query) filter criteria previously entered is retained (although Dates now appear in a different format!?) and in some tables any previously entered criteria is reset...
    Does anyone know how this filter behaviour can be explained or how its behaviour can be relied upon?
    Thanks in advance... (using JDeveloper 11.1.2.1.0)

    Check this link - http://www.oracle.com/technetwork/developer-tools/adf/learnmore/30-table-filter-queries-169172.pdf

  • ADF Table filtering in JDev 10.1.3

    Hi,
    I wonder how to do ADF Table filtering in JDev 10.1.3. I know in JDev 11 have a query listener property but i want to know how to do this in JDev 10.1.3
    For example :
    Based on HR schema, i have a search form and table result in the same page.
    The table result will give me the result based on filtering.
    Ley say i choose radio button male, and the adf table will give me all male employee.
    Or let say i choose department IT, the adf table will give me all employee within IT deparment.
    Thanks in advance

    Update :
    All i wanna to know is how to :
    ADF table can execute 2 or more query.
    Example if i tick check box, then will run binding named query 1, if not will run binding named query 2.

  • Table filtering on the model node table

    hi
        i have  two table where i need to perform table filtering on the tables and both the tables are of MODEL NODE
    and in some of the posts i have seen that we cannot perform
    table filtering on the MODEL NODE table  ,  and  other thing 
    i have  38 elements where i need to perform filtering on
    each and every column ,
    can any one help me with procedures for table filtering on
    two tables , one table is independent from other.

    Hi Kishore,
    Please refer to the following artice for the filter and sorting implementation:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f024364b-3086-2b10-b2be-c0ed7d33fe65
    Filtering works on the principle of selecting values from an existing master set. Hence, as suggested the master set can be your model node and create another value node (exact copy of the model node) to hold the values to be displayed in the table.
    Remember it is always better if the backend provides these capabilities rather than implementing filtering and sorting in front end.
    Regards,
    Kartikaye

  • Table filtering on number columns

    Hi!
    Is it possible to do table filtering on number columns such as: > 10
    Br
    Casper
    Edited by: Casper Thrane on 05-May-2011 05:13

    Hi,
    I have never tried filtering by equality or relational operators, but with some tinkering I think it might be possible.
    If you haven't already checked, there are some really good how-to's on customizing the ADF table filter at Oracle ADF Code Corner.
    Specifically, Custom Table Filter and Filter by date range
    Edited by: Paendrag on May 5, 2011 7:39 AM

  • Using table filters with transient VO attributes

    Hi,
    I have a the following use case and I cannot seem to find a valid solution on my own without falling into deep depression and/or psychotic delirium. Anyway, I'm sure there's a solution and that it's pretty simple, and hopefully someone here will know it.
    Let say I have a read-only VO with two attributes bound to the SQL query, namely Prefix and Suffix, as well as a transient calculated attribute named Compound formed of both the Prefix and Suffix separated with an hyphen.
    Now I want to bind that VO to an af:table supporting filters, showing only Compound column as Prefix and Suffix alone doesn't make much sense to the end user. I therefore use Compound as the sortProperty. For sorting, I was able to enforce correct logic by overriding the VO's getOrderByClause and setOrderByClause methods. For findMode, an old solution proposed by Steve involving overriding createViewCriteria with a custom class extending ViewCriteria that needs to override createViewCriteriaRow works. However, the filter capability of the table seems to use something different involving ViewCriteriaItemValue. Although I would be able to create a different instance when a criterion is created for the Compound attribute, but even if I do, I don't know how to split that value into two columns afterward. I guess I could create three linked values when the compound filter value is created, but it seems complicated. Best would be to hook the method returning the list of ViewCriteriaItemValue during the where clause creation, but then again, the data binding layer use that to detect what filters are applied and output the table accordingly so I cannot really remove the compound value at that point either. I could also override the getWhereClause I guess. Another solution, the simplest, would be to put the compound value in the SQL query, but I find that option appalling as it shouldn't be the database responsibility. If there's no other option I guess that what I'm going to do however.
    Anyone can shred any light on that issue?
    Regards,
    ~ Simon

    Hi Peter,
    Although it's not exactly what I need, I can indeed build a solution from that. Then again, it wouldn't be my first choice as it doesn't respect a correct separation of concerns (I guess I'm a purist). A listener is a view/controller layer entity and I would have preferred to hide the fact that the VO Attribute is a composition of two others to that layer. I would really have liked a pure model layer solution. That being said, I prefer the queryListener option to the Database one.
    Thanks,
    ~ Simon

  • Af:table filtering(inputDate) don't show results for a specific search date

    Hi again to every one.
    I have a database table as :
    sql> describe YES_NO_DATE_TEST
    FECHA TIMESTAMP(6) --> param search
    DESCRIPCION VARCHAR2(200 CHAR)
    VERIFICADO VARCHAR2(1 CHAR)
    I created my Bussines Components, I have a search page, I drag and drop this DataControl as af:table, called : YES_NO_DATE_TESTView1, to a jspx page ( search page ), I enabled sorting and filtering properties in the af:table .
    af:inputDate value="#{vs.filterCriteria.Fecha}" id="id1">
    <af:convertDateTime pattern="#{bindings.YesNoDateTestView1.hints.Fecha.format}"/>
    </af:inputDate>
    I run the search page, and show me a : af:inputDate , for choose and put a date.
    but, when I choose a date, and press the enter key, the search result by af:inputDate, do not show me nothing.
    How I can solve that ?
    Note :
    In the UI Hints of View Object I put this properties :
    format type : simple date
    format : dd-MM-yyyy
    I'm using JDeveloper 11.1.2.0.0

    wht is the database column type..??
    It's a TimeStamp Type. ----> FECHA TIMESTAMP(6)
    what is the query that is getting executed in the backend... when you do the search... ?
    My query in the server is :
    Select
    FECHA,
    DESCRIPCION,
    VERIFICADO
    FROM YES_NO_DATE_TEST;
    are you getting the expected results when you run the query..??
    Yes , I m . The query above is made for the View Object. But I don't why when I put a date in the af:inputDate the search don't show me the results that I hope.
    Or , Need I to Programaticallly access to the InputDate and passed to a bind variable on the query ??

  • Table Filters using webdynpro Java

    Hi Experts,
    I am trying to implement Table Filter i did every thing mentioned in this
    Generic Web Dynpro Java Table Filter still am not getting the filter values
    all the table columns remains same it is not doing any filtering , please help me in solving this logical issue
    Thanks a lot in advance.
    Regards,
    Ken.

    Hi Ken,
    I believe you might came across these blogs as well: if not pls go through the below blogs:
    How to get ready-made filter for your Web Dynpro Table with minimal coding ?
    Filtering Table Values using WebDynpro
    Hope this helps.
    Cheers-
    Pramod

  • Table filtering is case sensitive

    ADF Version: Oracle JDeveloper 11 g Update 2 (Build 5205) (11.1.1.0.2)
    We are using an older version of ADF / jDeveloper for our application. We have run into the issue where all of the filter fields on our tables seem to be case sensitive. I am aware that in more recent versions of ADF you can simply use the FilterFeatures attribute of a column to control this behavior. Unfortunately our version of ADF does not support this feature.
    Is there anyway in our version of ADF that I can make it so the filtering is not case sensitive? What do I have to do, or what classes do I have to override to get the desired behavior? Is it even possible in this older release? Thanks in advance.

    Hi,
    you can create a custom query listener on the table, intercept the filter criteria and turn them as you need them. See example #30 at http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html . All you need to do is to intercept the table filter setting and execute a query on the WS so that the filter criteria values are used case insensitive
    Frank

  • Multiple selection in table filters 12c

    Hi all,
    I would like to filter a table using  multiple values in the same filter. According to the normal behavior you can use VALUE1 OR VALUE2 OR VALUE3... in the table filter and it works but I have a new requirement where the "OR" cojuntion must be a ",".
    So the question is:
    How to use  "," as conjuntion instead of  "OR"?
    Jhon
    jdev 12c

    Jhon, there is no such function (never has been). You are trying to create an  IN clause.
    What you can do it adopt the technique I outlined in my blog  JDeveloper 11.1.1.6.0: Escape QBE Operators in Filterable Tables | JDev &amp;amp; ADF Goodies
    Here I use a special syntax in the filter field to modify the query. I'm looking for '_and_' in the field to then search for the word 'and' in the column. However, you can modify the sample, use your own syntax and return an IN clause.
    Timo

  • HELP!!! ADF Table filters ignore space filtering

    (I'm using JDeveloper Version 11.1.1.6.0)
    Hello everyone!
    I have the default filters to my table for users to further filter the result.
    So, some of my columns contain empty records. Actually, they're not really empty, they contain a space for in the database we choose to use a space for every null value.
    Then, when I try to retrieve those results on my gui table, I enter a space in my filter but I have no change, it ignores the space and prints all the values.
    Any idea of what I can do to be able to get only those blank values appear?
    Thanks a lot.
    Life

    That will be a problem. This behavior is common to all Web applications. They remove spaces before and after words or character. 
    What you can do is to substitute the space with another character,  e.g. '_', and whenever the user adds the substituted character you modify the query to search for space.
    A sample on how to do the substitution can be found here
    http://wp.me/pcBZk-se
    Timo

  • Absolute table filters

    Hi!
    I have a table with filtering enabled. My problem is if ex. enter: Test my table shows all rows with "Test" and "Test xxxxx". How can I make it only show the rows with test?
    /Casper

    Fanks article http://www.oracle.com/technetwork/developer-tools/adf/learnmore/59-table-filter-by-data-range-176653.pdf shows a possible solution you can adopt to your case.
    You may look into http://www.oracle.com/technetwork/developer-tools/adf/learnmore/oct2010-otn-harvest-183714.pdf (page 13).
    Timo

  • Repeating Table filtered by a dropdown list in Infopath 2013?

    I have 2 lists.
    The second list has a lookup column from the first list. 
    I have a dropdown list that is bound to list 1.
    I want the repeating table to be filtered by the selection of the first list. I've seen some tutorials in earlier versions that do this but I cannot see how this is done in 2013.

    Hi,
    If you would filter repeating table from another field’s value in InfoPath form, you could add the list as secondary data source to the form and filed as main data source. Then a formatting rule will help you filter the data you want to display.
    Here are the references for convenience:
    http://www.infopathdev.com/forums/t/25425.aspx
    http://www.formsonfire.com/formotus/filtering-on-a-secondary-data-source-in-infopath/
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Version 3.2.20.09 Not Showing "Tables (filtered" in Connections Tree

    Installed 3.2.20.09 and now being frustrated with the application not always showing the "Tables" node in the connections tree. Very frustrating. This "feature" manifested itself in 3.1.05 and was fixed in 3.1.07.

    Does it come back after a re-start? I notice the same thing happening in 3.2, but not in our current development builds, so if this is the same issue, I think we have it fixed.

  • Bug: "Paste Special: Value" overwrites data hidden with Table filters

    I've noticed the following....
    Create a sheet with the values below and enable the "Filter" option on this table.
    (I've added the row-numbers on the left, to later show the filter in action)
    (1) col1
    col2
    (2) a 1
    (3) a 2
    (4) a 3
    Using the filter option on the col2 column, unmark value "2".
    This is an essential step, since the bug only appears when hiding rows -in between- of other rows.
    Hiding 1 or 3 will not have the same result.
    You table should now look like this. Notice row (3) is hidden, as it should be:
    (1) col1
    col2
    (2) a 1
    (4) a 3
    Now type "b" in a random empty cell, select the cell (not the value), and copy it.
    Now, and this is an essential step, click down on the "a" value on row (2), keeping your mouse pressed, drag to the "a" value on row (4),  so that both cells are selected with one selection box, not two separate boxes.
    Within this selection box, right-mouse click, and select "Paste Special -> Values" NOT "Paste Special -> Paste".
    Now use the filter to unhide value "2". You table should/will look like this:
    (1) col1
    col2
    (2) b 1
    (3) b 2
    (4) b 3
    This is -not- the expected behavious, when using "Paste Special -> Paste", the result is
    as expected:
    (1) col1 col2
    (2) b 1
    (3) a 2
    (4) b 3
    This issue is also present in Excel 2010, and i've tested this on various computers.

    Tested in Excel 2013, it also happens there.

Maybe you are looking for

  • Basic Documentation on GPIB DLL for Programmers

    Is there any basic overview of the correct way to initialize devices and communicate with them using the DLL calls directly? I have plenty of examples at it appears each has a different way of approaching opening, scanning for, or various other ways

  • Can`t install CA in iPlanet Directory Server 5.0 ??

    Hi All, i try to install a self-signed CA-certifikate, under "CA-Certs" in iPlanet Directory Server 5.0. The certificate is generated using the tool "ssleay" or from an Windows2000-CA. Always i get "the certificate specified is not a valid CA certifi

  • Photoshop CS6 saves the JPGs smaller than they appear in Photoshop...

    Photoshop CS6 saves the jpgs smaller than they appear in Photoshop... If I change a file in Photoshop to 72 dpi and scale it down to approximately 1-2 MB, it is after saving as a JPG half the size than it was showed in Photoshop (350KB). WHY? I have

  • Edge Animate: Change URL, Back and Forward Buttons (JS window.history)

    Hi, I want to build complete homepages with edge animate and i am on a good way but i have only one problem. A site built in Edge Animate seems to has fluently changes from site to site because it is only one site. So i have to simulate the feeling o

  • Licencias para usar DI y B1WS

    Buenas, estaba cacharreando para ver como usar los web services de SAP SO y, probando la aplicación de ejemplo llego a un error de licencia. Pregunta..  ¿para usar DI y los Webservices es necesaria licencia adicional sobre el usuario que hace el logi