How to implement enter-query , execute-query in Apex Forms

Hi,
I am new to Oracle Application Express. I want to know what is the equivalent of ENTER-QUERY and EXECUTE-QUERY features of Oracle Forms in Oracle APEX? I saw a lot of documentation, but everywhere I found that APEX forms only have 3 database actions, (1) INSERT (2) UPDATE & (3) DELETE.
Does anybody know how we can do QUERY in APEX Forms? (like we do in Oracle Developer Forms).
Thanks in advance.

Oracle APEX is a web/ stateless environment. So you do not have the same functionality/ features as in a Oracle Forms environment which is session/state oriented.
You can however achieve functionality similar to Enter Query / Execute Query through other means.
The easiest is to use the Forms with Report wizard. It creates 2 pages, the first one is a report and the other a Form. Clicking on the Report rows takes you to the Form page in Edit mode where as the the Create button takes you to the Form in Insert mode.
If you want to have the enter-query / execute query on a single page it will require significant effort and skills. Try it when you have acquired some more skills in Apex.
In APEX , like any other web application, you have to think in the web paradigm and not client-server. Even Forms 11g is essentially client-server like and is session oriented through the forms applet.
Regards,

Similar Messages

  • How to implement enter and execute query in ADF

    I am new to ADF and I am trying to create a simple data entry screen in ADF 11g based on a database table. I am looking to implement the equivalent of the Enter Query and Execute Query feature 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 me / point me to how this can be implemented.
    Thanks,
    Srini.

    Thanks Shay. As per your suggestion I have included the Find and Execute buttons for the VO Object and ran the page. I first clicked the Find button and entered by query condition and then clicked the Execute button. At this point I get an error popup asking me to enter values for all the mandatory fields. Am I missing something?
    Regards,
    Srini.

  • How to display LOV on web in ENTER-QUERY mode with form or block query only.

    Hello all
    How can I display lov automatic on the web in from enter-query
    mode in form or block query only mode.
    thankx

    If I understand correctly your explanation, your called form
    fails to activate the LOV in enter-query mode when it is deployed
    and test on the browser.
    So lets proceeed like this, to make it work in all environments,
    let us programetically activate the LOV.
    HOW?
    In the called form, write in the WHEN-NEW-ITEM-INSTANCE TRIGGER
    at block level (if have more than one LOV)
    IF :SYSTEM.MODE = 'ENTER-QUERY' THEN
    IF get_item_property(:system.cursor_item,lov_name) IN ('YOUR
    LOV1', 'LOV2' etc) THEN
    IF SHOW_LOV(get_item_property(:system.cursor_item,lov_name))
    THEN
    NULL;
    END IF;
    END IF;
    END IF;
    The above code maybe tweak to suite your need and condition.
    This way, we explicitly make the LOV appear in ENTER-QUERY mode
    whenever the user clicks on an item with an attached LOV.
    Hope this helps.
    Mohammed R.Qurashi

  • How to implement  post-query in bc4j or JClient

    How to implement post-query in bc4j or JClient ?
    Does any one know if I want to select some data from other table after every populate record,
    like someing doing in post-query of Oralce Forms?
    where and how to do this ?

    If yout need post-query for filling descriptive colums (eg. department name in emploees) you should build a view object which includes the descriptive colums by joining the relevent tables

  • How to implement a Query iView based on user's parameter?

    Hello,
    I've created a Query iView which depends on a Costumize parameter that the user enters. My question is, after creating this iView, how Do I implement it at the Portal so the user will have a place to enter his parameter and receive the result? I tried simply put it on a Page but that didn't do the job... which configurations should I di in order it to work?

    hello,
    does anybody find a clue to solve this problem?
    thx!

  • How to implement the query switch?

    Hi all:
         could you please tell me how to do query switch , for example, as I click on the characteristic field , then the query switch to another query or ABAP report ?
    thank you very much

    Hi Sony,
    if i really understood you, you will like to jump from one query to an ABAP Report or another Query.
    Here are the steps:
    1.Run T-code RSBBS.
    2.In the One Query tab enter the technical name of the Query
    3. In the One Query tab select or enter a technical name of a query
    4. Click on the create Button
    5. Select one Report type: u201CABAP Reportu201D
    6. n the tab Target System: u201CLocalu201D
    7.Enter the Report Title
    8. Click on save
    9. Execute your Query in Bex Analyzer
    10.Right-click on any value in the table --> Choose Goto
    I hope it could be helpful.
    BR
    Gilo

  • How to implement Quick Query and Saved Searches in ADF?

    We are using 11gR2 ADF.
    The requirement is to enable Quick Search and save the Searches.
    In the Oracle ADF documentation, it is mentioned that
    - Create a view with view criteria named.
    - In the .jspx drag and drop the view criteria and Select Quick Query
    Upon doing the above, we see that a Search panel is getting created, but with a message 'No Search Fields Added'.
    In the named view criteria, Under 'UI Hints' we have set
    -- execution mode as Both
    -- Search region mode is Basic
    -- Show Operators in Basic
    Under 'Criteria Definition'
    the attributes are added in a group with OR condition.
    Thanks for your reply. Oracle ADF developer guide does not help!!
    If you have any other documentation that helps in implementing this Quick Query and Saved Search, your help is greatly appreciated.

    Set the following on your af:query component
    SaveQueryMode = hidden
    ModeChangeVisible = false
    This should work for you ..
    Regards,

  • How to implement nexted query in BI answers

    Is there any option to implement nested SQL in BI answer request ?
    SQL , like
    select d.ft,count(d.ft)
    from
    select my_id,min(event_time) ft
    from my_table
    group by my_id
    ) d
    group by d.ft
    order by d.ft;
    Thank you.

    I have solved this problem by creating a view inside the database and running BI report against the view.
    But still i think that such a basic feature to run nested query or report should exist.
    Michael

  • How to implement sql query in cmp bean?

    let's say that i want to join two tables and use grouping, counting and sorting expresion. it is no problem with sql query but what about cmp bean?
    of course i can make one bmp bean or session bean and run directly sql expresion, but then what is the point of using cmp beans?
    thanks
    winnicki

    If yout need post-query for filling descriptive colums (eg. department name in emploees) you should build a view object which includes the descriptive colums by joining the relevent tables

  • How to extract a query in EXCEL Form using ABAP?

    Hi,
      is there a way using ABAP to extract the results from a specific BW Query and save them in an EXCEL format file?

    Hi,
    You can do it by using InfoSpoke or RSCRM_BAPI.
    see in the following URL, there one blog  in(https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy)
    How to transfer the Data from SAP-System to Non-SAP system without additional Cost/License
    /people/surendrakumarreddy.koduru/blog/2009/03/11/how-to-transfer-the-data-from-sap-system-to-non-sap-system-without-additional-costlicense
    Re: Running Quaries automatically and saving them in as a Excel file in Server
    Re: Data transfer to external systems
    Re: Loading from a Custom R/3 Table
    Re: How can I schedule my Bex report to execute in background
    Re: How can I insert the RSCRM_BAPI into Process chain?
    Thanks
    Reddy

  • How to debug a query in Apex

    Hi all,
    I have written a query under region source in interactive reports
    select getTextColumnByID(:ID,OHR_PARAMETERS,VALUE) as Description,max_mark from max_marks where
    employee_id='Z901234';and it throws error as ORA-00904: "VALUE": invalid identifier
    How do i debug and locate the probelm?
    thanks

    No it does not work,,It throws the same error.I found the problem its because the query throws multiple rows where only one row is expected.
    the query should be like
    select getTextColumnByID('ID','OHR_PARAMETERS','VALUE') as Description,max_mark from max_marks where
    employee_id='Z901234';to get compiled.

  • How to implement a Hitting Return that causes a form to submit

    Hi all
    I'm giving a look on internet and it's not so simple with jsf as call document.forms['myForm'].submit();
    Jsf uses something like this
    if(typeof jsfcljs == 'function'){jsfcljs(document.forms['mainForm'],'mainForm:fireSearch4Indexes,mainForm:fireSearch4Indexes','');}return false
    on <a> onclick element
    I'm using also a4j that includes other code on this I think
    someone knows how can I achieve that.
    thanks a lot

    I have a similar problem and partially solved it with jQuery. I attach a key listener to each input field and fire the click event of the submit button if Enter is pressed. Some of my forms (with only one input field) does not work correctly with this and the form is submitted via form action instead of the onclick A4J event :-/
    jQuery(".search input:text").keypress(function(e) {
                    if (e.which == 13 || e.keyCode == 13) { // ENTER-Key
                          jQuery(".btnSearch").click();
    });     

  • How two button approve & reject execute action in interactive form?

    Dear All,
    i want put 2 buttons in interactive form and call action on execution of button.
    Reagards,
    Gurprit Bhatia

    Hi,
    Hi Gurprit,
    Drag & drop "Submit" button from "Web dynpro Native" Tab. and change the button text as per as per your requirement.
    select the button there you can see the submit button script. there set a flag indicator to segregate the button.
    e.g :  Flag.rawValue = "X" ;   
    Approve       Flag.rawValue = "Y" ;   
    Reject .
    in menu bar  select Utilities(M) and click on "Insert WebDynpro Script"
    Edited by: Naganath Mudale on Sep 14, 2009 7:27 AM

  • Enter and execute query in ADF

    Hi Experts,
    I am trying to implement Enter-Query/Execute-Query in adf and using Jdev 11.1.2.2.0. I put Find and execute operation on the form. When i press execute button i says me to enter value for mandatory fields. But i am try to execute query not trying to create or update records. In forms we can query on any attribute.
    Please guide
    Thanks

    Enter and execute query in Oracle Forms starts with a simple row by row form for updating a table. When you press the "Enter Query" button, the form clears and the user can enter query by example criteria for any of the fields on the form. Then the user presses the "Execute Query" button, and is back in the update form, but with the data for the first matching row shown.
    Here is a page with some links to articles by Steve Muench that explains some ways to implement this in ADF 10.1.3 - I think these techniques should still work in ADF 11g:
    http://radio-weblogs.com/0118231/2006/02/13.html#a658
    Another way with ADF 11g might be to put an af:query component in one facet of an af:switcher and the update form in the other facet. The Enter Query button on the update form tells the switcher to switch to the query facet, and executing the query also tells the switcher to switch back to the update form.

  • Using Enter-Query Mode Programmatically

    A question was raised in an earlier thread
    QUERY CRITERIA MANAGER
    about how to use Enter-Query mode programmatically in a way that doesn't stop
    and prompt the user to enter a query after switching from Normal mode to Enter-Query mode.
    Since the solution may not be widely known, I thought I'd demonstrate the technique here in a new thread.
    Create a simple form with just two blocks. Using the data block wizard, create an EMP block with one
    text item for ENAME. Place it on the canvas. Create the other block as a control block and name it CONTROL.
    Inside the control block create the following items:
    - create a text item named TXT_BOX
    (The user will enter their search pattern criteria in this text box while in Normal mode.)
    - create a push button item named EXECUTE_QUERY
    (This button will switch to Enter-Query mode, execute the query, then return to Normal mode.)
    Place both control items on the canvas.
    Inside the WHEN-BUTTON-PRESSED trigger for the EXECUTE_QUERY button, enter the following code:
    DECLARE
         timer_id TIMER;
    BEGIN
         :GLOBAL.search_criteria := :CONTROL.TXT_BOX;
         GO_BLOCK('EMP');
         timer_id := CREATE_TIMER('ENT_QRY', 1500, NO_REPEAT);
         -- 1500 may be a little long, but provides a margin of error
         ENTER_QUERY;
    END;
    Next, create a WHEN-TIMER-EXPIRED trigger at the form level. Inside this trigger enter the following code:
    If GET_APPLICATION_PROPERTY(TIMER_NAME) = 'ENT_QRY' THEN
         :EMP.ENAME := :GLOBAL.search_criteria;
         EXECUTE_QUERY;
         IF :SYSTEM.MODE = 'ENTER-QUERY' THEN
              EXIT_FORM; -- return to Normal mode
         END IF;
    END IF;
    GO_ITEM('CONTROL.TXT_BOX');
    Now, when the user runs the form and logs into the SCOTT schema, he enters a search criteria
    such as A% in the TXT_BOX while in Normal mode. Then clicks the EXECUTE_QUERY button.
    The form will switch to Enter-Query mode, retrieve all names in ENAME that begin with the letter A,
    and then return to Normal mode without pausing for the user to enter a search criteria.
    If the query should happen to fail, the form displays the error:
    "FRM-40301: Query caused no records to be retrieved. Re-enter."
    then switches automatically back to Normal mode so the user can try entering a new criteria.

    I'm showing how to do it when switching modes. I'm
    not suggesting this is the best way to do a query.We need to look at this in the context of the original probelm in the thread linked to above. For most cases the when-timer-expired etc is just a huge detour around using the pre-query trigger but it's an interesting approach to the specific problem in the earlier thread. The OP there wanted to be able to type '>5000' into a number field in a non-database block, which we can do in a database block in enter-query mode, and use it as a query parameter in the database block. Perhaps if we enter this into a character field in the non-database block and populate the numeric field in the database block whilst in enter-query mode then we can do searches on ranges of data? Unfortunately it doesn't work - you get an ora-06502 error just like you do when using the pre-query trigger. For the situation in the original thread you would have to use a 'default where'.

Maybe you are looking for

  • Group currency in FI document

    Where is group currency field stored for FI document. I went to FB03 and i can see all data ..but could not locate group currency.

  • HR payroll simulation in closed periods

    Hi everybody, Does anyone know of a method to enable HR payroll simulation in periods, which are closed in FI transaction OB52? Kind regards, Karsten Nors

  • Xml pass by reference

    Hi, Sorry if this is a little confusing... We pass a clob into a stored proc, load it into a DOM, parse it and insert some data. We then get two NodeLists and pass those to another function within the same package. The following is recursive: For eve

  • How to install missing kaleidoscope effect

    I'm trying to edit a Final Cut project created by a friend who has the same version of FCStudio that I do: 5.1.4 I copied the project and media files onto my computer, but when I try to render it I get the message: "The following effects could not be

  • Every image is in a transform box

    I have CS5 and when I drag a photo into an existing page it is in a transform box. On CS4 when I did the same thing that only happended when I selected the image to resize. I like to move my items around and resize as I go.   Is there a way to do thi