Query option in report parameter

I've created a report with a bind variable.
When I run the parameter form, I see "Query options" and the filed for my bind variable.
Obviously I'm missing something, but where can I change the font (color and typeface) of the text "Query options"
Ton

What values are you passing for &p_emp?
SQL> select * from hr.employees where &p_emp;
Enter value for p_emp: rownum <=5
old   1: select * from hr.employees where &p_emp
new   1: select * from hr.employees where rownum <=5
EMPLOYEE_ID FIRST_NAME           LAST_NAME                 EMAIL                     PHONE_NUMBER         HIRE_DATE           JOB_ID   
        100 Steven               King                      SKING                     515.123.4567         17-06-1987 00:00:00 AD_PRES
        101 Neena                Kochhar                   NKOCHHAR                  515.123.4568         21-09-1989 00:00:00 AD_VP    
        102 Lex                  De Haan                   LDEHAAN                   515.123.4569         13-01-1993 00:00:00 AD_VP    
        103 Alexander            Hunold                    AHUNOLD                   590.423.4567         03-01-1990 00:00:00 IT_PROG
        104 Bruce                Ernst                     BERNST                    590.423.4568         21-05-1991 00:00:00 IT_PROG
5 rows selected.
SQL> select * from hr.employees where &p_emp;
Enter value for p_emp: 1
old   1: select * from hr.employees where &p_emp
new   1: select * from hr.employees where 1
select * from hr.employees where 1
ERROR at line 1:
ORA-00920: invalid relational operatorKeep in mind:
Report Builder-related questions can be posted @ the Reports forum: Reports

Similar Messages

  • "All" option in report parameter

    Hi
    I created 4 parameters for my report.
    Those default selected are the 1st value in database so if click "submit query" its not display ALL
    so now i wanna create an "All" option for each parameter and make it default so it make easier to users if they want to display all
    How to create this "All" option?
    Thank you

    Hi,
    First thing is that hopefully your query has been done is such a way that it can show all.
    If not you can use the parameter along with NVL as follows :
    where column_code = nvl (:test_parameter, column_code)
    user13010403 wrote:Those default selected are the 1st value in database so if click "submit query" its not display ALLI am not sure what you meant by this, I think you are using Report Parameter form.
    For the test_parameter in the query for the list of values use such a type of query:
    select column_code,  column_name
    from  table_name
    union
    select null, '***All***'
    from dual
    order by 2Note: using *** before All will place it first for ordering
    Hope this helps
    Best Regards
    Arif Khadas
    Also for List of Values for parameter check 'Hide first Column'
    Edited by: Arif Khadas on May 5, 2010 1:23 PM

  • Download Query Options with Report

    Hi all,
    I have a report on one of my pages that depends on a number of lists of values. I would like to see the values of these lovs included in the excel file when I export the report, so that the result set is reproducible. I do not, however, want the values of these lovs to appear in the report on the actual page. Does anyone know of a way to do this?
    Thank you,
    Marshall

    Hi all,
    I have a report on one of my pages that depends on a number of lists of values. I would like to see the values of these lovs included in the excel file when I export the report, so that the result set is reproducible. I do not, however, want the values of these lovs to appear in the report on the actual page. Does anyone know of a way to do this?
    Thank you,
    Marshall

  • I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query parameter to report parameter i need to pass distinct values. How can i resolve this

    I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query
    parameter to report parameter i need to pass distinct values. How can i resolve this

    Hi nancharaiah,
    If I understand correctly, you want to pass distinct values to report parameter. In Reporting Service, there are only three methods for parameter's Available Values:
    None
    Specify values
    Get values from a query
    If we utilize the third option that get values from a dataset query, then the all available values are from the returns of the dataset. So if we want to pass distinct values from a dataset, we need to make the dataset returns distinct values. The following
    sample is for your reference:
    Select distinct field_name  from table_name
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Report parameter from query

    Hi,
    The distribution file uses parameters from the query in the report
    The problem is that if no records match it means that when it tries to resolve &amp;&lt;report_id it can't and generates the following error
    Terminated with error: REP-34308: Invalid reference parameter 'report_id' in distribution list
    Does anyone know how I can check if this is null in the distribution file?
    <foreach>
    <destype id="blob1" name="blobdestination" instance="this" format="pdf">
    <property name="desname"
    value="http://host:port/prod/*&amp;&lt;report_id>*/&amp;&lt;key_val>/&amp;&lt;FileName>/&amp;&lt;Type>"/>
    <include src="mainSection"/>
    </destype>
    </foreach>

    Hi Gorgo,
    According to your description, you have problem when in passing a parameter for running a Oracle Query. Right?
    Based on my knowledge, it use "&" as synax for parameter in Oracle, like we use "@" in SQL Server. In this scenario, maybe you can try '01/01/2014' when inputing in "From". We are not sure if there's any limitation for To_Date()
    function. For your self-testing, you can try the query in sqlplus/sql delveloper. Since your issue is related to Oracle query, we suggest you post this thread onto Oracle forum.
    Best Regards,
    Simon Hou

  • Problem using default value of report parameter 1 to validate parameter 2 passed in to report

    I am having a problem with an SSRS report using the default value of report parameter 1 to validate parameter 2 passed in to report (via C#) instead of using the value of parameter 1 that is also passed into the report.  Here are the
    simplified details:
    Using SSDT, SQL Server 2008 R2
    SSRS report has 2 parameters:
    P1 -- text, hidden, default value 'R1', ... front-end C# code can pass 'R2' or 'R1'
    P2 -- text, allows multiple values, list of available values provided by stored procedure (sproc_list) that takes P1 value as a parameter.  Hence, sproc_list either provides a list for P1 = 'R1' or P1 = 'R2'.
    List for P1 = 'R1' is 'A', 'B', 'C'
    List for P1 = 'R2' is 'A', 'B', 'D'
    Values for P1 and P2 can be passed in via C# to the report.
    The C# front-end displays 2 report choices to the user, R1 and R2, where both choices call the same RDL; but choice R1 passes in 'R1' for P1, and the choice R2 passes in 'R2' for P1.
    Upon a users 1st time use of the report no parameters are passed in.  Then when the user exits the report, the parameter value for P2 that was chosen is saved off to a file for R1 or R2, and used the next time the user selects the report.
    Everything always works fine for report R1 since the default value for P1 is 'R1'.
    When R2 is chosen and the user selects 'D' as the value for P2, runs the report, then exits, the P2 value of 'D' for R2 is saved to a file.  When the user returns the next day to run report R2, 'R2' is passed for P1, and 'D' is passed for P2.
    This is when the problem occurs.  The value of 'D' for P2 is validated against a list generated for P2 based on the default value of 'R1' for parameter P1.  Hence, SSRS considers 'D' an invalid value for P2 and blanks out the P2 parameter. 
    The user can then use the drop down list for P2 and choose 'D', but this defeats the purpose of saving the parameter values to be used the next time.
    Why is the stored procedure that provides a list of available values for parameter P2 using the default value of 'R1' for parameter P1 instead of using the value of 'R2' passed into the report for parameter P1?

    Hi Tom,
    Sorry for my delay.
    If I understand correctly, you have two parameter in your report. It is a couple of cascading parameter. If we have choose ‘R1’ of P1, the P2 values is A, B, C. ‘R2’ of P1, corresponding P2 values is A, B, D. What your requirement is to save the end use
    select option of these two parameters.
    In SSRS, if we have configure the parameter with default value. When we run the report, the parameter will fill with the default value to filter data. If we want to save the last status we are render the report, we need to update the default value of P1.
    If we are query the default value from database, if possible, we can
    update the database try to resolve the issue.  Alternatively, we can set the dynamic default value for the parameter.
    Hope this helps.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Report Parameter Default Value at runtime

    Post Author: DMiller
    CA Forum: .NET
    Hi,
    I need to be able to create new parameters at runtime and have been somewhat successful in this endeavor. I have one remaining issue that I am hoping that somebody can help me with. Let me explain.
    When you create a parameter from within the Crystal XI designer, you are able to specify a number of default values that will display as a list box at runtime. Eg. ParameterName is MaritalStatus and default values are ("Married", "Single", "Divorced" etc). There is also the ability to specify the Default Value in the Value Options area of the screen. This value could be set to any one of the default values above - let's say that I set it to "Single". By setting the Default Value, this causes the Parameter Fields screen, at runtime, to "Select" the specific default value set above - in this case "Single", instead of showing "..." as the parameter value.
    The default value setting in the Value Options is beneficial when you have reports that are usually run with certain parameter values and only occasionally these need to change. Instead of having to specify every parameter value, the user only has to set the ones that have not been defaulted or they want to change.
    So, I have been successful in creating the parameters at runtime and successfully running the report. I have been unsuccessful in setting the "Default Value" as seen in the Value Options area. I have tried a number of properties on the report parameter object and have not found anything to set this.
    Does anybody know how to set the "Default Value" as seen in the Value Options area in the designer at runtime?
    Thanks for any help.

    Post Author: JerryB
    CA Forum: .NET
    You have described my scnario to a tee.  Did you ever figure out how to get the single default value that is available in the "value options" area when working within the Crystal Reports development environment.  I am using VB.Net and have a nice report menu form and viewer but recently a user ask me to set the default value in one of my combo boxes and I have been unsuccessful in finding the correct property to use.

  • SSAS report action to pass multi-value list of dimention key values to a SSRS report parameter

    This was originally posted on StackOverflow and suggested I try here as well.
    I want to create a report action in an SSAS OLAP cube that generates a list of formatted values to pass into an SSRS report parameter that accepts a multi-valued parameter list.  This would be applied at the
    cell level in the SSAS action.  I have found a solution that gets me most of the way:
    How to Pass Multiple Values from an SSAS Report Drill Through Action to an SSRS Multi-Value Parameter, but not quite.  The action does appear in Excel and works
    if I run the action from a cell that is at or below the dimension attribute I am generating the list for, in this case,
    Account Key.
    Below is a link to a screen capture (unable to embed it due to lack of reputation) showing the action and dimension structure in Excel.  The action works as long as I run it at the
    Account Key level or below.  I want to be able to run it at higher levels, such as
    Account Major and still have it generate all then related Account Key values for the SSRS report parameter.  Running it at the higher
    Account Major level does not trigger the report to run.
    Excel Action Screen Shot:
    http://i.stack.imgur.com/QCGSp.png
    Below is the MDX I am using to generate the value for the report parameter:
    UrlEscapeFragment(
    GENERATE(
    DESCENDANTS(
    [Account].[Account Key].CurrentMember,
    [Account].[Account Key].[Account Key]
    [Account].[Account Key].CURRENTMEMBER.Name,
    "&rp:Account="
    I am hoping that I can somehow modify the MDX above to make it return all the
    Account Keys for any attribute of the Account dimension when ran from any measure cell, not just when ran at self and children of
    Account Key in the pivot table.
    Also, if it helps, I can execute the following MDX query on the cube and get the results I am looking for.
    WITH MEMBER [Measures].[Account Key List] as
    GENERATE(
    DESCENDANTS([Account].[Account].CurrentMember, [Account].[Account].[Account]),
    [Account].[Account].CURRENTMEMBER.NAME,
    "&rp:Account=")
    SELECT {[Measures].[Account Key List]} on 0,
    ([Account].[Account Company Number].[Account Company Number],[Account].[Account Major].[Account Major]
    ) on 1
    FROM [Company 10 Action Demo]
    Below are partial results:
    10.116&rp:Account=10.116.010
    10.117&rp:Account=10.117.010&rp:Account=10.117.020
    10.120&rp:Account=10.120.005&rp:Account=10.120.006&rp:Account=10.120.010&rp:Account=10.120.020&rp:Account=10.120.030&rp:Account=10.120.040&rp:Account=10.120.050&rp:Account=10.120.060&rp:Account=10.120.380&rp:Account=10.120.999
    10.123
    Questions
    Any ideas what I might need to do to get Account Key to be returned for any attribute of the
    Account dimension?
    Would I possibly have to alter my Account dimension in the cube to get this to work?
    Thanks in advance.
    Edit 1 - Adventure Works Cube Version
    I was unable to get the suggested answer with the "Exists" function to work.  To better demonstrate this issue, I have recreated it using the Adventure Works Cube.
    I will focus on the Customer dimension, specifically the Customer and
    Education attributes.  I created a report action called Test Report Action.  Below is the XML created for it in the cube.
    <Action xsi:type="ReportAction" dwd:design-time-name="f35ad5ee-5167-4fb8-a0e0-0a74cc6e81c6">
    <ID>Report Action 1</ID>
    <Name>Test Report Action</Name>
    <TargetType>Cells</TargetType>
    <Target></Target>
    <Type>Report</Type>
    <ReportServer>SQLSERVER</ReportServer>
    <Path>ReportServer?/Test Report</Path>
    <ReportParameters>
    <ReportParameter>
    <Name>Test Customer Existing</Name>
    <Value>UrlEscapeFragment(
    GENERATE(
    EXISTING DESCENDANTS(
    [Customer].[Customer].CurrentMember,
    [Customer].[Customer].[Customer]
    [Customer].[Customer].CURRENTMEMBER.Name,
    "&amp;rp:Customer="
    )</Value>
    </ReportParameter>
    </ReportParameters>
    <ReportFormatParameters>
    <ReportFormatParameter>
    <Name>rs:Command</Name>
    <Value>Render</Value>
    </ReportFormatParameter>
    <ReportFormatParameter>
    <Name>rs:Renderer</Name>
    <Value>HTML5</Value>
    </ReportFormatParameter>
    </ReportFormatParameters>
    </Action>
    Below are the steps to re-create the issue.
    Connect to the cube in Excel
    Add dimension Customer -> More Fields -> Customer
    Add measure Internet Sales -> Internet Sales Amount
    Right-click Internet Sales Amount cell, select "Additional Actions" -> "Test Report Action" and see customer values created for URL 
    When the action is ran at this point with Customer, I see the values created in the URL shown message box (since there is no SSRS report server at location specified).
    Now the part I'm unable to resolve
    Remove the Customer dimension and add Customer -> Demographic -> Education
    Right-click Internet Sales Amount cell, select "Additional Actions" -> "Test Report Action"
    Nothing happens. If I ran the action on the cell next to "Bachelors", I would want it to build up all the list of all the "Customers"  that make up the "Bachelors" in the
    Customer dimension as part of the report parameter.  If no attributes where used in the cube from the
    Customer dimension for that cell, then I would like it to return "All Customers", or something similar to show that all customers are included in the aggregations.
    I am not too MDX savvy, thus far.  I think I need to somehow join the
    Customers to Internet Sales Amount in the Generate function portion.  I have tried several different combinations of the
    Customer dimension and Internet Sales Amount, along with various functions to see if I could get this to work with no success.  I am hoping that someone more knowledgeable the me will have a solution.   If you need more details,
    please ask and I will provide them.

    Simon,
    Thanks for you help with this.  This morning I found a workaround.  Below describes what that is.
    What I ended up doing was getting a list of values from a degenerate dimension that I could use to pass to SSRS to get a list of transactions for a report.  Below is how I did this, in relation to the Adventure Works cube using the degenerate dimension
    Internet Order Details.
    WITH MEMBER [Measures].[Order Param List] AS
    GENERATE(
    EXISTS([Internet Sales Order Details].[Sales Order Number].[Sales Order Number].Members, ,
    "Internet Sales"),
    [Internet Sales Order Details].[Sales Order Number].CurrentMember.Name,
    "&rp:OrderNum=")
    SELECT {[Measures].[Order Param List], [Measures].[Internet Sales Amount]} ON 0
    ,([Date].[Calendar].[Date]) ON 1
    FROM [Adventure Works]
    This will get a list of Sales Order Number in a text string, separated by "&rp:OrderNum=" for each measure of
    Internet Sales. This would allow me to create an SSRS report to bring back detail information for each
    Sales Order Number. Below are some sample results.
    May 16, 2007 SO50493&rp:OrderNum=SO50494&rp:OrderNum=SO50495&rp:OrderNum=SO50496&rp:OrderNum=SO50497&rp:OrderNum=SO50498&rp:OrderNum=SO50499&rp:OrderNum=SO50500 $12,157.80
    May 17, 2007 SO50501&rp:OrderNum=SO50502&rp:OrderNum=SO50503&rp:OrderNum=SO50504&rp:OrderNum=SO50505&rp:OrderNum=SO50506&rp:OrderNum=SO50507&rp:OrderNum=SO50508 $13,231.62
    May 18, 2007 SO50509&rp:OrderNum=SO50510 $4,624.91
    With this, I can then create a Report Action in SSRS with a Parameter Value of
    UrlEscapeFragment(
    GENERATE(
    EXISTS([Internet Sales Order Details].[Sales Order Number].[Sales Order Number].Members, ,
    "Internet Sales"),
    [Internet Sales Order Details].[Sales Order Number].CurrentMember.Name,
    "&rp:OrderNum=")
    The way I was going about it before was flawed, as I was trying to get a list of the granular values from each dimension used to build the measure value and pass each one of those as separate parameters. I just needed to set something unique for each fact
    measure transaction that represents the value and uses that in a query parameter for the SSRS report.

  • Cursors are not closed when using Ref Cursor Query in a report  ORA-01000

    Dear Experts
    Oracel database 11g,
    developer suite 10.1.2.0.2,
    application server 10.1.2.0.2,
    Windows xp platform
    For a long time, I'm hitting ORA-01000
    I have a 2 group report (master and detail) using Ref Cusor query, when this report is run, I found that it opens several cursors (should be only one cursor) for the detail query although it should not, I found that the number of these cursors is equal to the number of master records.
    Moreover, after the report is finished, these cursors are not closed, and they are increasing cumulatively each time I run the report, and finally the maximum number of open cursors is exceeded, and thus I get ORA-01000.
    I increased the open cursors parameter for the database to an unbeleivable value 30000, but of course it will be exceeded during the session because the cursors are increasing cumulatively.
    I Found that this problem is solved when using only one master Ref Cursor Query and create a breake group, the problem is solved also if we use SQL Query instead of Ref Query for the master and detail queries, but for some considerations, I should not use neither breake group nor SQL Query, I have to use REF Cursor queries.
    Is this an oracle bug , and how can I overcome ?
    Thanks
    Edited by: Mostafa Abolaynain on May 6, 2012 9:58 AM

    Thank you Inol for your answer, However
    Ref Cursor give me felxibility to control the query, for example see the following query :
    function QR_1RefCurDS return DEF_CURSORS.JOURHEAD_REFCUR is
    temp_JOURHEAD DEF_CURSORS.JOURHEAD_refcur;
              v_from_date DATE;
              v_to_date DATE;
              V_SERIAL_TYPE number;
    begin
    SELECT SERIAL_TYPE INTO V_SERIAL_TYPE
    FROM ACC_VOUCHER_TYPES
    where voucher_type='J'
    and IDENT_NO=:IDENT
    AND COMP_NO=TO_NUMBER(:COMPANY_NO);
         IF :no_date=1 then
                   IF V_SERIAL_TYPE =1 THEN     
                   open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
                   FROM JOURHEAD
                   WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
                   AND IDENT=:IDENT
              AND ((TO_NUMBER(VOCH_NO)=:FROM_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NULL)
              OR (TO_NUMBER(VOCH_NO) BETWEEN :FROM_NO AND :TO_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NOT NULL )
              OR (TO_NUMBER(VOCH_NO)<=:TO_NO and :FROM_NO IS NULL AND :TO_NO IS NOT NULL )
              OR (:FROM_NO IS NULL AND :TO_NO IS NULL ))
                   ORDER BY TO_NUMBER(VOCH_NO);
                   ELSE
                   open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
                   FROM JOURHEAD
                   WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
                   AND IDENT=:IDENT               
              AND ((VOCH_NO=:FROM_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NULL)
              OR (VOCH_NO BETWEEN :FROM_NO AND :TO_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NOT NULL )
              OR (VOCH_NO<=:TO_NO and :FROM_NO IS NULL AND :TO_NO IS NOT NULL )
              OR (:FROM_NO IS NULL AND :TO_NO IS NULL ))     
                   ORDER BY VOCH_NO;          
                   END IF;
         ELSE
                   v_from_date:=to_DATE(:from_date);
                   v_to_date:=to_DATE(:to_date);                         
              IF V_SERIAL_TYPE =1 THEN
                   open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
                   FROM JOURHEAD
                   WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
              AND IDENT=:IDENT                         
                   AND ((voch_date between v_from_date and v_to_date and :from_date is not null and :to_date is not null)
                   OR (voch_date <= v_to_date and :from_date is null and :to_date is not null)
                   OR (voch_date = v_from_date and :from_date is not null and :to_date is null)
                   OR (:from_date is null and :to_date is null ))     
                   ORDER BY VOCH_DATE,TO_NUMBER(VOCH_NO);     
              ELSE
                   open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
                   FROM JOURHEAD
                   WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
                   AND IDENT=:IDENT                         
              AND ((voch_date between v_from_date and v_to_date and :from_date is not null and :to_date is not null)
                   OR (voch_date <= v_to_date and :from_date is null and :to_date is not null)
                   OR (voch_date = v_from_date and :from_date is not null and :to_date is null)
                   OR (:from_date is null and :to_date is null ))     
                   ORDER BY VOCH_DATE,VOCH_NO;          
              END IF;
         END IF;               
         return temp_JOURHEAD;
    end;

  • Using report parameter in data set filter expression with an SSAS data source

    I have an SSRS report with an SSAS data source.
    Report parameters:
    Param1 - text, single select
    Param2 - text, multi-select
    Dataset:
    In Query Designer, I want to include Param1 as a filter expression so I can have "Dimension1 Begins with @Param2". I'm not sure the exact syntax to make param2 work in this.
    The point is to filter my data set on param1. If A is selected for param1, I want the data set to have the filter saying "Dimension1 begins with A"
    Anyone know how to use a report parameter in the dataset filter expression for an ssas data source?

    hi,
    try this maybe the dates you are comparing are not in the same format.
    I test data template in EBS but not with dates.
    to_date(date,'dd/mm/YY') between to_date(:p_from_date ,'dd/mm/YY') and to_date(:p_to_date ,'dd/mm/YY')
    if dont works try to put values insted of your parameter like :
    to_date(date,'dd/mm/YY') between to_date(:p_from_date ,'10/01/07') and to_date(:p_to_date ,'01/12/07') ... put dates where u can have some values in report...
    if dont work then try to print the values of the 2 parameters and the date of the select somwhere in ur report to see what you have in it..
    hope it helps..
    Regards Joe.

  • How to use the input entered in report parameters form & use it in a field in a report parameter.

    Hi, I'am creating a new report, which is a combination of 'form_letter & tabular' style.
    I have also created a Report Parameter with 2 inputs, that is 'to_date' & 'from_date'.
    The value that will be entered in 'to_date' & 'from_date' in the parameter_form, must get displayed in the report.
    So for this, I created a field for 'to_date' & added code for it in pl/sql editor.
    code is as below:
    function F_TO_DATEFormatTrigger return boolean is
      f_to_date date;
    begin
      f_to_date := :PF_P_TO_DATE;  // ASSIGNING VALUE TO FIELD ( f_to_date) FROM INPUT OF REPORT PARAMETER (PF_P_TO_DATE) .
      return (f_to_date);
    end;
    BUT I'M GETTING ERROR " REP-0730 THE FOLLOWING BIND VARIABLE IS NOT DEFINED: PF_P_TO_DATE.
    I tried to decode the error, but I think the problem is different. (The above code works only if "PF_P_TO_DATE" was a part of query statement, that is one of the columns in database, but PF_P_TO_DATE is a parameter). So can anybody please help me with how can I take the value from parameter input & display it on the field of the report?
    Thank You.

    Hi Vijetha,
    Create a formula column and return the date you need and asign the formula column to a field in paper layout.
    here is the example query
    function CF_to_dateFormula return Date is
    begin
       return (:to_date); -------:to_date is that you get as a parameter
    end;
    Hope this will help
    Regards
    su.gi

  • SAP Query dwonload through report

    Hi All,
    I have a SAP Query. I want to download the output of the SAP query on application server using report.
    please let me know how to use SAP Query in report. Please provide some sample code if you have.

    Do you have option of copying the query to Z report and then incorporate the logic of writing on application server in the Z report...

  • Not getting Reports Parameter Form in web-forms environ

    I am not able to get a report parameter form to appear for a
    report called from forms via a 'run_product' command. It works
    fine in client/server mode. In web-forms the report just goes
    ahead and runs without the needed parameters. I have tried
    explicitly passing a parameter list with the 'paramform' set to
    'yes' and this did nothing. I have this on a NT box with latest
    Dev2 patches applied.
    1. Is the reports parameter form supposed to work in web-forms
    mode?
    2. How do you set it up to work, if it is supposed to work?
    Thanks for any replies.
    null

    I guess you have to use web.show_document - I found this article
    on DevConnect:
    Article-ID: <Note:68647.1>
    Circulation: PUBLISHED (EXTERNAL)
    Platform: GENERIC Generic issue
    Subject: How to show Reports HTML PARAMFORM when
    calling Reports
    from Forms
    Modified-Date: 09-AUG-1999 18:02:04
    Document-Type: BULLETIN
    Content-Type: TEXT/PLAIN
    Impact: MEDIUM
    Component: SQLREP
    PURPOSE:
    This bulletin explains how to overcome the current restriction
    of calling an Oracle Report from Oracle Forms and showing a
    PARAMETER FORM. This is currently not possible when using the
    RUN_PRODUCT built-in with
    WEB DEPLOYED APPLICATIONS.
    DESCRIPTION:
    When you call an Oracle Report from Oracle Forms using
    RUN_PRODUCT in Client-server, you can specify an optional
    parameter called PARAMFORM to display the parameter form defined
    in the Oracle Report.
    For web-deployed applications, the PARAMFORM parameter can be
    set to HTML to produce a HTML version of the parameter form.
    When calling Oracle Reports from an Oracle Form using
    RUN_PRODUCT and specifying PARAMFORM=HTML in the parameter list,
    the Oracle Reports parameter form doesn't show the in the client
    browser. If the Oracle Reports Cartridge/CGI is used and
    PARAMFORM=HTML is specified, then the Oracle Reports parameter
    form does appear in the client browser.
    Oracle Forms does not use either the Cartridge or the CGI with
    RUN_PRODUCT, and it's these thin clients that produce the HTML
    Oracle Reports parameter form.
    As a workaround to this problem, you can use either the
    Cartridge or the CGI with the WEB.SHOW_DOCUMENT Oracle Forms
    builtin. This does require either the Oracle Reports Cartrige
    or the CGI to be installed. Neither of these are necessary if
    the parameter form isn't required.
    INSTRUCTIONS:
    The following items need to be installed:
    1. Oracle Reports Multi-tier Server.
    2. Oracle Reports Web Cartridge
    or
    Oracle Reports Web CGI.
    Here is a typical URL that can be specified in a browser
    to run a report using Oracle Reports Cartridge implementation:
    http://your_webserver/r30ows?
    server=repserver21+report=emp_30.rep+
    destype=cache+desformat=html+userid=scott/tiger@mydb+paramform=ht
    ml
    For CGI implementation:
    http://your_webserver/your_vir_cgi_dir/r30cgi32.exe?
    server=repserver21+report=emp_30.rep+destype=cache+desformat=html
    userid=scott/tiger@mydbparamform=html
    The Oracle Reports parameter form now is shown. This can be
    used with WEB.SHOW_DOCUMENT issuing the request to execute the
    report to the Oracle Reports Multi-Tier Server instead of using
    RUN_PRODUCT.
    The following code may be added to a program unit, which then
    issues the request to run the report:
    IF get_application_property(user_interface) = 'WEB' then
    /* Use Cartridge configuration with WEB.SHOW_DOCUMENT. */
    WEB.SHOW_DOCUMENT('http://your_webserver/r30ows?
    server=repserver21+report=emp_30.rep+destype=cache+desformat=html
    userid=scott/tiger@mydbparamform=html', '_self');
    /* OR for CGI configuration. */
    WEB.SHOW_DOCUMENT
    ('http://your_webserver/your_vir_cgi_dir/r30cgi32.exe?
    server=repserver21+report=emp_30.rep+destype=cache+desformat=html
    userid=scott/tiger@mydbparamform=html', '_self');
    ELSE
    /* use RUN_PRODUCT for client-server with PARAMFORM=Yes. */
    Add_Parameter(plid, 'PARAMFORM', TEXT_PARAMETER, 'YES');
    RUN_PRODUCT
    (REPORTS,'emp_30.rep',SYNCHRONOUS,RUNTIME,FILESYSTEM,plid);
    END;
    RELATED DOCUMENTS:
    Developer/2000: Guidelines for Building Applications, Deploying
    Applications on the Web (for detailed instructions on setting up
    the Oracle Reports Cartridge and CGI)
    Laura (guest) wrote:
    : I am having the same problem with Dev 6 on NT. The parameter
    : screen for reports works in client/server but not web using
    run-
    : product. I am getting error REP-0788: Warning the value of
    the
    : restricted LOV parameter is not among the selectable values.
    : Any reports without a parameter screen work fine with run-
    : product.
    : Any help would be appreciated.
    null

  • Report parameter disappears in EBS

    Hi, i have created a report in XML Publisher desktop. and inserted the sql query using the sql reort wizard.
    when i preview it from word it works fine.
    When i run it in EBS R12, the report filters but the report parameter does not show on the report.

    Hi, my parameter is showing in the xml.
    I have added my parameter in the template by adding the field.
    But it still doesnt work.
    How should i include my parameter in my report.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <DATA>
    <P_NATIONALITY>ARG</P_NATIONALITY>
    - <LIST_ROW>
    - <ROW>
    <LAST_NAME>Roberto Jose Moreti</LAST_NAME>
    <FIRST_NAME />
    <FULL_NAME>Roberto Jose Moreti,</FULL_NAME>
    <START_DATE>2003-02-17T00:00:00.000+02:00</START_DATE>
    <EMAIL_ADDRESS />
    <EMPLOYEE_NUMBER>15</EMPLOYEE_NUMBER>
    <NATIONALITY>ARG</NATIONALITY>
    </ROW>
    - <ROW>
    <LAST_NAME>Toledo Valadares</LAST_NAME>
    <FIRST_NAME />
    <FULL_NAME>Toledo Valadares,</FULL_NAME>
    <START_DATE>2003-02-17T00:00:00.000+02:00</START_DATE>
    <EMAIL_ADDRESS />
    <EMPLOYEE_NUMBER>23</EMPLOYEE_NUMBER>
    <NATIONALITY>ARG</NATIONALITY>
    </ROW>
    </LIST_ROW>
    </DATA>

  • Customization forms display message Query options

    Is there any way to eliminate or change the message 'Query Options' in a report customization form?

    Query Options will appear in customization form if you have any bind variable set in the component's design time.
    If u dont want to have any query options,
    you can suppress them by redesigning the component without any bind variables.

Maybe you are looking for