Disable the text with the selection query list element?

4.2.1

THM:2

Hi all

In the full text with Auto item, is the query preloaded when the page loads? Or is it run only when the user enters any text? Reason being that on the follow-up to our application apex because of a performance issue, it was noted that the query associated with the AutoComplete text box was running 3 times, (it has been referred to in 3 places on the same page in a sql report. We feel that the sql would be only when someone starts to enter a value in the field? If this isn't the case, we can disable to run when the page loads?

In addition, if the text with Auto C is used in the where clause of a sql report, would it be internally run the underlying sql query? Should he treats not only as a text element?

Thank you

Ryan

Hi Ryan,

Please see the concept of lazy loading of AutoComplete.

http://blog.whitehorses.nl/2010/02/25/Oracle-Apex-4-0-text-field-with-AutoComplete/

-Sunil Bhatia

Tags: Database

Similar Questions

  • How do I disable a text field or select list when I change record.

    Dear Sir.

    I created the form with the report when I insert the new record, then all ground are able to insert the value in the table.

    Here I want to when I change any folder, then a field as a TEXTFIELD or select list, which I should be disabled in the case of a CHANGE.



    How do I disable a text field or select list when I change record.



    Thank you

    CORINE

    Hello

    Edit the element... There is a Readonly tab... Enter the condition for readonly... for example... Suppose you have a hidden field P1_X for the primary key. To add the new record, this field will be null and for editting p1_x will have the primary key value...

    So you can make the condition as P1_X readonly IS not null...

    Kind regards
    Shijesh

  • The select query-based search page...

    I want to create a basic search page at the base on a select query.

    The select query will not be based on Table.Its based on functions.

    I created a view like this object

    Select xx_test_accruals(:p_date) of ACCUMULATION: p_date double DT

    I created a search page

    In the area of provision of Home Page, I added a region of the query. In this region of request I created a result based research Table.

    When I run the page opens with the field

    DT

    When I get back the date and click go, I get the error message like this...

    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: 27122 Houston: SQL error in the preparation of the statement. Statement: SELECT * FROM (select xx_test_accruals(:p_date) of ACCUMULATION: p_date double DT) QRSLT WHERE ((UPPER (DT) like: 1 AND (DT as: 2 OR DT as: 3 OR DT as: 4 OR DT as: 5)))



    Help, please

    Published by: [email protected] on October 4, 2009 14:04

    Hello

    I tried it on my machine... There is a little change on the approach.

    See we have a display object: XxAccrualsSummaryVO

    the query is

    Select xx_test_accruals (to_date (: 1, 'YYYY-MM-DD')) DT ACCRUAL, double to_date(:2,'YYYY-MM-DD')

    Create a view property object: say DateTestPVO and create a transitional DATE type attribute say dated. MinValue. How to create the View Object(read in dev guide) property.

    Link the date to DateTestPVO text entry and the date attribute. MinValue.

    Now that the page will load in process request initialize the PVO not XxAccrualsSummaryVO.

    Public Sub initialisePVO()
    {

    OAViewObject vo = (OAViewObject) getDatePVO1 ();
    If (! vo.isPreparedForExecution ())
    {
    vo.setMaxFetchSize (0);
    }
    Line = vo.createRow ();
    vo.insertRow (row);
    row.setNewRowState (Row.STATUS_INITIALIZED);

    }

    And when you press the Go button and then enter the date entered and set the location where the XxAccrualsSummaryVO clause.

    If (PageContext.GetParameter ("Go")! = null)
    {
    Get the value entered by the user in the date field.

    DateField OAMessageDateFieldBean = (OAMessageDateFieldBean) webBean.findIndexedChildRecursive ("text");
    String datetest = (String) dateField.getValue (pageContext) m:System.NET.SocketAddress.ToString ();
    Now set the where clause VO settings.
    OAViewObject vodate = (OAViewObject) am.findViewObject ("invoicetestVO1");
    vodate.setWhereClauseParams (null);
    vodate.setWhereClauseParam(0,datetest);
    vodate.setWhereClauseParam(1,datetest);
    vodate.executeQuery ();
    }

    It works perfectly... I tested it.

    Thank you
    Gerard

  • How to store results of the select query in the tables.

    I created a variable varray type and now want to assign some data of output of the select query in pl/SQL, as well as in reports 6i.

    You are in the wrong forum (this is for problems with the SQL Developer tool). You were the one where you have published first on the right, but not to reuse independent threads as you did.

    Kind regards
    K.

  • How to optimize the select query executed in a cursor for loop?

    Hi friends,

    I run the code below and clocked at the same time for each line of code using DBMS_PROFILER.
    CREATE OR REPLACE PROCEDURE TEST
    AS
       p_file_id              NUMBER                                   := 151;
       v_shipper_ind          ah_item.shipper_ind%TYPE;
       v_sales_reserve_ind    ah_item.special_sales_reserve_ind%TYPE;
       v_location_indicator   ah_item.exe_location_ind%TYPE;
    
       CURSOR activity_c
       IS
          SELECT *
            FROM ah_activity_internal
           WHERE status_id = 30
             AND file_id = p_file_id;
    BEGIN
       DBMS_PROFILER.start_profiler ('TEST');
    
       FOR rec IN activity_c
       LOOP
          SELECT DISTINCT shipper_ind, special_sales_reserve_ind, exe_location_ind
                     INTO v_shipper_ind, v_sales_reserve_ind, v_location_indicator
                     FROM ah_item --464000 rows in this table
                    WHERE item_id_edw IN (
                             SELECT item_id_edw
                               FROM ah_item_xref --700000 rows in this table
                              WHERE item_code_cust = rec.item_code_cust
                                AND facility_num IN (
                                       SELECT facility_code
                                         FROM ah_chain_div_facility --17 rows in this table
                                        WHERE chain_id = ah_internal_data_pkg.get_chain_id (p_file_id)
                                          AND div_id = (SELECT div_id
                                                          FROM ah_div --8 rows in this table 
                                                         WHERE division = rec.division)));
       END LOOP;
    
       DBMS_PROFILER.stop_profiler;
    EXCEPTION
       WHEN NO_DATA_FOUND
       THEN
          NULL;
       WHEN TOO_MANY_ROWS
       THEN
          NULL;
    END TEST;
    The SELECT inside the LOOP FOR cursor query took 773 seconds.
    I tried to use COLLECT in BULK instead of a cursor for loop, but it did not help.
    When I took the select query separately and executed with a value of the sample, and then he gave the results in a Flash of a second.

    All tables have primary key index.
    Any ideas what can be done to make this code more efficient?

    Thank you
    Raj.
    DECLARE
      v_chain_id ah_chain_div_facility.chain_id%TYPE := ah_internal_data_pkg.get_chain_id (p_file_id);
    
      CURSOR cur_loop IS
      SELECT * -- better off explicitly specifying columns
      FROM ah_activity_internal aai,
      (SELECT DISTINCT aix.item_code_cust, ad.division, ai.shipper_ind, ai.special_sales_reserve_ind, ai.exe_location_ind
         INTO v_shipper_ind, v_sales_reserve_ind, v_location_indicator
         FROM ah_item ai, ah_item_xref aix, ah_chain_div_facility acdf, ah_div ad
        WHERE ai.item_id_edw = aix.item_id_edw
          AND aix.facility_num = acdf.facility_code
          AND acdf.chain_id = v_chain_id
          AND acdf.div_id = ad.div_id) d
      WHERE aai.status_id = 30
        AND aai.file_id = p_file_id
        AND d.item_code_cust = aai.item_code_cust
        AND d.division = aai.division;         
    
    BEGIN
      FOR rec IN cur_loop LOOP
        ... DO your stuff ...
      END LOOP;
    END;  
    

    Published by: Dave hemming on December 4, 2008 09:17

  • passing parameters to the select query in DB link to call him...

    I have a DB link that executes the select query based on user specified parameter.

    Now, I created an invoke activity and specified input [which must be passed to the query] and output parameters [it is the result of the query]. That invoke link activity DB calls in which a parameter was created to be used in the select query. So my question is, DB link partner take the input parameter of call activity automatically or do we need to specify a mapping for this?

    When you create a partnerlink db the setting that you create for your chosen matches the entry and when you create the variable entry in the invoke for this partnerlink is created with the type of the parameter.

    Create an assignment before your invoke and assign a value to the input variable that you created in the invoke. This value will be passed and used as a parameter in the selection.

    Heidi.

  • as with the select query

    Hello

    I have a query something like...

    Select...

    ....

    where

    b.ProdName as 'GEAR of the TREE %' or b.prodname like '% FRONT GEAR %' or b.prodname like '% BREAK 4 %k '.

    and

    b.ProdName as

    (select the name of the society of companyms

    where < some comdition >

    )

    order of 3.6

    I have blocked in:

    b.ProdName as

    (select the name of the society of companyms

    where < some comdition >

    )

    How to give a select query with like operator.

    In above query I want to b.prodname as above and the name of the company for which I give condition.  Company names are stored in another table and I want to select and use them with like operator.

    Thank you.

    Hello

    It is not clear what you want to do.

    One possibility is an EXISTS subquery, like this:

    ...

    WHERE (b.prodname LIKE "% of the CYCLE of the TREE" - begins with this text

    OR b.prodname LIKE '% FRONT GEAR %' - contains this text

    OR b.prodname LIKE '% BREAK 4 %k' - contains this text

    )

    AND THERE ARE)

    SELECT 1

    OF companynms

    WHERE--a condition

    AND b.prodname AS business

    )

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the results desired from these data.
    Explain, using specific examples, how you get these results from these data.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

  • When I pull the select query, but therefore cannot get the data that you check?

    Hello

    When I raised this query without get data then can you help me it's ok?

    DataSource {
                            id: durgSearch_dataSource
                            source: "sql/durg.db"
                            query: "select * from durg_detail where durg_name =" + "\"" + searchTextField.text + "\""
                            onDataLoaded: {
                                durgSearch_dataModel.insertList(data);
                            }
                        }
    

    Glance. I just tested your app and it works correctly. I entered Rock and search button and it returns a Rock record. If you want to get all records that contain a particular letter or Word, you can use the following query:

    "select * from medicin_detail where PharmacyName LIKE '%" + searchTextField.text + "%'"
    
  • Error in the SELECT query

    Hello

    Oracle version: 11g R2 (11.2.0.2)

    I get the following error message (I'm using TOAD for Oracle last version 12.1):

    ORA-12801: error reported in the parallel query P032 Server

    ORA-01114: block write IO file error (block #)

    ORA-01114: IO error to the file 201 (block # 2165248) writing block

    ORA-27072: IO file error

    Linux-x86_64 error: 28: no space is available on the device

    Additional information: 4

    When you run a SELECT query:

    SELECT field1, Field2...

    OF (REVENUE_SOURCE b

    INNER JOIN ACCOUNTS_CLASSIFICATION one

    WE b.SUB_ACCOUNT = a.SUB_ACCOUNT)

    INNER JOIN REPORT_PRODUCT_ID c

    ON b.REPORT_PRODUCT_ID = c.REPORT_PRODUCT_ID

    WHERE a.UC_BUSINESS_UNIT = 'ANX.

    AND b.report_mm > =.

    (SELECT ADD_MONTHS (MAX (report_mm),-13))

    OF REVENUE_SOURCE)

    AND b.REVENUE_FLAG = - 1

    AND (b.CALLS <>0 b.MINUTES <>0 b.CHARGE_AMOUNT GOLD <>GOLD 0);

    Please notify.

    NOTE: the query worked well for a while, no errors, then all suddenly it became much accentsr and then I started to get the error message above.

    Kind regards

    M.R.

    Hello

    ORA-27072: IO file error

    Linux-x86_64 error: 28: no space is available on the device

    Looks like a system or OS, no SQL or PL/SQL problem problem.  I think you will answer sooner if you check this issue as 'Response' and start a new question in the forum of "General Question":

    https://forums.Oracle.com/community/Developer/English/oracle_database/general_questions/content

    My guess is that Oracle tries to allocate space in the tablespace temp, but cannot because the disk is full.  If you have a full disk, then create the space to this topic.

    I see nothing wrong with your code; Certainly, nothing which would cause an error like that.  The fact that the query has worked well for some time confirms that there is noting wrong with the request itself; It is just triggering a mistake elsewhere.

  • Formatting of the Select query

    The following select query returns the data in green.  How do I format to return the path that it is formatted in red?

    Basically, if FIELD1 is "Customer A" and FIELD2 is "Gas" then I back to 'New customer' Field1 and Field2 'gas '.  If 'Customer E' FIELD1 and FIELD2 is 'Total' then it should return 'E rejection' in Field1 and 'Prod_Discharge' in the Field2.

    Please let me know if my question is not sensible or need to be clarified.

    SELECT

    DECODE (Field1, 'Nine', ' A', 'Old', 'E', 'Term', 'F', Field1)

    DECODE (Field2, 'Prod', 'Gas', Field2)

    Customers

    FIELD1 FIELD2

    Customer A gas

    Customer has oil

    Total customers E

    Customer F Total

    Need to format as follows:

    Field1 Field2       

    New gas customer          

    New customer oil      

    E Prod_Discharged releases          

    F Prod_Discharged releases

    Try this:

    SELECT CustomerID

    , CASE WHEN field1 = 'Customer A' THEN 'new customer '.

    WHEN field1 = 'Customer E' AND field2 = 'Total' THEN 'E releases '.

    WHEN field1 = ' customer F ' AND field2 = 'Total' THEN 'F performs ".

    Of ANOTHER Field1

    FIELD1 AS END

    , CASE WHEN Field1 IN ('E of customer', ' customer F ') AND field2 = 'Total' THEN 'Prod_Discharged '.

    Of OTHER Field2

    END AS FIELD2

    Status

    Customers

    ;

  • How to write the select query for it

    Hello

    I had an html form and the area I drop down and he needs to select several values in the drop-down box. When I select multiple values then I have to write the query to SQL select statement.

    When I try to write the select statement and trying to run I get the error message.

    Select * from Table

    where emo_no = '1,2,3 '.

    That's how I write the query please suggest me how to write the query to select several values in the drop-down box.

    Thank you

    Use the keyword sql 'in '.  If you don't know how, I've heard good things about the book Teach Yourself SQL in 10 Minutes by Ben Forta.

  • Best way to detect the select event list?

    Hello

    I have a ListField where I get many elements of the list. Whenever we choose any item in the list, I would like to immediately detect which line is selected with its data. What is the event to be perfect to achieve this goal? I tried, 'invokeAction', but is not detected when any list item is selected in the listview.

    Thank you.

    I prefer this and then adding a listener to changes to the ListField.  In the FieldChangeListener, you must use "getSelectedIndex".

    SerializableAttribute public class ClickableListField extends {ListField

    protected boolean navigationClick (int status, int time) {}
    this.fieldChangeNotify (3);
    Returns true;
    }

    protected boolean touchEvent (TouchEvent message) {}
    If click process changed field
    If (message.getEvent () == TouchEvent.CLICK) {}
    this.fieldChangeNotify (3);
    Returns true;
    }
    Return super.touchEvent (message);
    }

    }

  • Unable to display in the select query status

    Dear all,

    I have the case. I want to select data in difficult condition. I have three table follow:
    CREATE TABLE "TABLE1" ("vID" CHAR(2)
    ,"vDesc" varchar2(500)
    ,CONSTRAINT "PK_TEST_RTK1" PRIMARY KEY ("varID"));
    
    CREATE TABLE "TABLE2" ("varID" CHAR(2),"vID" CHAR(2)
    ,"varContent" varchar2(500)
    ,CONSTRAINT "PK_TEST_RTK2" PRIMARY KEY ("varID"));
    
    CREATE TABLE "TABLE3" ("variableID" CHAR(2)
    ,"variableDesc" varchar2(500)
    ,CONSTRAINT "PK_TEST_RTK3" PRIMARY KEY ("varID"));
    
    select * from TABLE1;
    vID | vDesc
    A1 | JAKARTA
    A2 | BANDUNG
    
    select * from TABLE2;
    varID | vID | vContent
    B1 | A1 | 121,222
    B2 | A2 | 444,334
    
    select * from TABLE3;
    variableID | variableDesc
    121 | goods1
    222 | goods2
    334 | goods3
    444 | goods4
    Then, I was query as below:
    select a.vID,a.vDesc,c.variableDesc,''''||replace(b.vContent,',',''',''')||'''' xxx
    from TABLE1 a 
    inner join TABLE2 b on a.vID=b.vID
    left join TABLE3 c on c.variableID in (''''||replace(b.vContent,',',''',''')||'''')
    the result is:
    vID | a.vDesc | c.variableDesc | xxx
    A1 | JAKARTA | | 121,222
    A2 | BANDUNG | | 444,334
    Why the c.variableDesc is null?
    What is the query assumes that the result only 1 as parameter below?
    c.variableID in (''''||replace(b.vContent,',',''',''')||'''') --> c.variableID in ( {'121','222'} )
    c.variableID in (''''||replace(b.vContent,',',''',''')||'''') --> not c.variableID in ( {'121'},{'222'} )
    Please please need your help. Thnks a lot.

    Published by: BluShadow on August 23, 2011 13:47
    applied {noformat}
    {noformat} tags.  Please read {message:id=9360002} to learn to format you code/data yourself.
    
    
    sorry correct
    
    CREATE TABLE "TABLE1" ("vID" CHAR(2)
    ,"vDesc" varchar2(500)
    ,CONSTRAINT "PK_TEST_RTK1" PRIMARY KEY ("vID"));
    
    CREATE TABLE "TABLE2" ("varID" CHAR(2),"vID" CHAR(2)
    ,"varContent" varchar2(500)
    ,CONSTRAINT "PK_TEST_RTK2" PRIMARY KEY ("varID"));
    
    CREATE TABLE "TABLE3" ("variableID" CHAR(2)
    ,"variableDesc" varchar2(500)
    ,CONSTRAINT "PK_TEST_RTK3" PRIMARY KEY ("variableID"));
    
    Edited by: Rahardi Trisna on Aug 23, 2011 7:15 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    Hello

    You need something like this:

    select  a.vID
    ,     a.vDesc
    ,     c.variableDesc
    ,     '''' || replace (b.vContent,',',''',''') || ''''     xxx
    from          TABLE1  a
    inner join  TABLE2  b  on   a.vID  = b.vID
    left join   TABLE3  c  on   0        < INSTR ( ',' || b.vcontent   || ','
                                                         , ',' || c.variableid || ','
                                )
    ;
    

    If you would care to post CREATE TABLE and INSERT instructions for the sample data, and then I could test it.

    Do not forget how TO MARKET:

    x to (y1, y2,..., yn)

    Returns TRUE if x is equal to one of the ys (there may be 1 to 50 points in the list). In your case, x is perhaps a 3 shot characters like "222", and there is only 1 point in the list, a long string such as

    '121','222'
    

    This string contains 11 characters, it will not equal to any string that contains only 3 characters.

  • features of advanced search on the selection of several elements in a specific list

    Hello

    I use Jdeveloper Studio Edition Version 11.1.1.1.0, ADF BC.

    As I've recently switched to this new version of Jdeveloper, I was wondering if it is possible to have the functionality of advanced search on multiple values from a list instead of just a single value.

    Here's an example, let's assume that this status is falling to the bottom of the list with the values A, B, C and d. (and there may be also some related text inputs it.)
    In seeking, I want to get the lines whose status is saying; either A or b.

    PS: I want to ensure that a solution is available in JHeadStart.


    Best regards

    Carine Sylvain Perreault

    Sylvain Perreault,

    If you want to get a drop - downgrade in your LOV based on the model, you define a ViewAccesor in your VO, and a list of values against your VO attribute.
    Note that it is possible to define a View object that reads values from a static list, you can then set the ViewAccessor and LOV against this static VO. Check out the blog of thos for more information:

    http://one-size-doesn

    Steven Davelaar,
    JHeadstart team.

  • Change the select query column

    I have a query:

    Select * from)
    Select the COUNTRY, FISCAL_QTR, NET_REV
    of OCM_TRANSACTION
    )
    Pivot
    (
    Sum (NET_REV)
    for FISCAL_QTR in ("2009Q 4' as '2009Q 4', '2010Q 1' as '2010Q 1')
    )
    order by COUNTRY

    It displays the COUNTRY, 2009Q 1, Q 2009, 2 in the PivotTable.
    Now I LOV list, if you choose to GEM, the query is able to change

    Select * from)
    Select GEM, FISCAL_QTR, NET_REV
    of OCM_TRANSACTION
    )
    Pivot
    (
    Sum (NET_REV)
    for FISCAL_QTR in ("2009Q 4' as '2009Q 4', '2010Q 1' as '2010Q 1')
    )
    order by GEM

    Can someone help me on this?
    Thank you

    No problem, did you work?

Maybe you are looking for

  • Satellite P500-1DZ starts only with remote control

    Hi, I just bought a new laptop Satellite P500 after owning a P200-13Z and P300-160 years without ever having had a problem with one of them. I have a problem with the P500-1DZ that I bought because it does not start the power button when he was arres

  • Possible scam

    I received an invoice by e-mail for 2 app purchases that I don't even have thoughs apps. I went to click Cancel and note that the text of the link said it was apple but the actual url was different. On this Web site, it looks fake as the buttons on t

  • Supcase arrived today...

    of the Amazon.

  • Emergency aid - T430s delivered with non-functional keyboard

    Had a delivery of a T430s today and the keyboard does not work. I type several keys such as enter button several times before it recognizes the press. Performed other keys are space, and DELETE. I will telephone technical Support, an idea on what to

  • Error in InetCPl.cpl

    entry: erase my traces of process