Af:table with filter option

Hi,
I have a bounded task flow with page-fragments, first activity is method-call(execute-query) and second is a view activity. On the view activity I dropped a read-only, af:table, enabled filters. Although execute query is successful af:table does not display correct records. When I delete af:table and add it again with no filter everything works as expected (also deleted the search region definition from page def file). af:table with filter option adds a search region to executable section of page-definition file, with Empty Criteria in my case. I want af:table to display results after execute-query method activity and decorate the af:table with filters. Filter would be enabled only when users enter filter criteria. Is that possible? Am I missing something?
Best Regards,
Salim

Hi,
I found new problems with my case. When we use filter option with af:table filter criteria is not cleared. Forum search returned Re: Problem with 11g table - filter . Suppose that user enters a criteria and presses enter, this executes query and results are displayed as expected. Then user clears the previously entered criteria presses enter o display all records, and no results are displayed. Looking at the trace for a testcase based on HR schema, I observed that all the bind variables in the query is saved and passivated, Please observe that for every new criteria entry (for the same field, Emp.ENAME) a SQL clause is added at the end. Although one might expect that all the criteria related to af:table filter is cleared and rebuilded for every request rather than saving them all, which results in bad end user experience. So is there a way to go with af:table with filter? Am I missing something?
Best Regards,
Salim
SELECT Emp.EMPNO,        
     Emp.ENAME,        
     Emp.JOB,        
     Emp.MGR,        
     Emp.HIREDATE,        
     Emp.SAL,        
     Emp.COMM,        
     Emp.DEPTNO,        
     Dept.DNAME,        
     Dept.DEPTNO AS DEPTNO1
     FROM EMP Emp, DEPT Dept
WHERE Emp.DEPTNO = Dept.DEPTNO(+)
     AND ( ( ( ( ( Emp.ENAME LIKE :vc_temp_1  )  OR  ( :vc_temp_1 IS NULL ) ) )  AND ( ( ( Emp.EMPNO = :vc_temp_2  )  OR  ( :vc_temp_2 IS NULL ) ) )  AND ( ( ( Emp.ENAME LIKE :vc_temp_3  )  OR  ( :vc_temp_3 IS NULL ) ) )  AND ( ( ( Emp.ENAME LIKE :vc_temp_4  )  OR  ( :vc_temp_4 IS NULL ) ) )  AND ( ( ( Emp.ENAME LIKE :vc_temp_5  )  OR  ( :vc_temp_5 IS NULL ) ) ) ) )Bind params for ViewObject: EmpView2
[18615] Binding param "vc_temp_1": M%
[18616] Binding param "vc_temp_2": 8
[18617] Binding param "vc_temp_3": A%
[18618] Binding param "vc_temp_4": M%
[18619] Binding param "vc_temp_5": M%

Similar Messages

  • Crystal Report linked to a table with filter attached

    I have a Crystal Report based on 2 tables and I want it to display every incident in the incident table and to pull the truckID of the
    first truck on the scene from the truck table . So the finished product should look like this…
    IncidentID           IncidentNum     ResponseTime                  First Arriving Truck           Disctict
      1x44452                1258ab55             5:32                                        B8                              2
    *The first arriving truck is the truck in the Truck Table with the same IncidentID and  the earliest ArrivalTime.  There will be multiple trucks for each incident but I want it to only show the one that arrived first (ArrivalTime).  So one line per incidentID.
    Incident Table
    IncidentID
    IncidentNum
    ResponseTime
    District
    Truck Table (Will contain many trucks for one incident with the following info
    Truckkey
    IncidentID (Link to Incident Table)
    ArrivalTime
    TruckID
    I figure I probably need to build a formula with the min function or perhaps an OnCommand – I’m just not sure.
    The biggest issue is the overall report has 4 filter settings.  They can select a date range, a location, an incident type and a range for the response time. So I do this with the Select Expert
    I can get all of that to work except I cannot figure out how to get it to pull the First Arriving Truck without duplicating the incident
    line.  Also, if there is a Truck with an ArrivalTime of Null I want it to ignore that Truck Table record.
    Can anyone help???

    Hi Debbie,,
    You may try this:
    1) Go to the Group Expert > Create a Group on the 'Incident ID' field from the Incident Table
    2) Insert a summary on the 'Arrival Time' field and place the field on the Group Footer
    3) Move all the fields from the Details section to the Group Footer
    4) Go to the Group Selection Formula (Report > Selection Formulas > Group) and use this code:
    {Truck.ArrivalTime} = Minimum({Truck.ArrivalTime}, {Incident ID})
    5) Suppress the Details Section
    -Abhilash

  • Create Table (with advanced options)

    Hi, I'm quite new to SQL developer and learning Oracle® Database SQL Developer User's Guide Release 1.5 (3 Tutorial: Creating Objects for a Small Database)
    I'm trying to create a table called PATRONS as it states, but I can not find Schema: MDSYS and Type: SDO_GEOMETRY (right now the Type is empty under my schema)
    Is that somethng wrong with my connection? How should I resolve this problem and continue the tutorial? Please advise. Thank you.

    The MDSYS schema is one of the host schemas for Oracle Locator (a subset of Oracle Spatial), and SDO_GEOMETRY is one of the types - in fact the main type. It looks like Oracle Locator was not installed in your database when it was created. It is not available with Oracle Express Edition, but it is included with Standard or Enterprise edition. Installing it is optional when the database is created, so I guess your DBA decided not to install it. It is installed with the same scripts that install Oracle Multimedia. The instructions can be found at http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28415/ap_instl_upgrd.htm#IMURG11000. This document is for 11g, but the instructions are pretty much the same for 10g and 9i.

  • Is there a way to let OWB create a table with NOLOGGING option?

    A table created by OWB deployment is by default with LOGGING. How can I specify NOLOGGING.
    Even better if we can define a partitioned table in OWB.
    Thanks

    Hi,
    it is possible to set NOLOGGING with table configuration properties "Logging Mode".
    OWB table editor has "Partitions" tab for creating different types of partitions
    Regards,
    Oleg

  • Filtering internal table using select-option values

    Hi,
    I got an internal table with select-option values. for eg.  it_perno with the values  I  BT    000160    000170.
    Now i got another second internal table which is have the person number. Now i need to filter this second internal table based on the values from the select option table. my question is
    i can collect all the values from 160 to 170 in a separate table by looping over the select option table. and then based on the values filter the second internal table person number.
    But what would be the case if the select option contains both intervals and multiple options. For eg.
    I BT 000160      000170.
    I EQ 000185.
    So can you suggest any good solution, that based on this select option table i need to filter the second internal table Person number.
    Thanks in advance.
    Regards,
    anbu.

    Hi,
    Can you not use the select-options in the Select query while populating the internal table.
    SELECT pernr FROM pa0000 INTO it_tab WHERE pernr IN s_pernr.
    If you cannot do this and you do not want to delete the unwanted entries, then you can use the WHERE clause in the LOOP statement to process the specific entries required:
    LOOP AT it_tab INTO wa_tab WHERE pernr IN s_pernr.
    Regards,
    Aparna Alashe.

  • OID users ( EUS) problem with grant create table with admin

    Hi,
    We activated enterprise users in the OID.
    There is a role APP_ADMIN that has the following grants:
    create user
    drop user
    create table with admin option
    this is for an application that creates BI schemas, so it needs to be able to create other users.
    I have granted these to a local role, and the user has access to the local role, thanks to the OID setup.
    The create and drop user work.
    however, the grant create table to another user does not work.
    Is there an issue with 'with admin option' grants in Enterprise user security?
    Regards,
    Peter

    If I grant
    grant create table to test_role with admin option;
    it does not work
    if I grant
    GRANT GRANT ANY PRIVILEGE to test_role WITH ADMIN OPTION;
    it does work.
    The test command as user with test_role is:
    grant create table to test_usr;
    very strange!
    If the user is a standard user and I create role test_role
    and grant create table to test_role with admin option it works.
    but if I convert the user to an EUS user and the same privilege is given to the role ( role is granted to a global role to an enterprise role)
    it doesnt work
    Edited by: Peter on Dec 7, 2012 2:36 PM

  • Several CRUDLs again: App from existing table Form on table with report?

    Hi,
    I posted a message a couple of days ago, asking if it was possible to automatically generate several CRUDL gui patterns per application. Later I answer myself discovering that the "Form on table with report" option for creating a page, make just that.
    However, I can see that the option for application level CRUDL (app from existing table) has more functionality (search, export to excel, data analysis, even charts, cool ;-). It creates about 10 pages per table, contrasting with the two created by the "Form on table with report" option. I thought that "Report with form" could be the answer, but it seems just another link to the same option.
    So, once again: is possible to call the functionality of "App from existing table", several times within the same application? (of course each time is likely to refer a distinct table). How do I insistently ask for this? Well, cause I can see in my horizon many applications what will entirely consist of table-maintenance services ... so, with htmldb I could generate them very fast!. In fact, once I have toasted my crudl pattern I would even like to save it and generate the applications on a non interactive basis (maybe calling something in pl/sql?, command line?) ... is that possible?
    Thanks in advance,
    salu2
    dario estepario ..

    Hi Scott,
    Dario - The "create application from existing table"
    functionality was available in 1.6. In 2.0, the
    Create Application wizard has changed. But you can
    create as many sets of pages in the same application
    as you need, all on different tables, using the
    patterns available in that wizard. You can also
    supplement those generated pages later by creating
    chart pages or whatever else you need.Mmm?, ups ... them am I running the 1.6 version? I installed it from the companion cd. Ok, I'll try the separately distributed htmldb version. Thanks.
    >
    At present there is no exposed API to let you do any
    of this programmatically.;-(
    >
    ScottRegards,
    dario estepario ...

  • Table QBE-Filter BUG in combination with Application Module Pooling ?

    Hi,
    i use JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407, Java 1.6.0_14, ADF BC and ADF Faces.
    I have one View Object, one Page with a panelCollection and a table with option filtering (create via drag-and-drop from datacontrol).
    When I disable the application module pooling on the AM configuration and run the application, i can execute the query-by-example filter, but when I delete the filterCriteria and press enter (requerry for select all) the table shows the old data.
    Image for setting on application module:
    http://img265.imageshack.us/img265/1374/filterdoesnotwork1.png
    Image for execute querry and requerry for "all rows" (deleted filterCriteria)
    http://img140.imageshack.us/img140/1963/filterdoesnotwork2.png
    When I enable application module pooling all works fine. Is this a issue?
    kind regards

    Hi Frank,
    if I filter for employees which firstname starts with "D" and then for employees with "F" --> i see "No data to display.".
    So uncheck "Enable Application Module Pooling" on application module doesn't work with QBE-Filter ?
    I can send a testcase but it is so simple you can create it with jdeveloper in 2 minutes ;)
    Martin

  • Filter Option in Table Control

    Hi Folks ,
    I am working on a table control , i need to add Filter functionality same as of ALV filter
    i tried with suggestion given on SCN
    Following is the code that i tried, but its not working, no popup with FM LVC_FILTER_DIALOG
    please help me with sum more suggestion or sample code
    DATA : cp_vbak LIKE it_vbak OCCURS 0.
      DATA : it_fieldcat1 TYPE lvc_t_fcat,
             wa_fieldcat LIKE line of it_fieldcat1,
             it_group1 like  lvc_s_sgrp occurs 0,
             ls_group LIKE lvc_s_sgrp,
             filter_ranges TYPE lvc_t_filt.
    DATA: counter TYPE i.
      counter = counter + 1.
      wa_fieldcat-col_pos    = counter.
      wa_fieldcat-fieldname  = 'VBELN'.
      wa_fieldcat-tabname    = 'IT_VBAK'.
       APPEND wa_fieldcat TO it_fieldcat1.
      CLEAR wa_fieldcat.
      counter = counter + 1.
      wa_fieldcat-col_pos    = counter.
      wa_fieldcat-fieldname  = 'VKORG'.
      wa_fieldcat-tabname    = 'IT_VBAK'.
      APPEND wa_fieldcat TO it_fieldcat1.
      CLEAR wa_fieldcat.
      counter = counter + 1.
      wa_fieldcat-col_pos    = counter.
      wa_fieldcat-fieldname  = 'VTWEG'.
      wa_fieldcat-tabname    = 'IT_VBAK'.
      APPEND wa_fieldcat TO it_fieldcat1.
      CLEAR wa_fieldcat.
      counter = counter + 1.
      wa_fieldcat-col_pos    = counter.
      wa_fieldcat-fieldname  = 'SPART'.
      wa_fieldcat-tabname    = 'IT_VBAK'.
      APPEND wa_fieldcat TO it_fieldcat1.
      CLEAR wa_fieldcat.
    ls_group-SP_GROUP = '0001'.
    ls_group-TEXT = 'VBELN'.
    append ls_group to it_group1.
    clear ls_group.
    ls_group-SP_GROUP = '0002'.
    ls_group-TEXT = 'VKORG'.
    append ls_group to it_group1.
      cp_vbak[] = it_vbak[].
      CALL FUNCTION 'LVC_FILTER_DIALOG'
        EXPORTING
          it_fieldcat           = it_fieldcat1
          it_groups             = it_group1
    *   IS_FILT_LAYOUT        =
    *   I_NO_DIALOG           =
    *   IT_EXCEPT_QINFO       =
        tables
          it_data               = it_vbak
        CHANGING
          ct_filter_lvc         = filter_ranges
    * EXCEPTIONS
    *   NO_CHANGE             = 1
    *   OTHERS                = 2
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *Need to code more for Filter the internal table

    Hi Pihu,
    I am also trying to implement the filter functionality in a Table Conntriol.
    I have used following two function modules to handle the filter option.
    1. CEP_DOUBLE_ALV: You will get the pop up to select you filtering fields.
    2. LVC_FILTER_DIALOG: Second pop up to select the filtering data for the fields selected.
    But the second FM is giving an error 'filter internal error : 15'
    If u have already implemented this functionality, can u give me the sample code.
    Thanks in advance,
    Sai

  • How to Add a filter option for a entire table to a search button?

    Hi all,
    I am new to SAPUI5. i am having a table with hard coded data's.and i have a search field.
    i want to add a filter option to the search field for the entire table..
    i can able to add a filter option to the column by using filterProperty.
    is there is any method or property to do that?
    PS - i have attached my table code.
    Regars
    Dayalan

    Hi Dayalan,
    documentation for filtering and sorting is in this section of the Developers Guide.
    Cheers
    Graham Robbo

  • Enhancement request : Table - Data  -- Filter with multiple lines

    It would be nice when the Filter option in the tables Data tab could contain multiple lines, because :
    In case of a complex where clause on a table (used in a query) it's hard to get an impression of the filter because everything is typed on one single line.
    In case of multiple lines it's also more easy to disable a single clause temporary with a double dash (--) at the start of the line instead of searching in a complex filter where to put /* ...*/
    Eric.

    What I mean is the Filter option when displaying the data (Data tab) of a table. You have the possibility to enter a Sort and a Filter (to reduce the data that is displayed). That Filter option has no possibility to enter multiple lines. So there is no way to 'format' the filter which would be nice in case of complex or large 'where clauses'.
    What would you prefer, this (multiple lines) ?
    AND ( p_peildatum IS NULL
    OR
    TRUNC(p_peildatum) BETWEEN TRUNC(dnm.datum_ingang)
    AND TRUNC(NVL(dnm.datum_einde,p_peildatum))
    AND ( p_ondergrens IS NULL
    OR
    TRUNC(p_ondergrens) <= TRUNC(NVL(dnm.datum_einde,p_ondergrens))
    or this, like it is now (everything on one single line) :
    ( p_peildatum IS NULL OR TRUNC(p_peildatum) BETWEEN TRUNC(dnm.datum_ingang) AND TRUNC(NVL(dnm.datum_einde,p_peildatum)) ) AND ( p_ondergrens IS NULL OR TRUNC(p_ondergrens) <= TRUNC(NVL(dnm.datum_einde,p_ondergrens)) )
    Eric.

  • Error when creating index with parallel option on very large table

    I am getting a
    "7:15:52 AM ORA-00600: internal error code, arguments: [kxfqupp_bad_cvl], [7940], [6], [0], [], [], [], []"
    error when creating an index with parallel option. Which is strange because this has not been a problem until now. We just hit 60 million rows in a 45 column table, and I wonder if we've hit a bug.
    Version 10.2.0.4
    O/S Linux
    As a test I removed the parallel option and several of the indexes were created with no problem, but many still threw the same error... Strange. Do I need a patch update of some kind?

    This is most certainly a bug.
    From metalink it looks like bug 4695511 - fixed in 10.2.0.4.1

  • Sort and filter option missing in table view

    Hi,
    I am not able to see the sort and filter option for all the columns in table view. Could anyone please help me if i need to add something to see that option.
    Thanks,
    Kamesh Bathla

    Hi,
    Thanks for the reply, yes its web UI issue, i am having search and result view and i need sorting option for all the columns in result view. I thought that it is standard functionality, do i need to add something to html file or anyother place to see the sorting options?
    Regards,
    Kamesh Bathla

  • 2007 Controlling Multiple Pivot Tables with One Filter

    Hello there,
    I'm trying to update two pivot tables using one filter. The different VBA solutions I've tried haven't worked so I'm hoping this community can answer my question.
    I have two pivot tables; they have basically the same information, just two different sets of data; one is orders that are Complete, the other is orders that are Incomplete.
    When I change the filters on the Complete pivot table, I'd like the Incomplete pivot table to filter the same way.
    Any help is appreciate. Thanks!

    The easiest way would be to setup your 2 pivots and turn on the Macro Recorder then go through the steps you want to perform.  The recorder will generate all the code you need.  I just did this exercise and got this . . .
    Sub Macro1()
    ActiveSheet.PivotTables("PivotTable1").PivotFields("PARTY").CurrentPage = _
    "(All)"
    With ActiveSheet.PivotTables("PivotTable1").PivotFields("PARTY")
    .PivotItems("DEMOCRAT").Visible = False
    .PivotItems("REPUBLICAN").Visible = True
    End With
    Range("F1").Select
    ActiveSheet.PivotTables("PivotTable3").PivotFields("PARTY").CurrentPage = _
    "(All)"
    With ActiveSheet.PivotTables("PivotTable3").PivotFields("PARTY")
    .PivotItems("DEMOCRAT").Visible = True
    .PivotItems("REPUBLICAN").Visible = False
    End With
    End Sub
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • How do you delete records from table with data in a select option

    how do you delete records from table with relevant to data in a select option..how to write coding

    Hi,
    Try
    if not s_select_option [ ] is initial.
    delete * from table
    where field in s_select_option.
    endif.
    commit work.
    Be careful though. If select option is emty, you will delete the entire table.
    Regards,
    Arek

Maybe you are looking for