How to extract data from the APEX report with stored procedure?

Hi all

I am doing a report at the APEX. the user selects two dates and click on the GO button - I have a stored procedure linked to this region of outcome for the stored procedure is called.

my stored procedure does the following-

using dates specified (IN) I do question and put data in a table (this painting was created only for this report).

I want to show all the data that I entered in the table on my APEX report the same procedure call. can I use Ref cursor return? How to do this?

Currently, I use another button in the APEX that basically retrieves all the data from table. Basically, the user clicks a button to generate the report and then another button for the report. which is not desirable at all :(


I m using APEX 3.1.2.00.02 and Oracle 10 database.

pls let me know if you need more clarification of the problem. Thanks in advance.

Kind regards

Probashi

Published by: porobashi on May 19, 2009 14:53

APEX to base a report out of a function that returns the sql code... Your current code goes against a Ref cursor returns the values...

See this thread regarding taking a ref cursor and wrapping it in a function to channel out as a 'table' (use a cast to cast tabular function vale)...

(VERY COOL STUFF HERE!)

Re: Tyring to dynamically create the SQL statement for a calendar of SQL

Thank you

Tony Miller
Webster, TX

Tags: Database

Similar Questions

  • How to extract data from SQL server in the FDM

    Hi Experts

    How to extract data from a SQL server HFM to another SQL Server using scripts for integration in FDQM?

    concerning

    Dev

    Could you clarify why you want to do this?

    If you try to synchronize two databases (apps) to have a backup or something running in a development environment, I suggest configuring replication between two databases. It would be much more effective to do it at the SQL Server level through the application of FDM, IMHO.

    Charles

  • How to extract data from a signed pdf that was sent to me.

    I can extract data from a PDF file that is not signed, but how to extract data from a signed PDF? Exporting data option does not work once it is signed. Specifically, I want to combine the data into a csv file, but a PDF signed does not to me.

    Hi evanb92625060,

    It is not possible to extract (using Acrobat |) Collection and management of the PDF to form data) data from a signed PDF form is that it locks all fields in the form.

    Kind regards
    Nicos

  • How to erase data from the iphone if I lost and iphone is offline

    How to erase data from the iphone if I lost and iphone is offline

    < post branched out by host >

    Hello

    What to do if your iOS device is turned off or offline?

    If your missing device is turned off or offline, you can still implement this Mode lost, lockor remote wipe. The next time your device is online, these measures will take effect. If you remove the device from your account while it is offline, pending actions for the device will be cancelled.

    If your iPhone, iPad or iPod touch is lost or stolen - Apple supports

  • How to save data from the COM port to file?

    Hi all

    can someone tell me please how to save data from the COM port on file? I transfer 1 byte of serial port... attached is the image of the vi... very basic.

    I would like to save the data in a table... I mean, 1 data--> data--> data tab 2 tab 3rd--> tab

    and so on... can anyone help?


  • How to acquire data from the memory of the meter

    I am a beginner of Labview. I don't know how to acquire data from the memory of the meter.

    I read a few examples of data acquisition, but apparently not similar to my case. I can't use DAQ in my computer, because I don't have DAQ card.

    Could someone give me some pointers? Similar examples would be great.


  • How to recover data from the choicefield retained

    Hello

    How to recover data from the choicefield retained

    Thank you

    SujithRavindran

    getSelectedIndex method will help you.

  • How to transfer data from the 7 Millennium

    How to transfer data from the 7 Millennium

    You will need to manually back up your files by copying and pasting on a device from external storage such as a USB key or external hard drive.

    Then copy them on Windows 7:

  • How to extract information from the ovf file from a file of eggs by programming?

    How to extract information from the ovf file from a file of eggs by programming?

    Hello

    Please provide details:

    -On what OS you are programming (Linux, Windows,...)?

    -What programming or scripting language do you use?

    An EGG file is just a tarball of hard, .ovf and .mf files. The .ovf file is always the first. For example, on a Unix like operating system, this should be easy.

    For Windows, there are several options available to manage programmatically the tarballs. See for example http://www.codeproject.com/Articles/470999/tarlib-Windows-TAR-Library.

    And the ovf itself file is in XML format. For handling XML files are libraries available for literally every OS and programming language.

    Google is your friend.

    Andreas

  • Extract data from the table on hourly basis

    Hello

    I have a table that has two columns date all the hours of the base and the response time. I want to extract data from the date corresponding previous hourly basis with the response time. The data will be loaded into the table every midnight.

    for example: today date 23/10/2012
    I want to extract data from 22/10/12 00 to the 22/10/12 23

    The sub query pulls the date as demanded, but I'm not able to take the time to answer.

    with one also
    (select min (trunc (lhour)) as mindate, max (trunc (lhour)) as AVG_HR maxdate)
    SELECT to_char (maxdate + (level/25), "dd/mm/yyyy hh24") as a LEVEL CONNECTION dates < = * (1) 24;

    Please help me on this.

    Try this

    SELECT * FROM table_nm
     WHERE to_char(hour,'DD') = to_char(SYSDATE-1,'DD')
    
  • How to extract data from your laptop with crushed Windows Vista without restoring to the factory settings?

    I ran a few updates, but before you restart the computer, I deleted many files.

    The result is that my Vista does not start, and only offered solution is to restore to factory State, which is not acceptable for me because I need data from the HARD drive.
    Y at - it an easy way to recover data from the HARD drive, or should I contact? Thank you.

    Need help on MS Answers was my last option before calling a service.

    But, luckily, I found a way. I just change the settings in the BIOS for SATA, Vista started, I restored some of the deleted files, and voila - it worked. Another reboot, BIOS have been changed on the previous settings, and now it works perfectly.

  • extract data from the generic cursor xy graph

    Hi, I'm new in this Forum.

    In my VI I need to extract the data from the graph xy of one cursor to another, how can I do this?

    I want to extract all the data between the two sliders, to develop.

    Thank you

    In addition to everything said altenbach, you want the slider list: property of the Index. That will tell you where in the table of data, the sliders are.

    The attached VI shows how we can work and also meaningless how it can be with common types of XY data.

    Lynn

  • How to write data from the acquisition of data in NetCDF format?

    I connect to a set of data from the sensor through the DAQ assistant and want to write all data in NetCDF format. I have the required plugins installed, but still can not find how to do this.

    Or the labview can only read the netcdf files, but cannot write it! Please let me know if there is any other way out. I have looked everywhere but could not find something useful!

    Thank you

    Hey,.

    Sorry, the sheet in effect only allows to read NetCDF files, not writing to the NetCDF format.

    Kind regards

    -Natalia

  • How to send data from the client to the server using tcp

    1. as I am new to watch I need help with sending data from client to server. I went through various examples of labview, but each of them also explains transfer of data to the client server. But I need help regardng send data from the server to the client.

    2.i would use the data type variant for sending my data.

    Can someone help me please. Thank you

    Regardless of the meaning. Once you have a connection each end allows it to send data to another. Just create what you want to look like interaction.

    Do you want the client sends a command that request data?
    How do you think the response data to look like?

    You can send variants, but probably not worth the effort.

    Mike...

  • How to extract files from the Windows 7 installation CD?

    I remember that on Win98, I can use SFC. EXE to extract all those files. CAB files on the installation of Win98 CD and place the files extracted into a folder I want. In addition, I don't need to know where. CAB of the target file should be some.

    The SFC. EXE in Win7 replces only system files. It does not extract and put all the files as the SFC in Win98.

    So, how to extract files from Windows 7 installation CD?

    Hello

    ·         Why you want to extract the file from the Windows 7 DVD?

    ·         What file you want to extract?

    Some of the files will be locked or currently in use by the system so that you will not be able to replace their while that started in Windows 7. Therefore, SFC scan tool is used to repair any file corruption in windows 7.

    Design by default, you can extract the files. You can copy and paste the file into your Windows 7 DVD drive, refer to the article below:

    http://Windows.Microsoft.com/en-us/Windows7/copy-and-paste-a-file

    Hope this helps,

Maybe you are looking for