Dynamic SQL report  on Oracle apex4.0

Hi Everyone,
I have two reports in one page.One is the Interactive and other is Sql report. Based on the selection of the row(using checkbox) in the interactive report, the sql report has to display the selected columns.
Note :The report has to be loaded whenever a row is selected and without submitting a button
Can anyone please suggest?
I am using oracle Apex4.0
Regards
Raj

I believe you store the values in the checkboxes. For example, your Interactive Report query looks like:
SELECT '<input type=checkbox value='||OBJID||' />' AS CHECKBOX, T.*
FROM SOME_TABLE T
and in "Report Atributes" the CHECKBOX is displayed as "Standard Report Column".
*1.Create a hidden check list input field.*
It will store a list values of selected checkboxes. make it long enough, eg. 1000.
Let's say the input name is: P000_X_CHECK_LIST
*2. Create Dynamic Action*
This dynamic action is supposed to fill in the P000_X_CHECK_LIST with a list of values, separated by ":" character.
These values will be an input for the SQL report.
Name: Update Check List
Event: Change
Selection Type: jQuery Selector
jQuery Selector: input:checkbox
Action: Set Value
Set Type: JavaScript Expression
function check_list() {
var n = "";
$(":checked").each( function () {
n = n + (n === "" ? "" : ":") + $(this).val();
return n;
check_list();
Selection Type: Item(s) - P000_X_CHECK_LIST
*3. Adjust the "SQL report" query with this magic formula*
AND SEARCHED_ITEM IN (
SELECT item
FROM (SELECT REGEXP_SUBSTR (str, '[^:]+', 1, LEVEL) item
FROM (SELECT :P000_X_CHECK_LIST str
FROM DUAL)
CONNECT BY LEVEL <= length (regexp_replace (str, '[^:]+')) + 1)
for example:
SELECT O.*
FROM SOME_OTHER_TABLE O
WHERE SEARCHED_ITEM IN (
SELECT item
FROM (SELECT REGEXP_SUBSTR (str, '[^:]+', 1, LEVEL) item
FROM (SELECT *:P000_X_CHECK_LIST* str
FROM DUAL)
CONNECT BY LEVEL <= length (regexp_replace (str, '[^:]+')) + 1)
*4. Adjust the Dynamic Action:*
Advanced: Event Scope: "live"
*5. Add one more True action to the Dynamic Action:*
Action: Refresh
Selection type: Region
Region: The region of the "SQL report".
Volia!
Best regards,
Krzysztof

Similar Messages

  • PLSQL processing of a dynamic sql report

    Hi there,
    I have a problem processing a dynamic sql report, specifically in referencing the PL/SQL column headings I have.
    Basically I have a report that generates one row for each project a person belongs to, and then using htmldb_item.text creates one field for each day of the week (sysdate - sysdate+6) so that people can enter their hours worked. The idea is they then press a submit button and the hours are entered into a project table something like (date_worked, project_id, hours_worked), one row for each entry.
    So I have:
    for i in 1..HTMLDB_APPLICATION.G_F01.count
    loop
    ... err... here I want to insert into the table the values(column_header, project_id, HTMLDB_APPLICATION.G_F01(i)).. but I don't know how to access that column_header value.
    Is this possible and if so, how?
    Many thanks,
    Tosh.

    that gives me the values of the text fields, but what
    I'd like to insert is the value of the column
    header... so for example:Yes, I understood what you meant. I did have a differect project_id for each INSERT in my SQL above. I guess that should have been day_id
    Since you are generating the tabular form SQL manually, you know which htmldb_item.text index corresponds to which column (which represents day_id in your case). So, use this to write 6 INSERT statements, one for each day. day_id would be a number going from 0 thru 6 where 0 represents Sunday and 6 represents Saturday.
    Bottom line: This is like generating/updating a calendar, your column headings are always fixed (Sun thru Saturday), just the date they represent would change.

  • How to rename C00n generic column names in a Dynamic SQL report

    I have a an interface whereby the user can select 1 to 60 (upper limit) columns out of 90 possible columns (using a shuttle) from one table before running a report.
    To construct the SQL that will eventually execute, I'm using a "PLSQL function body returning SQL query" with dynamic SQL. The only problem is that I have to use "Generic Column Names" option to be able to compile the code and end up with c001 to c060 as the column names.
    How can I use the names of the selected columns as the report headings rather than c001, C002... etc?
    I do not know beforehand which columns, or how many columns or the order of the selected columns.
    I know Denes K has a demo called Pick Columns but I can't access his code. I have a hunch though that he may be just using conditions to hide/show the apropriate columns.
    thanks in advance
    PaulP

    Hi Paul
    I would change the Heading Type in the Report Details screen to PLSQL and use the shuttle item to return the column values. e.g.
    RETURN :p1_shuttle;
    I'm assuming the shuttle already has a colon separated list of the column headings in the correct order?
    I hope that helps
    Shunt

  • Migration from SQL Reports to Oracle Reports

    Hello everybody,
    We have a requirement where we need to convert various SQL
    reports in .SQL format to Oracle reports ie rdf format. Is there
    a quick solution for this? Is there a tool available? Or is the
    straight forward approach of starting an entirely new report the
    only option available.
    Awaiting your replies,
    regs,
    pramodh

    [Oracle Migration Workbench|http://www.oracle.com/technology/tech/migration/workbench/index.html]
    You can post your questions Database and Application Migrations
    Edited by: Anantha R on Sep 10, 2009 2:56 PM
    Edited by: Anantha R on Sep 10, 2009 2:57 PM

  • Dynamic SQL in non oracle Data Template

    Hi All
    I am currently working on a project with BI Publisher and we are developing on an OBIEE data source using data templates.
    Does anyone know how to handle dynamic sql &Lexicals when your only data source is OBIEE.
    I have found some code in the help which doesn't seem to work.
    {$ if ${P_COUNTRY} = '*,*' $}
    WHERE "Customers"."Country" in (&P_COUNTRY)
    {$ elsif ${P_COUNTRY} = '*' $}
    WHERE "Customers"."Country" = :P_COUNTRY
    {$ else $}
    {$ endif $}
    Thanks
    Andy

    Hi Andy,
    If you are using Answers as data source, Dynamic query is not possible.

  • Dynamic SQL Report

    Hi everybody
    I want to build a dynamqi sql query to use in a report. What is dynamic is the name of the table I want to request. I have a nice item named P8-ECHELLE, a select List with a LOV returning a part of the name.
    For example the select list returns "E034". I want to add this part of the name to the beginning of the name of the table which is "EVV_" in order to get the name of the table which would be "EVV_E034'.
    The select would like this : SELECT * FROM SIVOA.EVV_E034
    This is the code :
    DECLARE
    x VARCHAR2 (4000);
    BEGIN
    x := 'SELECT * FROM SIVOA.EVV_' || :P8_ECHELLE ;
    RETURN (x);
    END;
    I get an error : "failed to parse SQL query: ORA-00942: table or view does not exist"
    Coudl you help ?
    Christian
    PS : thank to D. Kubicek for his example !

    This is the code.
    DECLARE
    x VARCHAR2 (4000);
    BEGIN
    x :=
    'SELECT * '
    || 'FROM EMP '
    || 'WHERE 1=1 '
    || CASE
    WHEN :p184_ename IS NOT NULL
    THEN 'AND UPPER(ename) LIKE '''
    || UPPER (:p184_ename)
    || '''||''%'' '
    ELSE NULL
    END
    || CASE
    WHEN :p184_deptno IS NOT NULL
    THEN 'AND INSTR('':''||'
    || ''''
    || :p184_deptno
    || ''''
    || '||'':'', '':''||deptno||'':'') &gt; 0'
    ELSE NULL
    END;
    RETURN (x);
    END;

  • Oracle APEX PL/SQL reports

    Hello
    I was wondering if someone can help me with the syntax error, or if someone can give an example how to implement dynamic query based on a select list item.
    Last night I was looking how to implement simple PL/SQL report using Oracle Apex source region, but every time I try to run the page I'm getting an error "Flow=128 page=10 ORA-20001: wwv_flow_flash_chart.func_ret_sql_qry_err"
    IF I put the same query into SQL developer and replace :P10_STATUS into string 'open', query returns correct results.
    It works fine for single table, but not for inner joint.
    Any help would be appreciated.
    ======================================================
    declare
    v_return varchar2(3000);
    begin
    IF :P10_STATUS is not null THEN
    v_return := 'select p.priority, p.status, i.departments
    from help_details p, help_department i
    where status = :P10_STATUS';
    END IF;
    return v_return;
    END;
    =========================================================

    Hi ATD,
    Thanks for the suggestions.
    Now i have replaced the code as
    Declare
    v_return varchar2(3000);
    begin
         :P1_ITEM1:=:P1_DEPTLOV;
    IF :P1_DEPTLOV IS NOT NULL
    THEN
    v_return:='select dname,deptno from dept ';
    return v_return;
    ELSE
    V_RETURN:='SELECT ename,deptno FROM EMP ';
    return v_return;
    END IF;
    plsql reportEdit      
    report error:
    ORA-20001: Error fetching column value: ORA-01403: no data found
    DEPTNO     Ename
    and in case i change
    select dname from dept ; for select dname ,deptno from dept ;
    then i m able to see only the col deptno , but in query i never used dept...
    I am unable to get where is the mistake ..
    Kindly to a favour by using the above link & checking the application .
    Regards,
    Nandini Thakur.
    Edited by: Nandini thakur on Nov 25, 2010 3:59 AM

  • Erratic Report Region Behavior with Dynamic SQL Queries

    I'm running HTMLDB v 1.5.1.00.12 and I've noticed some odd behavior with report regions using dynamic SQL queries. Every so often, our testers will run a page containing a dynamic sql report region and get the following error, (despite the fact the query was working only moments ago and no other developer has touched it):
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    or sometimes
    failed to parse SQL query:ORA-01403: no data found
    The only solution I've found so far is to:
    1) Make a copy of the failed report region.
    2) Disable or delete the original failed report region.
    The new copy of the report region runs without issue.
    My search of the forums turned up the following two threads, but neither provided me with a clear explanation of the cause, and how to avoid it:
    ORA-06502:PL/SQL: numeric or value error: character string buffer too small
    Re: Import Export Error (ORA-06502)
    The columns being returned are below the 4000 character limit, and the rows being returned are far less than 32k in size.
    Could this have anything to do with the way HTMLDB is internally storing the PL/SQL used to generate the dynamic SQL Query? Is there any known issue related to this with that version of HTMLDB?
    This problem occurs without any discernable pattern or consistency, making it hard to determine where I should focus my efforts in tracking down the cause.

    Hi all,
    My report seems to be behaving correctly once i set it to "Use Generic Column Names (parse query at runtime only)" :)
    Cheers,
    Joel

  • Create Simple Printable SQL Reports in APEX 3.2 Without a Print Server

    Oracle Apex 3.2
    Oracle 11g
    OHS
    I thought I'd post an answer on how to get a printable SQL report in Oracle Apex without having to configure a print server. I'm sure that similar things have been posted in various other places, but I found the documentation for using custom row templates (to create a printable report) to be incomplete at best. For my needs, I was not looking for an awe inspiring report printout, but rather simple directory information printouts. For example, if you wanted a printable report to look like this:
    =================================
    CURRENT ACTIVE EMPLOYEES REPORT
    =================================
    First Name: Bob                  Employee ID: 0000000000
    Last Name: Swarts              Company Credit Card Number: 0000-0000-0000-0000
    Middle Initial: F                  Social Security Number: 000-00-0000
    First Name: Sue                  Employee ID: 1111111111
    Last Name: Johnson           Company Credit Card Number: 1111-1111-1111-1111
    Middle Initial: G                 Social Security Number: 111-11-1111
    etc.....In MS Access, doing this is very easy. From what I understand, this is also very easy to do this using PDF software with a print server. However, if you are like me, you don't want to waste time and money by obtaining and configuring a print server (even if it is free). However, never fear because you can create simple reports like this with relatively minimalistic effort; and you can do so without having to configure a print server.
    1.) Create a new page
    2.) Create a new sql query report region on the page
    3.) Make your query just as you would normally.
    For this example the query would be:
    select first_name, employee_id, last_name, company_credit_card_number, middle_initial, social_security_number from employee_table4.) Go to "Shared Components"
    5.) Under "User Interface" click on "Templates"
    6.) Click on the "Create" button
    7.) Select "Report"
    8.) Select "From Scratch"
    9.) For the "Template Class," choose one of the "custom" classes. For the "Template Type," choose "Named Column"
    10.) Click the "Create" button
    11.) Now that you created a custom row template, go back to "Shared Components" and then to "Templates"
    12.) Find your custom template and click on it
    CUSTOM TEMPLATE HOW TO
    1.) In the "Row Template 1" textbox, you are going to create some custom css that will display the data on the page. The css to make the report look like the report above would be:
    <div style = text-align: justify">
    <table>
    <tr>
    <td style = "width: 200px"><b>First Name: #1#</b></td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px"><b>Employee Id: #2#</b></td>
    <tr>
    <td style = "width: 200px">Last Name: #3#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Company Credit Card Number: #4#</td>
    <tr>
    <td style = "width: 200px">MI: #5#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Social Security Number: <b>#6#</b></td>
    </tr>
    </table>
    <p style = "page-break-after: always">----------------------------------------------------------------</p>
    </div>
    {code}
    As you probably figured out, the numbers between the two pound signs ("#") are substitution strings for the variables in your select query in the SQL report.  As you have also probably noticed, the "page-break-after: always" line will always make it so that only one report is shown on a page.  To fix this, we will need to use logic and row template 2.
    2.)  For the "Row Template 1 Condition," select "Use Based on PL/SQL Expression" from the select list.
    3.)  In the textbox for the row template 1 expression enter in the following:  {code}substr('#rownum#',-1) = 0 or substr('#rownum#',-1) = 5{code}
    ***** This condition will make sure that this template is applied when the last digit in the row number is either a "0" or a "5."  So, only 5 reports will be displayed per page.
    4.)  Now go down to "Row Template 2" and enter in the following in the textbox:
    {code}
    <div style = text-align: justify">
    <table>
    <tr>
    <td style = "width: 200px"><b>First Name: #1#</b></td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px"><b>Employee Id: #2#</b></td>
    <tr>
    <td style = "width: 200px">Last Name: #3#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Company Credit Card Number: #4#</td>
    <tr>
    <td style = "width: 200px">MI: #5#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Social Security Number: <b>#6#</b></td>
    </tr>
    </table>
    <p>----------------------------------------------------------------</p>
    </div>look familiar? that is because it exactly the same code as above, except without the page-break-after piece.
    5.) For the "Row Template 2 Condition," select "Use Based on PL/SQL Expression" from the select list.
    6.) In the textbox for the row template 2 expression enter in the following: substr('#rownum#',-1) != 0 or substr('#rownum#',-1) != 5***** This condition will make sure that this template is applied when the last digit in the row number IS NOT a "0" or a "5."
    7.) Scroll down to column headings and enter this in the textbox for the "Column Heading Template": OMIT
    8.) Click the "Apply Changes" button
    9.) Now go back to your application and the page you want to apply the custom report to
    10.) On the report, click on the report tab
    11.) Scroll down to "Layout and Pagination"
    12.) Click on the "Report Template" select list
    13.) Select your custom template
    14.) Click the "Apply Changes" button and run the page
    Try printing the report, if it does not print correctly, try it in Opera, Safari, Internet Explorer, Firefox, and Google Chrome. Please note that it is my understanding that only Firefox does not understand the css "page-break-after: always"
    If needed, add some css to the page to hide tabs and other items when you print.
    ~Andrew Schulltz

    DOH. Too much copy/paste.
    In my code, I was setting an application variable to contain the email address I was retrieving from AD. Once commented out, it worked fine.
              IF l_attr_name = 'mail' THEN
                 APEX_UTIL.SET_SESSION_STATE('F111_USER_EMAIL',l_vals(i));
              END IF;

  • Multiple Parameter Dynamic Query/Report

    I'm very much a newbie to both APEX and SQL. I want to create a page with two regions, one used to hold parameters (LOV Select Lists), and one to reflect a dynamic SQL report including filtering the results using the values of the items in the select lists.
    I can do this with one Parameter/LOV select list - but am not clear on how to code for multiple parameters.
    Can someone give me an example on how to code the query, to include multiple parameters (P1_Empl, P1_AssetNo, P1_AssetType, etc)? The query with 'null' parameters/filters gives you all records; with any or many parameters acting as filters the query and resulting report would reflect the value of the filters.
    In addition, is there a specific type of region that needs to be used for the report region?
    Implied is the question - how do you handle the initial page view, so no error messages are seen - I'd like to get all records as a default.
    Thanks
    Rich

    sbkenned,
    The referenced sql for that report gives me problems.
    [ P3_Department_ID is the LOV of departments ]
    [ Null allowed and null return value is -1 ]
    <code>
    SELECT e.EMPLOYEE_ID,
    e.FIRST_NAME,
    e.LAST_NAME,
    e.HIRE_DATE,
    e.SALARY,
    e.COMMISSION_PCT,
    calc_remuneration(salary, commission_pct) REMUNERATION,
    e.DEPARTMENT_ID,
    d.DEPARTMENT_NAME
    FROM OEHR_EMPLOYEES e,
    OEHR_DEPARTMENTS d
    WHERE e.DEPARTMENT_ID = d.DEPARTMENT_ID(+) AND
    (e.DEPARTMENT_ID = :P3_DEPARTMENT_ID or
    (e.DEPARTMENT_ID is null and nvl(:P3_DEPARTMENT_ID,'-1') = '-1'))
    </code>
    The where clause: I'm guessing it is checking e.deptno = d.deptno
    but then what is (+)?
    can I use the '(+) and' to add on sections for each select list/parameter?
    In the paran part of the where clause, I get the first part and the use of 'or' - but I'm not sure what the last statement is doing.
    e.deptno is null AND ?? if there is a null value in P3_Department_ID return -1 otherwise return -1 ??
    I'm lost at that point as I clearly don't understand the syntax.
    Would you suggest multiple clauses in a where statement in order to add multiple filter values, and how do I handle nulls so those filters are not used/relfected?
    I am not using a self submitting LOV select list - I am using a button to refresh the query region manually
    I am comfortable with using an interactive report, but that interface is not what I need to present.
    As I indicated - I'm weak in the SQL area and need an example on how to code this type of query.
    Thanks.
    Rich

  • Can we use Dynamic SQL in Oracle Reports ?

    Hi ,
    Can we use Dynamic SQL in Oracle Reports ?
    If yes please give some examples .
    Thanx
    srini

    I believe the built-in package SRW.Do_Sql is what you are looking for
    Example from the document:
    /* Suppose you want to create a "table of contents" by getting the
    ** first character of a columns value, and page number on which its
    ** field fires to print. Assume that you want to put the "table of
    contents"
    ** into a table named SHIP. You could write the following construct:
    DECLARE
    PAGE_NO NUMBER;
    PAGE_FOR INDEX NUMBER;
    SORT_CHAR CHAR(1);
    CMD_LINE CHAR(200);
    BEGIN
    SORT_CHAR := :SORT_NAME ;
    IF :CALLED = Y THEN
         SRW.GET_PAGE_NUM(PAGE_FOR_INDEX);
         SRW.USER_EXIT(RWECOP PAGE_FOR_INDEX
         P_START_PAGENO);
         SRW.MESSAGE(2,TO_CHAR(:P_START_PAGENO));
    END IF;
    SRW.GET_PAGE_NUM(PAGE_NO);
    CMD_LINE := INSERT INTO SHIP VALUES
                          (||SORT_CHAR||,||TO_CHAR(PAGE_NO)||);
    SRW.MESSAGE(2,CMD_LINE);
    SRW.DO_SQL(CMD_LINE);
    COMMIT;
    EXCEPTION
      WHEN DUP_VAL_ON_INDEX THEN
            NULL;
      WHEN SRW.DO_SQL_FAILURE THEN
            SRW.MESSAGE(1,FAILED TO INSERT ROW INTO SHIP TABLE);
      WHEN OTHERS THEN
           COMMIT;
    END;

  • Dynamic SQL and Oracle stored procedures

    Does anybody has any experience with invoking an Oracle stored procedures
    with output parameters, using dynamic SQL from Forte?
    Thanks,
    Dimitar

    I would be interested. We are currently using a homegrown DataMapper architecture with the Microsoft OracleClient. I would like to move to ODP.Net once a production version supporting ADO.Net 2.0 is available. After that, I would then like to look at using an off the shelf persistence framework such as EntitySpaces, NHibernate or IdeaBlade's DevForce.

  • Report using ref cursor or dynamic Sql

    Hi,
    I never create a report using a ref cursor or a dynamic sql. Could any one help me to solve the below issue.
    I have 2 tables.
    1. Student_Record
    2. Student_csv_help
    Student_Record the main table where the data is stored.
    Student_csv_help will contain the all the column names of the Student_record.
    CREATE TABLE Student_CSV_HELP
    ENTRY_ID NUMBER,
    RAW_NAME VARCHAR2(40 BYTE),
    DESC_NAME VARCHAR2(1000 BYTE),
    IN_OUTPUT_LIST VARCHAR2(1 BYTE)
    SET DEFINE OFF;
    Insert into TOA_CSV_HELP
    (ENTRY_ID, RAW_NAME, DESC_NAME, IN_OUTPUT_LIST)
    Values
    (1, 'S_ID', 'Student ID', 'Y');
    Insert into TOA_CSV_HELP
    (ENTRY_ID, RAW_NAME, DESC_NAME, IN_OUTPUT_LIST)
    Values
    (2, 'S_Name', 'Student Name', 'Y');
    Insert into TOA_CSV_HELP
    (ENTRY_ID, RAW_NAME, DESC_NAME, IN_OUTPUT_LIST)
    Values
    (3, 'S_Join_date', 'Joining Date', 'Y');
    Insert into TOA_CSV_HELP
    (ENTRY_ID, RAW_NAME, DESC_NAME, IN_OUTPUT_LIST)
    Values
    (4, 'S_Address', 'Address', 'Y');
    Insert into TOA_CSV_HELP
    (ENTRY_ID, RAW_NAME, DESC_NAME, IN_OUTPUT_LIST)
    Values
    (5, 'S_Fee', 'Tution Fee', 'N');
    commit;
    CREATE TABLE Student_record
    S_ID NUMBER,
    S_Name VARCHAR2(100 BYTE),
    S_Join_date date,
    S_Address VARCHAR2(360 BYTE),
    S_Fee Number
    Insert into Student_record
    (S_ID, S_Name, S_Join_date, S_Address,S_Fee)
    Values
    (101, 'john', TO_DATE('12/17/2009 08:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'CA-94777', 2000);
    Insert into Student_record
    (S_ID, S_Name, S_Join_date, S_Address,S_Fee)
    Values
    (102, 'arif', TO_DATE('12/18/2009 08:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'CA-94444', 3000);
    Insert into Student_record
    (S_ID, S_Name, S_Join_date, S_Address,S_Fee)
    Values
    (103, 'raj', TO_DATE('12/19/2009 08:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'CA-94555', 2500);
    Insert into Student_record
    (S_ID, S_Name, S_Join_date, S_Address,S_Fee)
    Values
    (104, 'singh', TO_DATE('12/20/2009 08:00:00', 'MM/DD/YYYY HH24:MI:SS'), 'CA-94666', 2000);
    Commit;
    Now my requirement is:
    I have a form with Student_record data block. When i Click on print Button on this form. It will open another window which has Student_CSV_HELP.DESC_NAME and a check box before this.
    The window look like as below:
    check_box       DESC_NAME+
    X                   S_ID+
    --                   S_Name+
    X                   S_Join_date+
    X                   S_Address+
    --                  S_Fee+
    X  means check box checked.+
    --  means check box Unchecked.+
    After i selected these check boxes i will send 2 parameters to the report server
    1. a string parameter to the report server which has the value 'S_ID,S_Join_date,S_Address' (p_column_name := 'S_ID,S_Join_date,S_Address');
    2. the s_id value from the student_record block (p_S_id := '101');
    Now my requirement is when i click on run. I need a report like as below:
    Student ID : 101+
    Joining Date : 12/17/2009 08:00:00+
    Address : CA-94777+
    This is nothing but the ref cursor should run like as below:
    Select S_id from student_record block S_id = :p_S_id;
    Select S_Join_date from student_record block S_id = :p_S_id;
    Select S_Address from student_record block S_id = :p_S_id;
    So, according to my understanding i have to select the columns at the run time. I dont have much knowledge in creating reports using ref cursor or dynamic sql.
    So please help me to solve this issue.
    Thanks in advance.

    Plain sql should satisfy your need. Try ....
    Select S_id, S_Join_date, S_Address
    from student_record
    where S_id = :p_S_id

  • Applying a Template to a Dynamic PL/SQL Report

    I have an application in which there are several reports, all based on the wizard and using standard templates.
    One of my reports, however is a Dynamic PL/SQL Report, using htp.print statements to create the output.
    I'm not quite sure, how I can specify that I want to use the same template as the rest of my reports, so as to maintain the look and feel of the whole application.
    Can someone tell me how this is done, or where I can read about it?
    Thank you.

    Sergio,
    I have a table with two columns I want to display. The columns aren't wide but there are 15 or 20 rows. What I would like is that after 10 rows the report starts another set of colums beside the first ones. The standard report continues on down so you have to scroll down to see the bottom. I'm not sure if my explanation is clear so instead of:
    1 info1
    2 info2
    3 info3
    4 info4
    5 info5
    6 info6
    I want:
    1 info1 4 info4
    2 info2 5 info5
    3 info3 6 info6
    Not being too picky, it could also be:
    1 info1 2 info2
    3 info3 4 info4
    5 info5 6 info6
    I don't see a way of doing this with standard reporting so a PL/SQL report seems to be the way to go (which works fine except for the formatting). Sorry if I've just missed it in the options. I'd prefer to do it using standard HTMLDB
    Thanks.
    Paul

  • How to register a pl/sql report as an Oracle report.

    Guru's,
    I have a requirement to add a Pl/sql report in a shipping document set.
    Shipping document set can contain Oracle reports only(RDF).
    Is there a way we can add pl/sql report in a shipping docuemnt set?
    Thanks
    -Karthik

    Please see these docs.
    Adding PL/SQL Stored Procedure To Document Set. [ID 551154.1]
    Concurrent Programs Of Pl/Sql Attached To Shipping Document Set Is Not Firing [ID 810856.1]
    Concurrent Programs Of Pl/Sql Attached To Shipping Document Set Not Working. [ID 1246184.1]
    Shipping Document Set Containing PL/SQL Program Ends with Oracle Error 6550 in FDPSTP [ID 316221.1]
    Concurrent Program Not Being Called? [ID 956722.1]
    Thanks,
    Hussein

Maybe you are looking for

  • How can I make my Mac read email aloud?

    I cannot find that function. I was looking at voiceover thread but all the posts are about problem using it not how to use it.

  • How to make Mandatory field as Non-empty

    Hi All I need to make a mandatory field as NON EMPTY. How can i do that. Please help me on this. Thanks Sathish

  • Error in cancelling invoice document

    Hello Experts, I am trying to cancel invoice document number xxxxxxxxxx using tx MR8M, with Reversal reason 02 and Posting date 18.08.2010. But by clicking on save button you get the following error message: "No reversal possible. Reverse value must

  • Failed to install ISKernel

    I am trying to install the Blackberry Desktop Software v 4.2 on my new computer, with Windows Vista, and getting a message : 'Failed to install ISKernel files. Make sure you have the right permissions.' From what I have seen it seems to be a Vista is

  • Business Intelligence SE does not install discoverer

    Hi, Does anybody recently download Business Intelligence SE from Oracle site and install successfully ? I installed it, but it does not install the discoverer component. I checked the CD stage sub folder, and it does not have discoverer component. I