Fill a text element to EXECUTE the QUERY

Fill a text element when a list item is changed by using the following code in a trigger WHEN-LIST-CHANGED:

SELECT ROOM_DESC IN: SESSIONS. ROOM_DESC OF ROOMS WHERE ROOM_REF =: SESSIONS. ROOM_REF;

It works fine but when I start a new form and click on run query that do not appear in the text element data.

What type of trigger can I use these data through when I press to run the query and if I can use the same code?

Bravo guys

Hello

This because when you pull, the trigger WHEN LIST-CHANGED does not occur. So, write the same line in the trigger after REQUEST of the block.

Kind regards

Manu.

If my answer or the answer to another person has been useful or appropriate, please mark accordingly

Tags: Oracle Development

Similar Questions

  • How to implement enter and execute the query in the ADF

    I'm new to ADF and I'm trying to create a simple data entry in ADF 11 g based on a database table. I'm looking to implement the equivalent of the request function enter and execute the query in Oracle Forms. I tried the default operations that are available with the data controls. But they don't seem to have this feature. Can someone help / tell me how this can be implemented.

    Thank you
    Srini.

    How to add a query Panel? Who has the most benefits that the use of Find.

    More info on af:query

    http://docs.Oracle.com/CD/E28389_01/apirefs.1111/e12419/tagdoc/af_query.html

    Arun-

  • How to execute the query

    I want to execute a specific request, but I have no idea about this please someone help me how to a specific query, run?

    Try this.

    Yes you can write this in next item key of you text element.

    Go_Block ('Your_Block_Name');

    Set_Block_Property ('Your_Block_Name', DEFAULT_WHERE, 'STUDENT_ID =' |: STUDENT_ID);

    Execute_Query (No_Validate);

  • How to execute the query automatically when a query is added, Panel

    Hello

    Jdev: 12.1.3

    I added a queryPanel (af:query) on my Page. Everything works fine when I do a search.

    I wish I had the original Version to run the query that is executed automatically when loading the page. How can this be achieved?

    What I have to do this explicitly, or is it a property that I can use?

    See you soon

    AJ

    You can generate the default display criteria again, setting the mode to automatic query.

    You generate default criteria by adding each attribute to a criterion without specifying and literal bind variable.

    Timo

  • Toggling text element based on the selection of a list item

    Hello friends,

    I have a header data block where I have a field to not enter the name of book and a REGD Item list that displays 'Yes' and ' ' and a text REG_NO element.

    When the user selects 'Yes', the text REG_NO element must be enabled so that the user can enter the number of the book.

    By choosing 'No', the REG_NO element must be disabled.

    I have included a trigger WHEN-LIST-CHANGED in the list REGD item.

    I added the following code in the trigger above:

    --=======================================

    BEGIN

    IF: HEADER. REGD = ' don't

    THEN

    SET_ITEM_PROPERTY('HEADER.) REG_NO', ENABLED, PROPERTY_FALSE);

    ON THE OTHER

    SET_ITEM_PROPERTY('HEADER.) REG_NO', ENABLED, PROPERTY_TRUE);

    END IF;

    END;

    --=======================================

    However, when the form is opened, the text REG_NO element is enabled.

    When the user chooses the 'no' in the list item REGD, then the text REG_NO element is disabled as expected.

    However, when you choose 'Yes' in the item list REGD, the text REG_NO element does not get activated.

    Can someone let me know how to activate the text element.

    Concerning

    Hawker

    When you disable an item, NAVIGALE, INSERT_ALLOWED, and UPDATE_ALLOWED properties are also set to False, then you will need to reactivate their when you reactivate an item.

  • Select the value of the text element based on the selection list

    Hello

    I have a selection list that displays a number of codes of a table, and I want to display the description of the code (from the same table) in a field of text next to it.

    The selection list works good based on an LOV, but I can't seem to find how to get the return value, so I can identify the correct description of the table to be displayed.

    Thank you

    See this link: http://htmldb.oracle.com/pls/otn/f?p=31517:80:6340934958598741:NO

    It will have a lov that calls an application process that fills a text box...

    Thank you

    Tony Miller
    Webster, TX

  • Error oracle FRM-40505 unable to execute the query

    Hi gurus,

    When query the values in host order of Super order management user

    The following error is displayed:

    FRM-40505: ORACLE error: cannot perform the query

    What is the solution for this error?

    Concerning

    SBJ *.

    Take a look at Metalink Note: "Troubleshooting FRM-40505 [ID 1004134.6].

    Khan

  • Can I do a fill for text that will give the effect of having a STROKE inside?

    I have included a photo to illustrate the kind of what I want and what I tried which is wrong.

    Basically, I'm trying to find a way to have multiple lines of color on my editable text using a custom fill. The main reason I'm keen it is to reach a stroke inside, which cannot be done on the text, without him be described.

    I tried to make a sample of color with two colors side to side and then by filling the text with it, but as you can see on the photo that was WRONG.

    I made a text to show sort of what I'm trying to achieve, but not the way I want to do.

    I found this post: http://forums.Adobe.com/message/1283239#1283239 who can achieve the same kind, but he is not done with fillings.http://img150.imageshack.us/img150/139/81698984.gif

    I see where you were going there but fill patterns do not operate in this way.  You're just a model, you do not have an attribute.

    To get a line inside your text, as described above, look at the appearance Panel.  It will allow you to add outlines and funding, reorganize in the stack of the object and apply effects to them individually (as well as for the whole of the object.)

    What you need to watch adds an extra line and then to get it within the limits of your type, use effect-> path-> path offset to give it a negative offset which is 1/2 of line width is.

  • TEXT ELEMENT THAT RECEIVES the VALUE OF LIST (ajax) SELECT

    I HAVE A LIST OF SELECTION WHO HAVE:

    In P2012_CLIENTE HTML_FORM_ATTRIBUTES:
    OnChange = "get_select_list_ajax(This,'P2012_REQUERENTE','COMBO_REQUERENTE_ITEM','COMBO_REQUERENTE_AJAX'); "class ="largura200";"javascript:pegaIDCLIENTE (this);""

    I PUT "javascript:pegaIDCLIENTE (this);"-> TO CALL THIS FUNCTION:
    function pegaIDCLIENTE (filter)
    {
    get var = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is COMBO_OP_CLIENTE', 0);
    Get.Add ('P2012_CLIENTE', filter.value);
    var ret = get.get ();
    If (ret)
    {
    var d = document.getElementById ('P2012_ID_CLIENTE');
    d.innerHTML = ret;
    }
    get = null;
    }

    THIS FUNCTION CALLS APPL COMBO_OP_CLIENTE PROCESS:
    DECLARE
    vidCliente NUMBER;
    BEGIN
    SELECT id_cliente INTO vidCliente FROM vw_cadastro_operador WHERE id_cliente =: P2012_CLIENTE;
    HTP.p (vidCliente);
    EXCEPTION WHEN OTHERS THEN
    HTP.p (not found customer!');
    END;


    but still, WHEM I RUN MY PAGE, on the evolution of the selection list, ELEMENT of TEXT 'P2012_ID_CLIENTE' is null...

    What wrong? Can you help me?

    Thank you

    Hello

    I have error on the application process

    Try this

    DECLARE
      vidCliente VARCHAR2(32000);
    BEGIN
      SELECT id_cliente
      INTO vidCliente
      FROM vw_cadastro_operador
      WHERE id_cliente = :P2012_CLIENTE;
      htp.p(vidCliente);
    EXCEPTION
    WHEN OTHERS THEN
      htp.p('no client found!');
    END;
    

    But it's strange if popup show & P2012_CLIENTE. When you have below javascript.
    It tells me that you don't have a component called P2012_CLIENTE. I may be wrong
    Popup should show the value of the P2012_CLIENTE element

    function pegaIDCLIENTE(filter)
    {
    alert('&P2012_CLIENTE.');
    var get = new htmldb_Get(null,$v('pFlowId'), 'APPLICATION_PROCESS=COMBO_OP_CLIENTE',0);
    get.add('P2012_CLIENTE', filter.value);
    var ret = get.get();
    if(ret)
    {
    $x_Value('P2012_ID_CLIENTE', ret);
    get = null;
    }
    get = null;
    }
    
  • Updated content item highlight when execute the query returns records to prevent

    Hello

    I use form 10g and I was wondering if it is possible to achieve the effect shows:

    The performance of a query for a block of data in data table, the content / the value of the first element in the first record returned is always highlighted. Is it possible to prevent this highlighting, and simply place the focus of the cursor on the 'start' of the field before the first character of the value of the element. Thanks in advance for any suggestions,

    Kind regards

    Kevin.

    Keep the position of the cursor to Yes Dungeon.
    Right after the call to the build-in execute_query try a synchronization;

  • Custom reports do not work anymore after the upgrade (APP-FND-00362: Routine afpbep can not execute the query)

    Dear all,

    Recently move from 11i to R12.2.5 on OEL7 with database 12.1.0.2

    I'm getting below error when you run the custom program.

    APP-FND-00362: Routine afpbep cannot run the APPLICATION asks for program & PROGRAM, because the BASEPATH & environment variable is not defined for the application to which belongs the competing executable & EXECUTABLE program.

    Stop concurrent managers. Set the basepath for the application environment variable. Restart concurrent managers. (VARIABLE =)

    Systematic AFPEOT cannot build the name of an executable file for your concurrent request 737552.

    Check that the file name components are correct and valid on your system. Check that the environment for the person who started the concurrent Manager

    I tried to add entries in adovars.env, as below...

    CUSTOM_TOP = < path >

    export CUSTOM_TOP


    Bounced A services CM, still getting the same error.

    Please provide your valuable contributions to solve the problems more far.


    Kind regards

    Kirushna.

    Yes, change the value, bounce the CM and then check.

    Thank you

    Hussein

  • Query takes more time to execute the query

    Hi all

    Want to help out me, I am request runing takes longer run time.

    Query:

    Select


    *



    Of


    (

    SELECT

    Decode (cla.r_description, 'Central région', 'CR', 'Southern', 'SR', "Northern Region", 'NR', 'Region of Mehran', 'SIR', 'Quetta HO', 'QHO') as a region.
    ''''|| TO_CHAR (trx.trx_number) as challan_Num,
    St.Account_Number as Roll_Number,
    St.party_name as Student_Name
    CLA.class_name: '-' | St.section as Class_Section,
    period.period_name as Fee_Period,
    pay. TRX_DATE as Issue_date,
    pay. End_date as end_date,
    Pay.due_date as valid_date,
    Amount pay.amount_due_remaining

    Of
    ra_customer_trx_all trx,
    St the_city_school_students,
    class_v_table cla,
    period of bill_period
    ar_payment_schedules_all pay
    WHERE

    Trx.attribute_category = nvl(:P_CHALLAN_TYPE,trx.attribute_category)
    AND trx.attribute2 = cla.fee_structure_id
    AND trx.bill_to_customer_id = st.cust_account_id
    AND trx.org_id = nvl(:p_org_id,trx.org_id)
    AND trx.attribute1 = period.period_id
    AND trx.customer_trx_id = pay.customer_trx_id
    AND cla.branch_id = NVL (: p_branch, cla.branch_id)
    AND to_char(trx.creation_date,'YYYY/MM/DD') between substr(:p_date_from,1,10) and substr(:p_date_to,1,10)
    and pay.amount_due_remaining > 0

    - AND cla.class_name = NVL (p_class, cla.class_name)

    UNION ALL

    Select

    decode (A.r_description region, 'Central', 'CR', 'Southern', 'SR', "Northern Region", 'NR', 'Region of Mehran', 'SIR', 'Quetta HO', 'QHO') as region
    acd. ADM_CHALLAN_NO as challan_Num
    bsr. STUDENT_REGISTRATION_NO as Roll_Number
    bsr. STUDENT_NAME as Student_Name
    British Colombia. Class_name as Class_Section
    ,' ' as Fee_Period
    acd. ADM_ISSUE_DATE as Issue_date
    acd. ADM_due_DATE as end_date
    acd. ADM_due_DATE as valid_date
    quantity (ac.original_total + ac.adm_original_optional_total)


    of bill_student_registration bsr
    adm_challan ac
    adm_challan_detail acd
    bill_class, BC.
    branch_network_region_link one

    where
    AC. STUDENT_REGISTARTION_ID = bsr. STUDENT_REGISTRATION_ID
    AND British Colombia. CLASS_ID = bsr. REGISTRATION_CLASS_ID
    AND a.BRANCH = bsr. BRANCH_ID
    AND ac.adm_challan_id = acd.adm_challan_id
    - and ADM_PAID = n
    AND bsr.ORG_ID = nvl(:p_org_id,bsr.ORG_ID)
    AND to_char (bsr. STUDENT_REGISTRATION_DATE, ' DD/MM/YYYY') between substr(:p_date_from,1,10) and substr(:p_date_to,1,10)
    AND decode (A.r_description region, 'Central', 'CR', 'Southern', 'SR', "Northern Region", 'NR', 'Region of Mehran', 'SIR', 'Quetta HO', 'QHO') is not null
    AND bsr. BRANCH_ID = NVL (: p_branch, bsr.) BRANCH_ID)

    )


    Union of all the

    SELECT

    Decode (cla.r_description, 'Central région', 'CR', 'Southern', 'SR', "Northern Region", 'NR', 'Region of Mehran', 'SIR', 'Quetta HO', 'QHO') as a region.
    ''''|| TO_CHAR (trx.trx_number) as challan_Num,
    St.Account_Number as Roll_Number,
    St.party_name as Student_Name
    CLA.class_name: '-' | St.section as Class_Section,
    period.period_name as Fee_Period,
    pay. TRX_DATE as Issue_date,
    pay. End_date as end_date,
    Pay.due_date as valid_date,
    Amount pay.amount_due_remaining

    Of
    ra_customer_trx_all trx,
    St the_city_school_students,
    class_v_table cla,
    period of bill_period
    ar_payment_schedules_all pay
    WHERE

    Trx.attribute_category = nvl(:P_CHALLAN_TYPE,trx.attribute_category)
    AND trx.attribute2 = cla.fee_structure_id
    AND trx.bill_to_customer_id = st.cust_account_id
    - AND trx.org_id = nvl(:p_org_id,trx.org_id)
    AND trx.org_id = nvl (trx.org_id, trx.org_id)
    AND trx.attribute1 = period.period_id
    AND trx.customer_trx_id = pay.customer_trx_id
    - AND cla.branch_id = NVL (: p_branch, cla.branch_id)
    AND cla.branch_id = NVL (cla.branch_id, cla.branch_id)
    AND to_char(trx.creation_date,'YYYY/MM/DD') < substr(:p_date_from,1,10)
    and pay.amount_due_remaining > 0
    and st.account_number in
    (
    SELECT distinct
    St.Account_Number as Roll_Number

    Of
    ra_customer_trx_all trx,
    St the_city_school_students,
    class_v_table cla,
    period of bill_period
    ar_payment_schedules_all pay
    WHERE

    Trx.attribute_category = nvl(:P_CHALLAN_TYPE,trx.attribute_category)
    AND trx.attribute2 = cla.fee_structure_id
    AND trx.bill_to_customer_id = st.cust_account_id
    AND trx.org_id = nvl(:p_org_id,trx.org_id)
    AND trx.attribute1 = period.period_id
    AND trx.customer_trx_id = pay.customer_trx_id
    AND cla.branch_id = NVL (: p_branch, cla.branch_id)
    AND to_char(trx.creation_date,'YYYY/MM/DD') between substr(:p_date_from,1,10) and substr(:p_date_to,1,10)
    and pay.amount_due_remaining > 0
    )

    Hello

    I see a lot of problem in your query.
    First, there is the request of duplication in Union all, who take.
    There is also the filter condition that is of no use.

    AND trx.org_id = nvl(trx.org_id,trx.org_id)
    
    AND cla.branch_id = NVL (cla.branch_id, cla.branch_id)
    

    Conditional is just out from the first query in the union. and again you choose the same lines using account_number, which is nothing else than the same thing.

    and st.account_number in
    (   SELECT distinct
         st.account_number as Roll_Number
    
         FROM
         ra_customer_trx_all trx,
         the_city_school_students st,
         class_v_table cla,
         bill_period period,
         ar_payment_schedules_all pay
         WHERE
    
         trx.attribute_category = nvl(:P_CHALLAN_TYPE,trx.attribute_category)
         AND trx.attribute2 = cla.fee_structure_id
         AND trx.bill_to_customer_id = st.cust_account_id
         AND trx.org_id = nvl(:p_org_id,trx.org_id)
         AND trx.attribute1 = period.period_id
         AND trx.customer_trx_id = pay.customer_trx_id
         AND cla.branch_id = NVL (:p_branch, cla.branch_id)
         AND to_char(trx.creation_date,'YYYY/MM/DD') between substr(:p_date_from,1,10) and substr(:p_date_to,1,10)
         and pay.amount_due_remaining >0 )
    

    so I think that under query will work

    SELECT
    decode(cla.r_description,'Central Region','CR','Southern Region','SR','Northern Region','NR','Mehran Region','MR','Quetta HO','QHO') as Region,
    ''''|| to_char(trx.trx_number) as challan_Num,
    st.account_number as Roll_Number,
    st.party_name as Student_Name,
    cla.class_name||'-'||st.section as Class_Section,
    period.period_name as Fee_Period,
    pay.TRX_DATE as Issue_date ,
    pay.DUE_DATE as due_date,
    pay.due_date as valid_date,
    pay.amount_due_remaining amount
    FROM
    ra_customer_trx_all trx,
    the_city_school_students st,
    class_v_table cla,
    bill_period period,
    ar_payment_schedules_all pay
    WHERE
    trx.attribute_category = nvl(:P_CHALLAN_TYPE,trx.attribute_category)
    AND trx.attribute2 = cla.fee_structure_id
    AND trx.bill_to_customer_id = st.cust_account_id
    AND trx.org_id = nvl(:p_org_id,trx.org_id)
    AND trx.attribute1 = period.period_id
    AND trx.customer_trx_id = pay.customer_trx_id
    AND cla.branch_id = NVL (:p_branch, cla.branch_id)
    AND (
         (trx.creation_date between TO_DATE(substr(:p_date_from,1,10),'YYYY/MM/DD') and TO_DATE(substr(:p_date_to,1,10),'YYYY/MM/DD'))
              OR
         (trx.creation_date < TO_DATE(substr(:p_date_from,1,10),'YYYY/MM/DD'))
         )
    and pay.amount_due_remaining >0
    UNION ALL
    select
    decode(A.r_description,'Central Region','CR','Southern Region','SR','Northern Region','NR','Mehran Region','MR','Quetta HO','QHO') as Region
    ,acd.ADM_CHALLAN_NO as challan_Num
    ,bsr.STUDENT_REGISTRATION_NO as Roll_Number
    ,bsr.STUDENT_NAME as Student_Name
    ,bc.CLASS_NAME as Class_Section
    ,' ' as Fee_Period
    ,acd.ADM_ISSUE_DATE as Issue_date
    ,acd.ADM_due_DATE as due_date
    ,acd.ADM_due_DATE as valid_date
    ,(ac.original_total+ac.adm_original_optional_total) amount
    from bill_student_registration bsr
    , adm_challan ac
    , adm_challan_detail acd
    , bill_class bc
    , branch_network_region_link a
    where
    ac.STUDENT_REGISTARTION_ID = bsr.STUDENT_REGISTRATION_ID
    AND bc.CLASS_ID = bsr.REGISTRATION_CLASS_ID
    AND a.BRANCH = bsr.BRANCH_ID
    AND ac.adm_challan_id = acd.adm_challan_id
    ---and ADM_PAID = 'N'
    AND bsr.ORG_ID = nvl(:p_org_id,bsr.ORG_ID)
    AND bsr.STUDENT_REGISTRATION_DATE between TO_DATE(substr(:p_date_from,1,10),'YYYY/MM/DD') and TO_DATE(substr(:p_date_to,1,10),'YYYY/MM/DD')
    AND decode(A.r_description,'Central Region','CR','Southern Region','SR','Northern Region','NR','Mehran Region','MR','Quetta HO','QHO') is not null
    AND bsr.BRANCH_ID = NVL (:p_branch, bsr.BRANCH_ID);
    

    Hope this helps

    Thank you!!!
    Didier

  • How to execute the query of a View object in the doDML() method?

    Dear all
    I'm new with ADF.
    I have a READ ONLY display object called CurrencyRatevo.
    Select f_get_rate(:p_cur_id) From Dual
    This VO calculates the rate of change.
    And I have a "ExpenseTransaction" entity object for expenditure operations. This EO contains an attribute called "CurrRate" for the exchange rate.
    This attribute must be filled automatically before saving it.

    I like to write code in the method doDml() to populate the attribute 'CurrRate' of the result of the 'CurrencyRatevo '.
        protected void doDML(int operation, TransactionEvent e) {
            super.doDML(operation, e);
    // after insert operation
    // I want to get the result of the "CurrencyRatevo". and populate the attribute" CurrencyRatevo"
        }
    }
    Can someone help me to cela, or has another solution?
    Thank you

    @santosh
    David wrote: well Yes... you can not access the vo eo...

    That is not exactly true.

    @ta *.
    >
    I like to write code in the method doDml() to populate the attribute 'CurrRate' of the result of the 'CurrencyRatevo '.
    >
    You can do by following these steps:
    1 - go to the entity of ExpenseTransaction and accessors in view an accessor to add to CurrencyRatevo.
    2 - override doDML () method, something like this code

        @Override
        protected void doDML(int i, TransactionEvent transactionEvent) {
            if(i==EntityImpl.DML_INSERT)
            {
                RowSet departmentsView1 = this.getDepartmentsView1(); //replace this with your ViewAccessorName
                departmentsView1.setNamedWhereClauseParam("p_cur_id", 10);
                departmentsView1.executeQuery();
                DepartmentsViewRowImpl first = (DepartmentsViewRowImpl)departmentsView1.first();
                this.setCurrencyRatevo(first.getDepartmentName());
            }
            super.doDML(i, transactionEvent);
        }
    

    Published by: Mohammad Jabr on April 26, 2012 11:18

  • Need to execute the query twice in order to get results

    I have a query in which I need to run twice in a row to obtain results. The first round returns no value and each race after which returns lines expected.

    Any ideas?

    Champion wrote:
    I have a query in which I need to run twice in a row to obtain results. The first round returns no value and each race after which returns lines expected.

    Any ideas?

    Well, when I run a query through TOAD, SQL or SQL Developer *, it results the first time.

    So what you do differently? Or are we supposed to guess forever?

    {message: id = 9360002}

  • How to operate the user enter value query and get the result on the text element

    Hello

    I'm really beginning to JDeveloper and ADF, I want to execute the query below, before with forms, I just add: TEXT_NAME to enhance the users entries, what should I do now with ADF, really unclear question and I would be grateful all help with that.

    Select
    NVL (min (substr (a.StartTime, 1, 8)), 0) Service_Start_Time, nvl (sum (a.sessionvolume), 0) Total_Traffic_KB
    Of
    aaa_bill one
    where
    msid =: TEXT_ITEM
    and starttime > = (select max (fee) FROM aaa_bill
    where msid =: TEXT_ITEM and accountreason = 5);

    You can use a form of parameter ADF for this requirement.
    https://blogs.Oracle.com/Shay/entry/combining_multiple_queries_and

Maybe you are looking for