Multiple queries on the same interactive report

Is it possible to the button click, change the query for a report interactive?


I created an example at apex.oracle.com

workspace: stevendooley34

username: dev01

password: dev01

Application: ForumExamples

Basically what I want to be able to do is on the page by default IR there is a selection list. When the user clicks on the menu drop down and select an option, a search box appears. I want that this research working as a second IR query and third IR query searches that are slightly different queries.

I know there is the filter option, but users do not want to have to go through and Insert commas between each value, so the second and third queries correct this, I'm not sure how to combine the three pages.

I fixed this problem on my tabular reports by creating a new report on the same page and making it conditional to show only when the selection type is a certain, but as far as I know, you can't have multiple interactive reports on a single page.

One thing to note:

The example is in version 4.2 but my company uses 4.0 which is where I need to implement this.

If there is another way to do this, I'm open to other ideas.

Steven

It's just an extension of what you already created in the Page 3 and 4

It is very important that you learn to "think in sets.

Once you have a definition for your dataset, you can easily create SQL statements

What you're trying to do is to define a set of data that follows these rules:

  • If the search type is null--> return all ranks
  • If the input box is nowhere--> return all ranks
  • If search type = "name"--> return lines which correspond to ename (...)
  • If search type = 'job'--> return lines which match job in (...)

Your rules will apply in the WHERE clause as:

WHERE

: P3_SEARCH_TYPE is null

or: P3_SEARCH_INPUT is null

or (: P3_SEARCH_TYPE = 'name' and ename (...))

or (: P3_SEARCH_TYPE = "work" and work in (...))

I already modified it Page 3 since it was 90% of the required stuff.

MK

Post edited by: Mike Kutz
reorganized for clearity

Tags: Database

Similar Questions

  • All images appear as the same interactive report... APEX 4.2.

    Hi, I have worked with apex oracle 4.2.2 window 7 theme 25

    I met the problem when I create interactive report with the BLOB column, I create the sample report and I used the GET_BLOB_FILE_SRC function to display the image in the report but I face these problems
    1 - the images do not appear when I run the report and all the images are empty
    2-i press should edit on any column and go edit page and then return to report once again and the image appear
    3-all folder have the same image (the image with the id that I pressed on)
    I mean when I pressed the record with ID 1 and go to edit the page, then back to the report the image with ID 1 appear in all records in the report, and when to change the id of the same question appear. I don't know what the problem is.
    pls advice me

    Thank you
    Ahmed

    Ahmed.F wrote:
    Hi, I have worked with apex oracle 4.2.2 window 7 theme 25

    I met the problem when I create interactive report with the BLOB column, I create a sample report, and I used the GET_BLOB_FILE_SRC function to display the image in the report

    Didn't it occur to you that it is important to understand exactly how you have used the function in the report? What is the report query?

    but I face these problems
    1 - the images do not appear when I run the report and all the images are empty
    2-i press should edit on any column and go edit page and then return to report once again and the image appear
    3-all folder have the same image (the image with the id that I pressed on)
    I mean when I pressed the record with ID 1 and go to edit the page, then back to the report the image with ID 1 appear in all records in the report, and when to change the id of the same question appear. I don't know what the problem is.

    Looks like you pass item values to the edit page for the values of service instead of the report column. See the example of SELECT in apex_file.get_blob_file_src to see how to use in a report. The values of p_v1 (and p_v2 if necessary) must come from columns of the report, not the page elements.

    Why do you need to use the function at all? Declarative using BLOB format is recommended.

  • Multiple queries on the same data entry form

    I hope I am in the right forum!

    I'm working on a data entry screen that is interfaced with a data base for pre-determined entries.  The user will choose the first name of the Member, not problem here, then using this last name, a list of names that match the last name.  Here's what I have so far:

    < CFQUERY DATASOURCE = "cfissues" Name = "LNameQry" >

    SELECT LastName

    Members

    ORDER BY name

    < / CFQUERY

    < CFQUERY DATASOURCE = "cfissues" Name = "FNameQry" >

    SELECT FirstName

    Members

    WHERE LastName = #LastName # (' #LastName # ') (#FORM. LastName #)

    < / CFQUERY

    <!--- ================== --->

    < CFSELECT NAME = 'name '.

    QUERY = "LNameQry."

    VALUE = 'value '.

    etc.

    < / CFSELECT >

    The user selects a member of family name.  Using this name, I want to run the FNameQry query that retrieves all the names that correspond to this last name chosen by the CFSELECT statement.  In this way, the drop-down list for the first name field contains only the names of skills (not all 7,000 on the database!).  I have more to do beyond that, but just to get this first part of work would be of great achievements.

    I have used various combinations of the name chosen by the CFSELECT run FNameQry, but nothing seems to work.  I get an error on LASTNAME is not defined.

    I guess I need to (somehow) define a variable that will be filled with the value selected in the CFSELECT statement and use it in the FNameQry?

    Hello

    Use isdefined "(form. LastName") for FNameQry

  • Is it possible to set up for multiple users on the same computer to avoid entering the e-mail and the password

    Original title: Multi users

    Is it possible to set up for multiple users on the same computer to avoid entering the email and password every time that a new user want to check emails?

    Hello

    Welcome to the community forums of Microsoft and thanks for posting the question. According to the description, you need help in the creation of multiple user accounts. I've surely you will help find a solution on the issue.

    What is the operating system installed on the computer?

    User accounts, several people can easily share a single computer. Each person can have a separate user account with unique settings and preferences, such as a screen saver or desktop background. User accounts control files and programs users can access and what types of changes users can make to the computer. As a general rule, you'll want to create standard accounts for most computer users.

    If you use Windows Vista or Windows 7, see the article below:

    Create a user account

    http://Windows.Microsoft.com/en-in/Windows7/create-a-user-account

    http://Windows.Microsoft.com/en-in/Windows-Vista/create-a-user-account

    For Windows XP users:

    How to create and configure user accounts in Windows XP

    http://support.Microsoft.com/kb/279783?WA=wsignin1.0

    Hope this information helps. Answer please if you have more queries about Windows.

  • Mail in Outlook Express 6 does not leave the box shipping and beneficiaries say they receive multiple copies of the same message.

    original title: Outlook Express 6.0

    Recently, when I send an e-mail message by using Outlook Express 6.0 three things happen:

    (1) he does not leave the Outbox, unless I have to go in and manually remove it.

    (2) my report of recipients receiving multiple copies of the same message (for example, received the same email 6 times)

    (3) my sent folder is not updated with the emails I sent.

    I'd appreciate any help that could be offered.

    Thank you!

    Glenside Guy

    Your sent items folder is corrupted.  Move or copy messages from the folder that you want to keep.  Then close OE and delete the file sent items.dbx and outbox.dbx (hidden).  OE will then create new ones, and that should solve the problem.

    Because your files has been corrupted, you might consider backup before they get completely corrupt and in addition, you could go to file | Identities and setup a new identity.  This will give you a base of new messages, not corrupted, and you then go to file | Import | Messages and import them from the old identity.

    Steve

  • Parameters for the single instance of DCOM for multiple users on the same machine

    I have a DCOM on a Windows 2008 R2, Enterprise Edition machine. I would like to be able to open an instance of the DCOM and have it accessible by multiple users on the same machine, i.e. users connected to Windows accounts.

    What settings will do? In the tab 'identity' in dcomconfg for my DCOM object settings, I tried "interactive user", 'the user running' and 'this user', all three lead to the same result: start a new instance DCOM on easch Windows of the connected customer accounts, despite the existence of bodies being already running on other accounts. This baffles me, especially with the third alternative, 'this user', which should certainly lead to all proceedings being started by this specific account? This is not the case. Any help would be appreciated!

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • I use Thunderbird on multiple computers to the same gmail account but I have a laptop with little memory, so I need this laptop only to download a few files

    I use Thunderbird on multiple computers to the same gmail account. I have a small laptop with very little memory and it runs out of disk space when it downloads all my folders. I would only download some of my file on the laptop, but keep all the folder on my other computers because they do not have problems with disk space. When I unsubscribe records in 'manage folder subscriptions' then he cancels his subscription on all my computers, not just the laptop. When I go to 'Properties' on the folder and sets 'retention individual police' these settings are not applied at all. What can I do?

    All of the messages in each folder will appear in your message list. But this does not mean all the bodies of messages are downloaded, if you have properly configured the parameters of the disk. If what I described above stuck in your settings then Message body should be downloaded only 'on demand' when you click on each message.

    To confirm this install the addon glodaquilla, which has a column "on the disk" that indicates if a message is on the disk. If you want, after you have installed the addon set Thunderbird to work offline, so it does not download message body when you click in the list of messages.

  • How to switch between multiple windows in the same application?

    Hello

    I use OS X Capitan version 10.11.13 and I'm trying to find an easy way to switch between multiple windows in the same application by using CTRL + alt or different keys.

    Here is what I feel...

    Let's say I have Outlook, Google Chrome, Safari, iTunes and apps 'about this Mac' open.

    I open the new message window in Outlook and another Chrome window. I have therefore 2 separate windows in Outlook and Chrome.

    With that, I'm unable to move the composition and the window main outlook which is so annoying. Let's say I want to read the emails by the prospect main window and transfer of the content of the compose window! The command + tab doesn't take me to the main window of Microsoft outlook! Even if there were the last visited / applications window. This constraint is not intuitive, unless it can be configured in the settings?

    Strangely, I can't switch to the "about this Mac" window.

    The work around is to use the function (F3) mission button and click on the window, that I want to use or click the "Outlook" application on the dock icon and choose the window in the list.

    Does anyone know how switch between different windows in the same application by using a key combination or one another method other than listed above?

    Thank you

    Avinash

    In general, an Application that can open multiple windows provides a "Windows menu" you can choose the window you want.

  • Multiple copies of the same mail and "unresponsive".

    I have fought with Thunderbird for about a week now and have had no chance to solve my problems. Any help would be greatly appreciated! I tried all the suggestions on the FAQ page.

    Here are my symptoms:
    -Make multiple copies of the same email with the same time stamp.
    -Not pulling new e-mail messages.
    -Whenever I try to navigate upwards or downwards in the Inbox or open an email TB will does not.
    -J' got warnings from the following script:
    Script: resource://gre/modules/XPCOMUtils.jsm:323
    Script: chrome://messenger/content/mailWindow.js:179

    Here is what I tried:
    -J' completely removed and reinstalled TB (and recovered my profile).
    -J' have compressed files.
    -J' rebuilt the database world.
    -From TB in safe mode does not seem to make a big difference.

    Fortunately, I have access to webmail via my ISP and it works fine.

    Thank you!

    McAfee has released a faulty update, please contact them for support on changing the setting to something that actually works.

    I saw a poster here today who used their support chat and they 'fixed a few adjustment' and now all is good.

    Not good was not what I wanted to say

  • Firefox does not work for multiple instances of the SAME user account on Windows Multipoint Server 2011

    We have a PC HP of MulitSeat MS6200
    It runs Microsoft Windows MultiPoint Server 2011 (which seems to be a twisted version of Windows 7)
    It is implemented in a laboratory of computer science and students connect you using their account for shared room - IE multiple instances of the same user accounts are currently running on the PC at the same time.
    The first student to run Firefox can work with it without a problem.
    However, when another student try to start firefox they get the following message:
    Firefox is already running but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.

    Cannot start Firefox using a profile that is already used by someone else.
    Each Firefox instance needs its own profile or you will get this error message.

    Use-no.-line switch remote control to open another instance of Firefox with its own profile and to different instances of Firefox running concurrently.

  • Firefox open multiple tabs of the same site at the same time, why

    some site that I visit - when I try to use yahoo or facebook, messaging - multiple tabs of the same pop up and open and bring me to this last open tab - never let me finish what I'm doing. Why is this happening?

    I had this problem (when I opened Firefox, Facebook kept several tabs open, even when I was on other sites such as Google).

    After you restart Firefox with modules disabled (via the Help menu Firefox), I enabled first of all Plugins, then the Extensions, on-to-one.

    The problem is back only when I activated Facebook Toolbar 1.7.3 and disappeared when I disabled it again.

    This extension has been updated on 3 August 2011, which is probably when the problem started to appear (worse gradually). The extension tries to integrate some utilities of Facebook with the browser, but it's something that I can easily live. If you are having similar problems, try disabling Facebook Toolbar 1.7.3

  • Multiple accounts with the same email

    I have an account I can not connect to after my daughter it has disconnected. I tried to reset the password, but I get an email on my account to other girls: S (same email)
    I guess I have 3 accounts with the same email, but only the latter can created recover!
    Not even my main Skype has a chance

    I'm not 100% sure but it is most likely that I used the same email to whoever I have to reset - what can I do?

    In fact, this morning I managed to log on to the account of an iPad without frills but the pc refuses to sign ^ ^ ^? "Skype cannot connect" - what is happening?

    I also discovered that I could connect via a browser, but not via the Skype program... So I uninstalled and installed again and it's working now...
    I've now changed the email so I have 3 accounts with the same email address as Skype seems not to be able to manage multiple accounts with the same email!

  • IMac is not able to share multimedia files with multiple users on the same computer.

    We just bought a new IMac that we were very excited.  We have phones Apple and iPads, replacement and ten year with a new Mac old PC made since.

    Now, the trouble begins. For more than ten years Windows had several usernames on the same machine and have been able to have a shared folder only for music, pictures and video that my iTunes program and others could acsess and share from several user names. This kept all in one place for new photos families by me or my wife and our 30 gigabytes of music that comes from our CDs was available at bolt of us. Now in train to implement on IMac should be easy but is impossible.  after transferring the music to my login information, it cannot acsess all files on my login. I am not even able to share or provide his acsess. I can move the iTunes folder to my shared folder. She can get acsess now but iTunes says that the library file is locked. I worked with care from Apple on the phone for that sold, but they believe it will not be possible without creating two copies of the 30 gigabytes of music for each of us. who would take more hard drive when it failed too.  Sharing is not any help. These files were before iTunes. I'm not pay 30 dollars a month to store in icloudcor use a google reader slow to the Internet connection when everything's fine here. Apparently Applow programmers do not believe in sharing of multimedia files between two users on the same device, even if a PC does that very well. My choice here is so far have duplicates of all the photos, music and videos loaded on the disc for me and my wife, charge all the media for an external hard drive which for some reason any all Apple programs will share, or return the mac to another PC that will be able to make several connections with sharing music and photos. Apple if you are reading this you are 10 years behind on that. Not everyone is born in the last five years and bought their music on iTunes to be able to use home sharing. Home sharing cannot help this. your applications should be able to be told to use the media files shared without import copies to readers of the user. I am very disappointed. Someone else has any ideas for that?  I have pictures, not iPhoto. I have a week more to be able to return it. I'm not interested in making a fake account that is always connected to share or maintaining of me constantly connected. It should have been easy, I had to be happy to play with new software.

    Photos, iPhoto and iTunes libraries must appear on an external hard drive that is formatted as shown below to be used by multiple users on the same Mac:

    So get a properly formatted external HD and move your iPhoto/pictures of her as well as your iTunes library.  This way all your iMac users can access and use both libraries.

    An alternative to the external HD method is to partition your internal hard drive into two partitions, one for libraries.  It is formatted as shown above and be large enough to contain the libraries and allow the expansion of libraries.

  • How to select multiple cells at the same time?

    Hello

    How to select multiple cells at the same time? What is the keyboard shortcut?

    Thank you to.

    Flo, a french guy.

    Hold down the CMD key when you select the cells.

  • [Q] can Vision track multiple objects in the same area - objects that might cross?

    Hello

    Sorry for this long title, but this is my question.

    Can Vision track multiple objects in the same area - objects that could cross?

    Because I'm able to do, extraction of XY, but it seems that "IMAQ County objects ' don't follow framework after but framework opposed, but extract the coordinates XY always in the same way, as for example from top and whenever he sees an object, it retrieves the XY, but if the objects pass through (then it will extract XY without worrying that the objects was the earlier but just based on"scan from top to bottom").

    That's why I open this topic in the forum of Vision no part: http://forums.ni.com/t5/LabVIEW/Sort-XY-by-closest/td-p/2440428

    Thank you

    Sébastien

    Thank you for your response.

    My problem is that we work with very small insects and the shape/color is the same for all.

    Then the solution is: Let's wait for "IMAQ County objects 3 ' then .

    Thank you

    Sébastien

Maybe you are looking for