run query region only on click of a button

Hello
I have been out of reach of APEX for a while now. what I want to achieve can be simple. Here's what I'm looking for.

I have a page that contains a region with several dropdowns (Items) for the user to filter. the default value for all drop-down lists is "ALL". When loading this page drop-down menus are default to 'ALL' and my query is written so that it displays results has these default values. It is as good as any 'where condition"in the query. the user can make choices of drop-down menus and press the button named "SELECT" to display the filtered results. everything is good and works.

what I want is, when the page is loaded I don't want the query to run for "ALL". This is a request for a long time and no one cares for the results with the filters set to 'ALL '. I want just the filters to appear on the page. the user can click just "SELECT" to see all results or filter on the "SELECT" and drop-down menus to display the filtered results.

entries how to carry out what are appreciated.

I hope I am clear.

Thank you

I would create a button that triggers a process that executes the query. For example:

QUERY_RESULTS is tha region contains the results of your query.
P1_RUN_QUERY would be the name of button
RUN_QUERY would be the value REQUEST button
P1_Select_A, P1_Select_B, P1_Select_C are your drop-down lists
SHOW_REGION application, set to 0

You can create a region based on the following pl/sql query:

Select * from t_mystuff t
where t.criteria: =: P1_Select_A and
t.criteria_2: =: P1_Select_B and
t.criteria_3: =: P1_Select_C

Then, set a condition on the region so that it shows only when SHOW_REGION = 1

A process page can be assigned to run when you press P1_RUN_QUERY, who runs an anonymous PL/SQL block, something like this:

Start

If: SHOW_REGION: = 0 then
: SHOW_REGION: = 1
ON THE OTHER
: SHOW_REGION: = 0
end if;

end;

Management would be subordinated to the RUN_QUERY request and would branch to the same page that has the QUERY_RESULTS region.

Tags: Database

Similar Questions

  • How to run the PL SQL function on click of a button

    Hello

    I have problem with run SQL PS function on click of a button. I have create a new button and call the function STANJA.insert_into_log_fun1('cc'); "Value of the button application", a Type of Source select button request = 'SQL PL Expression or function.
    Problem is that this function is executed at the loading of the page, but not to the click. I don't want to perform this function on loading the page, only when I click the button.

    Does anyone have idea how can I solve this problem?
    Thank you very much.

    Alter this process > status > when you press the button > choose the button you want the pcoss to run on.

    RAL

  • Why me disables the user interface click on another button, while it performs a scan?

    Hello

    When I run the user interface and click on a button that is sweeping the voltage for a period of time, I can't press any other button that sits on my Panel, lets say the Abort button that would prevent the action.

    So when I take the data and I realize that I should stop him before he finishes the scan, I can't and it's a really bad drawback.

    How can I improve this problem?

    Thank you

    Hi m.s.taba,

    It seems to me that your code runs the function leave but does not exit the loop you are, then the program stops at the end of the loop.

    To avoid this, you can:

    • use a global variable to the time your long recall and the recall of quit smoking
    • Call ProcessSytemEvents in the loop
    • reminder for the button leave defines the global variable
    • inside the loop, immediately after ProcessSystemEvents, you should test the value of the variable, and if the value you must break out of the loop
    • only after the exit of the loop, you can complete your program

  • When you click on the Cancel button, avoid running query

    Hello

    I'm going to the jsff a page to another at the click of a button

    In the second page I go back to the 1st page when the Cancel button is clicked
    But when clicked on this button cancel my request get rerun and takes a long time to come back on the 1st page
    This is a read only vo interview... How can I avoid running query on a button click Cancel

    Thank you

    Real question is: "why is your query run when you press the Cancel button?
    If your application is already running on the first page, this should not happen unless you:
    -to perform an operation on the Cancel button that runs the query
    -changed "Refresh" of your iterator property
    -perform rollback

    Dario

  • FRM-40208: train running in query mode only. Impossible to edit database fields.

    HelloW everyone

    I get the following error
    FRM-40208: train running in query mode only. Impossible to edit database fields.
    I have not any trigger on this form.
    Database 11g Release1
    form 10 Release 2.
    How to solve the problem of abve?

    Hello

    Check the URL parameters and see if you have query_only parameter with the value 'Yes' (http://.../forms/frmservlet?...&query_only=yes). Try to run the form by deleting (or the definition of query_only = no).

    If you are running from form designer, you can just uncheck this option in Edit-> preferences-> tab Runtime.

    Arun-

  • I hit the limit of sql 32 k?  My query is only 25274 characters in length

    What is happening with this?

    I built a large query that will not run in the sql for apex commands because it beyond 32 KB. However, the query is only 25274 characters long. The query works in TOAD and produced the results I need.

    I was able to get the apex to accept the request (generated on the fly using the functions pl/sq) in a report region, but then it errors when I bring to the top of the page with the following message.

    Failed to parse the SQL query:
    ORA-00911: invalid character

    Published by: greich on December 19, 2008 10:02

    There is the page bind variables: p1_region (String): p1_week_end_date (date), and: p1_sunday (date).

    You can use a multibyte character set. In this case, 32767 is 16383, 10922 or 8191 characters (if it is a 2, 3 or octet character set, respectively).

    Our database uses a 4-byte character set, and I have to split strings in the Apex in 8000 pieces of character and join them for use.

  • Running query automatically by activating a form already open...

    Hello
    I have developed two forms... formed called formB (using the built-in function open_form passing certain parameters...).
    I want to run query automatically on a block of retail of formed when formB leaves (.. .then formA remains the only open form).
    I wrote a code of the trigger WHEN-WINDOW-ACTIVATED on formed... and it works...!
    but the user has to click on any element of this form...
    Is there another way...?

    Note: I use Dev2000 v6i with patch 12 applied...
    Thank you very much
    SIM

    sgalaxy wrote:

    I wrote a code of the trigger WHEN-WINDOW-ACTIVATED on formed... and it works...!
    but the user has to click on any element of this form...
    Is there another way...?

    Try using a GO_ITEM in your method instead of the user manually clicking on one, that might work.

    Tony

  • animation continues to run through. I want that he stop on main menu, so I can click on the buttons

    animation continues to run through. I want that he stop on main menu, so I can click on the buttons that navigate to different scenes. Please help me I'm a noob.

    Here are screenshots of what I have in progress:

    Screen shot 2013-09-06 at 1.25.57 PM.png"Home" menu of the main time line

    Screen shot 2013-09-06 at 1.27.22 PM.pngscript in frame 1

    Screen shot 2013-09-06 at 1.27.57 PM.pngscript in frame 48

    Screen shot 2013-09-06 at 1.30.50 PM.pnganimation scene 2 shape tween who is not supposed to work at the long past the homepage. I want to animate but only after I click the button to do it.

    Screen shot 2013-09-06 at 1.30.58 PM.pngscript for this scene

    Screen shot 2013-09-06 at 1.31.12 PM.pngstage 3, which is causing all the issues I think? supposed to be able to drag the boxes. but it passes right through without stopping when I play.

    This is the compiler errors:

    Screen shot 2013-09-06 at 1.43.07 PM.png

    If you deleted the stop() of scene 2, that it will not stop there it will return to wherever is 'home '.

    If you intend to have the timeline stop on an image, then you must place a stop() command in this frame, or use a gotoAndStop() command.

    If you want to use the scenes be compatible with the way you write the goto command. Is rarely recommended use - instead, use the various sections of the chronology of a scene, or use some movieclips and control their visibility, or a combination of both.

    If you continue to have problems, try to simplify - build / add first navigation for a section at a time instead of trying to get all of a sudden.

  • How to remove a discoverer report that has a status of running query

    Hello

    How to remove a discoverer report that has a status of running query

    Thank you

    Hi 925907,

    I think you would work with your DBA to kill the session associated with the workbook running.

    A query like this will provide your DBA with all the necessary information, it must:

    Select
    vs.*
    Of
    v$ session vs
    where
    vs. Program like 'dis51ws@% ';

    After the session was killed, it is a deletion of standard workbook (select file > open workbooks, and then right click on the name of the workbook, and then select delete).

    Patrick

  • How export (unload) result of the query without running query on sql developer

    Hello

    I want to know how export (unload) result of the query without running query on sql developer.

    I know this way.
    1. execution of query
    2. click on "Download" on the results tab
    http://i.stack.imgur.com/CQ4Qb.jpg


    Is he available unload a query result before the race?

    No, but you can do this ask the developer SQL change however, for other users can vote and add weight to the possible future implementation.

    Kind regards
    K.

  • Defragmentation runs of himself when he isn't scheuled. He begins to scan the C drive when he wants and won't run a defragmentation when I click on defrag now.

    Original title: the tool Defrag

    Defragmentation runs of himself when he isn't scheuled. He begins to scan the C drive when he wants and won't run a defragmentation when I click on defrag now.

    I put it on a timed m.o. and it ran for about two seconds and said that it is complete.

    Hello fossil man,.

    You have a set schedule in place to defragment at certain times?  If you do, go to the Planner and that cancel out.  Then see if you are able to reproduce this problem.

    Schedule disk defragmentation:

    http://Windows.Microsoft.com/en-us/Windows-Vista/schedule-Disk-Defragmenter-to-run-regularly

    Please let us know status.

  • A user account cannot run a .exe, only to get hold to open/save.

    A user account running on this PC suddenly can't startup such as IE applications, Solutions from HP, widget bar displaying stopped, etc. could be a virus, the user compained about nagging holdup to install virus protection, even if we have MacAfee in place and fine workmanship, all protections in place. Double click on IE icon to start and gets the heist to open or save the .exe file. How should I do? I'm an admin, but I don't see a way to solve this problem in the mapping of types of files/mimetypes.

    Hi Iluvtunes,

    This could be a problem with the corruption of the user profiles, because this issue is not with the other user accounts. I suggest to create a new user and check if the problem persists.

    Steps to create a new user profile.

    1. Open a user account by clicking the Start button, click Control Panel, click user accounts and family safety (or by clicking on user accounts, if you are connected to a network domain), and then clicking user accounts.
    2. Click Manage another account.  If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    3. Click create a new account.
    4. Type the name that you want to assign to the user account, click an account type, and then click create an account.

    If the new user account works fine, then you can copy all the files to the new user profile.

    http://Windows.Microsoft.com/en-us/Windows-Vista/fix-a-corrupted-user-profile

    Bindu S - Microsoft Support
    Visit our Microsoft answers feedback Forum and let us know what you think

    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer or useful you help others find the answer more quickly.].

  • "Error running query: the real member does not exist in the application.

    Hi all

    I have a HFM EN users need to run, but somehow they started getting this error "error running query: real member does not exist in the application". I traced their levels of access to mine, and I am able to run the same report without any problem but the user still getting the same error. what may be the possible cause. Please help me so that I can ensure the debugging.

    Thank you

    Zitouni

    I was able to solve this problem by checking the user of security principals class was trying to run the report for. The user did not have acesss on the class of the said security and change all, solve the problem.

    Thanks, Sattu

  • Characters not visible (caused by hitting the bar space or TAB in PL/SQL developer tool) causing slow running query? and database with low performance?

    Hi all

    I need your help to get this issue resolved its urgent and I'm not able to get to the conclusion. Here is my scenario, I'm getting slow query runs because of some non-visible characters that are copied with the application of the PL/SQL developer tool. Please find below attached screenshot: Oracle_Issue

    Oracle_Isssue.png

    Note: This non-visible characters are caused when we write the query then us hit the SPACEBAR or press TAB PL/SQL developer tool

    I use the developer tool PL/SQL to write or test the query. Now I take this request copy paste in my application of the company (who takes this query connects to Oracle or any source of data base, catch data and produce PDF reports for customers).

    Now, my client is the Oracle user when I write and you run this query by the PL/SQL Developer, it works fine, but when I paste in my Inbox feature request (reporting system) and run it, it runs slower and jams to the customer database. Now after a little research I found that when I copy the query directly from PL/SQL developer at my request, he copy some characters not visible (introduced when we press SPACE or TAB in PL/SQL developer tool when writing query) with the request, then I copy this query again to my box of the application Notepad and delete these non-visible characters. Now, after removing the non-visible characters again once I copy backup question in my application and run the query, it works normally. Please find below attached screenshot: Oracle_Issue 2

    Oracle_Isssue_2.png

    So I think that the cause of slow performance is due to some INVISIBLE CHARACTERS present in the query.

    My application uses SQL server 2008-2012 at the backend to store data from different sources.

    Character set used: SQL_Latin1_General_CP1_CI_AS


    To write and test queries: PL/SQL developer tool

    My Client use Oracle 11 g

    Character set used: Normal character: NLS_CHARACTER: AL16UTF16

    National Characeter: NLS_NCHAR_CHARACTER: WE8WIN1521

    I just wanted to know the blocking process to the top of the database and the characters not visible how affecting slow running query of query database.

    Please let me know if I'm missing something or you need more information on this issue.

    Thanks in advance,

    HP

    Simple answer. No.

    Spaces and line breaks do not change the execution plan created. Does not plan to run slower or faster.

  • pre-requete and key-run-query

    Hi all

    one who fires first

    KEY-RUN-QUERY FIRES BEFORE PRE-REQUETE or vice versa?

    Thank you

    newbi_egy wrote:

    What do you mean with "obvious developer.

    1. I hear of course developer KEY-EXEQRY integrated call/write EXECUTE_QUERY trigger to run the query.

    2. This is in all versions, same behavior except the shortcut key to run the query in 6i F8 in 11 g Ctrl + F11

    3. it's Ok, it should be that way. This is correct behavior.

    You can test this way

    1 al ' KEY-EXEQRY

    message('KEY-EXEQRY');

    message('KEY-EXEQRY');

    EXECUTE_QUERY;

    2. in the previous QUERY

    message('PRE-QUERY');

    message('PRE-QUERY');

    3. press F8 or Ctrl + F11 to run the query based on you form version

    Result:

    First Messenger KEY-EXEQRY

    Second QUERY before displaying the messages

Maybe you are looking for