Filter the table break corresponding to the part of the column

Hello

JDeveloper Version 11.1.2.4.0.

I have a table with a filter. I need to make this filter to do the following:

select column1 from table where upper(column1) like upper ('%filterValue%')

(If in the column, I have a name of "Christopher" and I look in the filter of "Frank" I want the line with Christopher is put into correspondence.)


I have replace the getCriteriaItemClause like this:

    public String getCriteriaItemClause(ViewCriteriaItem vci) {
        if (vci != null) {
            AttributeDef attrDef = vci.getAttributeDef();
            String attrName = attrDef.getName();


            if ("java.lang.String".equals(attrDef.getJavaType().getName()) && vci.getValue() != null) {
                String colName = vci.getViewCriteria().isCriteriaForQuery() ? vci.getColumnNameForQuery() : attrName;
                String filterVal = (String)vci.getValue();


                String sql = "(UPPER(%s) like UPPER('%s%%'))";


                String clause = String.format(sql, colName, filterVal);
                System.out.println(" The view criteria is overriden to: " + clause);
                return clause;
            }
        }
        return super.getCriteriaItemClause(vci);
    }

The display criteria replaced: (UPPER (Person.LAST_NAME) as UPPER ("Franck%%'))

I tried to do the SQL string to be ' (UPPER (%s) as SUPERIOR ('%%%')) ", but it does not work and gives me very strange and unexpected results.").


Kind regards

Pamela

Is not you the problem in how you build the qry sql? Have you tried something like:

        String qwe = "Hello";
       

String xyz = "upper('%"+qwe+"%');";

It prints "upper ('%hello%');", which is what you want. Right?

Tags: Java

Similar Questions

  • Error trying to filter the column named 'value' in the tab data

    I do not know it is because of the name of the column because all the other columns are working fine, but when I try to filter on the value = 60, I get an error:

    ORA-01722 invalid number
    Code provider 1722

    Is there a way I can filter this column? I tried quotes around column name, 'value' = 60, but that did not help.

    Thank you
    -Bill

    What is the column data type and details? What happens if you (single) quote "60" instead?

    K.

    Published by: - K - 10/28/2009 14:12: corrected apostrophes

  • To filter the data according to the year of the field date of a table

    Hi I have a table
    TABLE  T1(ID NUMBER, SET_DATE DATE)
    I want to select this table ID values by comparing the year in the area of set_date.
    To do this, I wrote
    select id from t1 where set_date like '%2010%' ;
    It returns no rows.

    But the following code does not work
    select id from t1 where set_date like '%10%' ;
    Although the second code works there is an inability in these two codes because I do not specify to correspond to the year. It is quite possible that 10 can be present anywhere else, and this query returns all the lines. So how to filter the lines by year?

    Hello

    Here's a way

    select id from t1 where extract(year from set_date) = 2010 ;
    

    Concerning
    Peter

  • Filter the Table during execution and keep uncommitted line changes

    Hello

    I have a requirement which has been quite difficult for me so far.

    I use the first version Jdev 12 c.

    I have a table of AF that is connected to a ViewObject that is used for sending new data.

    When I add lines to this ViewObject, I put a field that I intend to use for filtering so that the number of lines is not displayed at the same time.  This field comes from a selection of LOV.

    I want to be able to change lines are displayed in the table based on what is the current value of selection LOV.  This isn't a problem for me, and it works perfectly using a view criteria and a variable transitional EO I put in place.

    My problem is that when I select a new value in the LOV and change to bind the variable view criteria, I want all changes uncommitted to the lines to be preserved in the View object.  Currently, the lines are not keep their changes, and I need to do this, because after that the user has entered data for a large number of lines, there will be a commit to the database for all new lines added.  Is this possible or should I look for an alternative?

    I also tried to use a table filter in the link of the page layer, but I get an error that I can't debug. It is marked as Houston-34014.  In this method, I try to access my bean in pageFlowScope to filter the table.  This bean variable is updated when the LOV selection changes.  Error messages settings are {0 = oracle.jbo.Key [-220-225], 1 = root}.  I also read that this filter parameter is a static filter and does not dynamically during execution.

    Any help would be appreciated, thanks for reading.

    Hello lhymel

    I think that your problem is solved, so please close this thread and open a new thread for tuning related problem

    Thank you

    -Ashish

  • How the first column heading must be repeated if the table breaks across pages

    Hi Experts,

    RTF model, header row in the table automatically repeat if record go to the next page. in similar fasion, I want to repeat the first column heading, table breaks on any page.

    Please help reslove this issue...

    Hello

    You can add the tag to the first column and the first row of the table. It will repeat 1st column when table to break across pages.

    Here 1 means, repeat first column when table to break across pages.

    I hope this will solve your problem.

    P.S. If you provide 2, this means, repeat for column 2 of the table through the pages

    Please check the issue as resolved, if that answers your question. Thank you

  • Filter the table display of the query object (it can a bug in jdev 12)

    Hello:

    I found an error/bug possible in jdeveloper 12 c when I migrate my application of jdev 11g.

    To test this issue, I did the same test request in jdeveloper 11g and jdeveloper 12 c (to avoid to migrate the process).

    Project template

    -Create a display of the query object. Code:

    SELECT 1 CODE, 100 DESCRIPTION
      FROM DUAL
    UNION ALL
    SELECT 2 CODE, 200 DESCRIPTION
      FROM DUAL
    

    -Create a Module of the Application, and then drag this point of view in.

    ViewController project

    -Create a page and drag in the criteria named 'All searchable attributes' of the previous ViewObject as "ADF table filtered.

    -Run the application

    Results:

    On jdeveloper 11g, however it makes the filter above the table box in jdev not 12 c.

    Is this a bug or I need to select something in jdev12c to get the same functionality?

    Yes, known bug 17279781.  It is currently scheduled for a 12.1.4 fix.  If this issue is crucial to you, please file an SR, mentioning the bug number and indicate your reasons for wanting a fix as soon as possible.

    Note there is a solution:

    To work around the problem, you can configure the filter yourself by adding an af:inputText

    facet filter columns and bind the inputText property value to the EL

    #{vs.filterCriteria. }. The page to rerun the filter for

    the column look and work.

    CM.

  • Search any text in the filter of the columns on the table of the adf

    Hello
    I have the filter on adf table columns where I can search any text beginning by default.
    For example you gave, my name is sam you can search filter for table of my column and you get the results, my name is sam
    but I want to search by any word we will tell sam and I want to show the same result.

    Thank you
    Savan Shah.

    You can probably use wildcards (% and _)
    for example % my %

    Dario

  • Add filter slot table form to show the lines with null values

    Hello

    I have a tabular presentation where we need to add a filter with two values (selection list) so that if one of the columns in a table (column1) is zero, then I need to display all records where column1 is null.

    I was wondering how do I put this in the Source of tabular forms where condition. This filter has only two values,

    All the
    NULL for the error

    So when the user selects all, then all the records in the table are shown
    If the user selects 'Value Null in error', while the records where Column1 is null will be shown

    For example
     column1        column2
                           A
                           B
          1               C
          3               D
     
    If the user selects, then

    all four files will show up. Else, only the first and the second will be returned.

    Thank you

    Hi, Ryan.

    Try a static LOV like this

    STATIC2:;,--- All ---;--- All ---
    

    and a Where clause, like this

    where column1 is null or :p1_filter like '%%'
    

    Jeff

  • How can I filter a table of data control without entering the query

    I have a table from a WSDL-based web service data control.

    I want to filter the table without input query in the filter text box. Without text filter box, each could filter the table with a query hardcoded internally.
    For example, when the user menu button click and then it filters the table where type = '1' and B menu button filters the table by type = '2' and C menu button filters the table by type =' "."

    How can I filter the table without entering the query?

    Could someone point me to a solution please.

    Thank you.
    11.1.5 jdev

    Published by: 893364 on October 26, 2011 12:15

    Published by: 893364 on October 26, 2011 12:21

    Hello

    When you have created the table, have you tried selecting the option "filter". Select the table, and access the property of m.. In the toolbar of the Properties Inspector, there is an icon to change the configuration. His fields of filter adding filter for the user to search in.

    Option 2: Data from the Web Service are actually held in iterators. If you want to filter the Web service request, I wouldn't use the WS domain controller but a proxy of JAX - WS in a POJO to recover data from the WS. Then the data control created from the POJO. You might have a method exposed on the POJO which allows you to filter the data internally that is held

    Frank

  • Filter the table data

    I use JDeveloper 11.1.1.3.0 and I created a table (as a master / detail) and I can't seem to get the filtering of data enabled for the table captain. I have the property "Filterable" of the column set to true, but can not see the boxes of filtering above each column. However, filtering is displayed for the secondary table.

    How can I get this to work? Or is not possible for a Master table having data filtering?

    Hi Anil,

    Can u please check that your Master ViewObject has viewCriteria and also check if the criteria name mapped in the median file your ViewObject as pageDef below
    ++
    ++

    One also check your master af:table this has now in your JSPX

    + filterModel = "#{bindings." EmployeesViewQuery.queryDescriptor}"queryListener =" #{bindings. " EmployeesViewQuery.processQuery}' filterVisible = 'true ' +.

    Kind regards
    Suganth.G

    Published by: celine on 18 January 2011 09:44

    Published by: celine on 18 January 2011 09:44

  • How to filter the by using (-) less symbol.

    Hello
    We use oracle EBS as OLTP. Sale of data stores the PO_HEADERS_ALL, PO_LINES_ALL table, which contains data of rejection/cancellation order.
    Rejected/cancelled in data store also the same tables. We are able to identify the base denied/cancelled quantity indicated (-) less symbol. (Example: Qty:-30), and the Amount column is also indicated as (-) less symbol. So, how to filter the data on quantity everything is indicated - less symbol in OBIEE.

    Kind regards.
    CHR

    Jay wrote:
    IF it is set to digital use function of cast to convert to a char, then using as check the reason for the less to be filtered in the filter condition formula.

    If you want to filter all values of negetive, then use filter: measure<0 in="" filter="">

    Hope this will help you.

    Thank you
    Jay.

    If the column was purely digital, why cast to CHAR? The OP can do everything suggested Robert Angel. My suggestion was where there was some other non-numeric values in the column that could be the reason why the column is CHAR, then using the SIMILAR filter operand would solve this problem.

    The first part of your suggesting was not necessary if the column is a numeric data type and the second part was just a repetition of what Robert.

  • Mobile Firefox is unable to filter the results of google by date

    I have mobile Firefox installed on my Nexus 4 side by side with Google Chrome browser. When I do a search on google in mobile Firefox I can't filter results by date, but I can't in Google Chrome browser.

    What Miss me?

    The function to filter the results of google by date is missing from the mobile firefox browser?

    Thank you

    It seems to be part of Google's strategy to dominate the world to retain some features of other browsers. I don't know if there is a solution to force search tools to display in mobile Firefox, but you can try the strategy adopted by another user faced with a deficit of function and use the fake extension to lie to the sites on which browser you use.

    See: Google local search does the same in Firefox as in Chrome. How to repair?

  • Display the value of the column automatically based on another column in a table

    Hello

    I use APEX 5.0, I have a requirement to display the field automatically based on the tabular presentation of other numbers.

    img.png

    in the screen shot attached above when I press Add button line a new line is created and enter the value in 'place no.', 'dept and identification of height place' when I press tab or get out of the column "height", "GID" should appear automatically.

    To display the GID my query will be like that. "Select GID from x where no = '1011' place and dept = 88 and height = 88'.

    How to get the value of from GID of the another value entered in Place no, dept and height in tabular form.

    Thanks in advance

    Ravi.

    Hi Ravi

    No need to point of Application or process. I just completed the task with the following steps

    (1) create 4 hidden items

    P2_SELWID

    P2_SELDEPTH

    P2_SELHEIGHT

    P2_CALCWNAME

    (2) gives 3 CSS classes in three columns of tables.

    . WID

    . DEPTH

    . HEIGHT

    (3) create the function jQuery for re - get three items from the page on a line if one of them has been changed.

    Add the following code to the function and the declaration of global variables

    function setRowItemValues(p_rownum){
        wid_col_id = 'f02_' + rownum ;
        wid_col_val = $('#'+wid_col_id).val();
        depth_col_id = 'f03_' + rownum ;
        depth_col_val = $('#'+depth_col_id).val();
        height_col_id = 'f04_' + rownum;
        height_col_val = $('#'+height_col_id).val();
        wname_col_id = 'f05_' + rownum;
        // set P2_SELWID,P2_SELDEPTH,P2_SELHEIGHT
        $s("P2_SELWID", wid_col_val );
        $s("P2_SELDEPTH", depth_col_val );
        $s("P2_SELHEIGHT", height_col_val );
        $s("P2_SELWNAMEID", wname_col_id );
        // Call the Dynamic Action to get WNAME if all values are not null
        if( wid_col_val != ''  && depth_col_val != '' && height_col_val != '' ){
            //Call DA to Get WNAME from WINT
            $.event.trigger("CalcWNAME");
            // set the Tabular form
            $('#'+wname_col_id).val($x("P2_CALCWNAME").value);
        }
    }
    

    and run when the Page loads

    $(document).on("change", ".WID,.DEPTH,.HEIGHT", function(){
        rownum = $(this).attr('id').substr(4);
        setRowItemValues(rownum);
    });
    

    (4) create a dynamic Action to get WNAME based on a PL/SQL function. Note the submitted page elements.

    CalcWNAME

    (5) set of the corresponding element in the line of the function jQuery, after completing the DA.

    Please check and I hope your problem is now solved.

    Concerning

    Mahmoud

  • Filter the VO with both parents your

    Hello

    I have a VO with two foreign keys from the two objects from view. I want to have a form with a table and a selectOneChoise as master user can filter the detail section by selecting the main table and selectOneChoise.

    How can I do this?

    Thank you

    Option one another (and probably better), is to use the built-in function:

    "Another key feature which is exclusive to the hierarchy of data model is that a view detail object instance can have multiple instances of object of quick mask mode. For example, a PaymentOptions instance of the view object can be a detail of both a Customers and a Orders instance of the view object. Each time that the current row is in the Customers or Orders object instance view changes, all default lines of retail PaymentOptions instance of the view object is updated to include the payment for the current customer information line and the current order. See section 39.1.6, "setting upward a model data with several masters ' for more information on creating an instance of the view object details with several masters. »

    View object Advanced Techniques

  • Mark from a table where the column value is a colon-delimited list

    Version: Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production

    Hello

    This is a new query of a query Frank helped me with: https://community.oracle.com/message/12506306#12506306

    Demand is all users to restrict the report based on a multiple selection on the front-end server (application APEX) filter.

    The filter returns that a colon-delimited list and the data in the table can be saved in a delimited by a colon list too. There may be 1 to n values (up to 4000 characters).

    I need a WHERE clause that will allow a match, if it exists, between the data in the column of the Table and the Mult-selection list filter.

    The abbreviated for this post query would be something like:

    SELECT slt_id, slt_item, slt_owner

    OF slt_dashboard

    WHERE slt_owner IN (colon delimited page list);

    The Create Table and Insert statements:

    CREATE TABLE slt_dashboard
    (
      dashboard_id  NUMBER,
      slt_id        VARCHAR2(10),
      slt_item      VARCHAR2(2500),
      slt_owner     VARCHAR2(4000),
      slt_type      VARCHAR2(25),
      slt_year      NUMBER,
      parent_id     NUMBER
    );
    
    --Insert slt_dashboard
    INSERT INTO slt_dashboard(dashboard_id,slt_id,slt_item,slt_owner,slt_type,slt_year,parent_id)
    VALUES (12,'1.1','Implement revenue enhancement initiatives','E15889:JPARISI:BDUR63','Business Commitment',2014,6);
    
    INSERT INTO slt_dashboard(dashboard_id,slt_id,slt_item,slt_owner,slt_type,slt_year,parent_id)
    VALUES (13,'1.2','Strengthen our Energy position','KVROMAN','Business Commitment',2014,6);
    
    
    

    I have a function to separate the list delimited by two points in a table for the IN clause, but because these values can be saved in a delimited list of Colon in the column of the Table, I have a problem, being able to analyze the data in the column, AND the filter data.

    The function is:

    CREATE OR REPLACE FUNCTION get_list( p_string IN VARCHAR2
                                        ,p_delimiter IN VARCHAR2 DEFAULT ':'
                                       )
        RETURN vc_array_1
        PIPELINED
    IS
        l_string VARCHAR2( 32000 );
        l_array wwv_flow_global.vc_arr2;
    BEGIN
        l_array     :=
            APEX_UTIL.string_to_table( p_string
                                      ,p_delimiter
                                     );
    
        FOR i IN l_array.FIRST .. l_array.LAST
        LOOP
            PIPE ROW ( TRIM( l_array( i ) ) );
        END LOOP;
    
        RETURN;
    END;
    
    
    

    The function called in the query in the form (it's just for reference in case someone wanted to know):

    SELECT ...
    FROM ...
    WHERE slt_owner IN (SELECT * FROM TABLE( get_list( :P115_SLT_OWNER ) ));
    

    But I can't use this approach because the data in the Table can be saved in a delimited list of Colon too.

    Desired output:

    If the Mult-Select list filter contains: E15889:JPARISI then

    1.1 implementation of the E15889 revenue improvement initiatives; JPARISI (it's a semicolon between the names)

    If the multiple-selection list filter contains: KVROMAN then

    1.2 strengthen our position of energy KVROMAN

    If the multiple-selection list filter contains: BDUR63:KVROMAN then

    1.1 implementation of the BDUR63 revenue improvement initiatives

    1.2 strengthen our position of energy KVROMAN

    Please let me know if something is not clear.

    Thank you

    Joe

    I went to approach the Table and the Page works perfectly.

    Thank you to everyone!

    Thank you

    Joe

Maybe you are looking for

  • Where can I get Windows XP for Satellite L305D-S5893 drivers?

    Hello! I can't find drivers for Win XP for Satellite L305D-S5893. I need your help to find it please because I want to change my OS but I need all the drivers to improve performance, I will apreciate your help. Thank you very much: ^ 0

  • Problem call Matlab external function under Labview 7.1

    Hello I have the problem when I want to call my m.file function in the script Matlab under Labview 7.1, that labview does not seem to be able to find this external Matlab function. I searched this forum, someone talked about setting search path in th

  • try to use Windows Update with Windows Mobile 6.1 gets error code 80072ee7

    First of all, I don't know why it is not a category to select Windows Mobile as the "main product" this issue is about.  Microsoft should really put in place the best support for their mobile products. That being said, here's my problem.  On my AT &

  • Aspire ATC-120-UC22 recognition memory?

    I have a system of costco. Acer Aspire ATC-120-UC22It came with 4 GB of memory (kingston) 1 stick of 4 GB-1600 I bought a 8 GB kit... crucial memory... 2 x 4 GB The system has 2 blue for memory and 2 black ports.The 4 GB stick was in the blue port an

  • Problem of naming the folder music

    When I insert files on my Clip +, the name of the music folders are fairly typical: "Poseidon - Music from the Motion Picture" and "Wicked - Original Broadway Cast Recording". "Yet when I search for the folder on my Clip + shows like: 0B050000_Poseid