Parameter reports

HI
In report builder am creating paramters.for that i have taken EMP table from Scott user
in deptnum am displaying distinct deptno.if i select dept 10 ,empnum drop down should display empno's of deptno 10..if i select dept 20, empnum drop down should display empno's of deptno 20.for this wat i have to do.
Any PL/SQl code need for this .if required means how to write.
Please help me regarding this.
Regards,
Murali

Hi,
there's a description at Metalink in Note 185951.1.
Regards
Rainer

Similar Messages

  • Open a parameter report by clicked event

    Hi friends
    I created a parameter report in oracle portal 10g.
    Do we have some way to pass a parameter and open this report in code ? or by clicked event?
    It seems that we have not ability to use a link to do by a clicked event in oracle portal application.
    Any help?
    Thanks,
    newweber
    *******************report SQL
    report SQL as
    select * from SCOTT.EMP
    where DEPTNO = :department

    <body>
         <form METHOD="GET" NAME="theForm" onSubmit="return false">
         <table CELLSPACING=5 WIDTH=90%>
         <tr>
         <td>
         <table WIDTH="100%" BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR="#FFFFFF" >
         <tr>
         <td> </td>
         <td ALIGN=center> <b><font color="#000099"><font size=+3>Oracle Portal </font></font></b></td>
         </tr>
         </table>
         <font color="#000099">Customization Form for Portal Report</font>
         <br>
         </td></tr>
         <tr><td>
         <table BORDER=0 WIDTH="100%" >
         <tr><td colspan=3>
         <font color="#000099"><b><i>Title:</i></b>
         </td></tr>
         <tr>
         <td> </td>
         <td>Display Name:</td>
         <td><input NAME="title" SIZE="30" ></td>
         </tr>
         <tr>
         <td> </td>
         <td> </td>
         <td> </td>
         </tr>
         <tr>
         <td colspan=3>
         <font color="#000099"><b><i>Query Options:</i></b>
         </td>
         </tr>
         <tr>
         <td> </td>
         <td>Employee Name:</td>
         <td>
         <input NAME="employee" SIZE="30" maxlength="30"></td>
         </tr>
         <tr>
         <td> </td>
         <td>Employee ID:</td>
         <td>
         <input TYPE="text" NAME="id" SIZE="10" maxlength="10"></td>
         </tr>
         <tr>
         <td> </td>
         <td>Department Name:</td>
         <td><select NAME="department" SIZE="1" >
         <option SELECTED VALUE="">All</option>
         <option VALUE="ACCOUNTING">Accounting</option>
         <option VALUE="RESEARCH">Research</option>
         <option VALUE="SALES">Sales</option>
         </select></td>
         </tr>
         <tr>
         <td> </td>
         <td> </td>
         <td> </td>
         </tr>
         <tr>
         <td colspan=3>
         <font color="#000099"><b><i>Row Order Options:</i></b>
         </td>
         </tr>
         <tr>
         <td> </td>
         <td>1.</td>
         <td><select NAME="ordByCol1" SIZE="1" >
         <option Value="">%
         <option Value="ENAME">Ename
         <option Value="EMPNO">Empno
         <option Value="HIREDATE">Hiredate
         <option SELECTED Value="DNAME">Dname
         </select>
         </td>
         <td><select NAME="ordByOrd1" SIZE="1" >
         <option SELECTED VALUE="ASC">Ascending
         <option VALUE="DESC">Descending
         </select>
         </td>
         </tr>
         <tr>
         <td> </td>
         <td>2.</td>
         <td><select NAME="ordByCol2" SIZE="1" >
         <option Value="">%
         <option Value="ENAME">Ename
         <option SELECTED Value="EMPNO">Empno
         <option Value="HIREDATE">Hiredate
         <option Value="DNAME">Dname
         </select>
         </td>
         <td><select NAME="ordByOrd2" SIZE="1" >
         <option SELECTED VALUE="ASC">Ascending
         <option VALUE="DESC">Descending
         </select>
         </td>
         </tr>
         <tr>
         <td> </td>
         <td>3.</td>
         <td><select NAME="ordByCol3" SIZE="1" >
         <option Value="">%
         <option SELECTED Value="ENAME">Ename
         <option Value="EMPNO">Empno
         <option Value="HIREDATE">Hiredate
         <option Value="DNAME">Dname
         </select>
         </td>
         <td><select NAME="ordByOrd3" SIZE="1" >
         <option SELECTED VALUE="ASC">Ascending
         <option VALUE="DESC">Descending
         </select>
         </td>
         </tr>
         <tr>
         <td> </td>
         <td>4.</td>
         <td><select NAME="ordByCol4" SIZE="1" >
         <option Value="">%
         <option Value="ENAME">Ename
         <option Value="EMPNO">Empno
         <option SELECTED Value="HIREDATE">Hiredate
         <option Value="DNAME">Dname
         </select>
         </td>
         <td><select NAME="ordByOrd4" SIZE="1" >
         <option SELECTED VALUE="ASC">Ascending
         <option VALUE="DESC">Descending
         </select>
         </td>
         </tr>
         <tr>
         <td> </td>
         <td> </td>
         <td> </td>
         </tr>
         <tr>
         <td colspan=3>
         <font color="#000099"><b><i>General Options:</i></b>
         </td>
         </tr>
         <tr>
         <td> </td>
         <td>Output Format:</td>
         <td><select NAME="format_out" SIZE="1" >
         <option SELECTED VALUE="HTML">HTML</option>
         <option VALUE="Excel">Excel</option>
         <option VALUE="ASCII">ASCII</option>
         </select></td>
         </tr>
         <tr>
         <td> </td>
         <td>Layout Style:</td>
         <td><select NAME="layout_style" SIZE="1" >
         <option SELECTED VALUE="TABULAR">TABULAR</option>
         <option VALUE="FORM">FORM</option>
         </select></td>
         </tr>
         <tr>
         <td> </td>
         <td>Maximum Rows/Page:</td>
         <td><select NAME="max_rows" SIZE="1" >
         <option SELECTED VALUE="25">25</option>
         <option VALUE="50">50</option>
         <option VALUE="100">100</option>
         <option VALUE="250">250</option>
         </select></td>
         </tr>
         <tr>
         <td> </td>
         <td>Font Size:</td>
         <td><select NAME="font_size" SIZE="1" >
         <option VALUE="8">8</option><option>9</option>
         <option VALUE="10">10</option>
         <option SELECTED VALUE="11">11</option>
         <option VALUE="12">12</option>
         <option VALUE="14">14</option>
         <option VALUE="16">16</option>
         <option VALUE="18">18</option>
         <option VALUE="20">20</option>
         </select></td>
         </tr>
         <tr>
         <td> </td>
         <td> </td>
         <td> </td>
         </tr>
         <tr>
         <td> </td>
         <td> </td>
         <td>
         <input TYPE="SUBMIT" VALUE="Run form" onClick="runForm();">
         <input TYPE="RESET" VALUE="Reset">
         </td>
         </tr>
         </table></center>
         </form>
         </td>
         </tr>
         </table>
         </body>
         </html>
    I hope this helps
    PS.: Metalink Note:230222.1

  • Parameter REPORT for the Report Web item in the Web template is empty or mi

    Hello,
    I tried to create a Web-Template (WAD). By executing the report, I get the selection screnn, but by confirming the selection I get the following message:
    Web Item Report Error
    Web template error in specifications for the Web item report
    Parameter REPORT for the Report Web item in the Web template is empty or missing
    Use the BEx Web Application Designer to add parameter REPORT to the report Web item in the Web template, and assign a report name to the parameter
    Contact your system administrator. This error was recorded
    What can I do to solve this error?
    Thanks!
    XmchX

    As DP_1 Type Query_view_Data_provider, I have assinged a Query Designer Query wich works fine, if I execute it as QDR.
    The entry Query_view_Data_provider makes sense for me, but what do I need to maintain for the type "Filter"?
    Thanks!
    XmchX

  • Report painter -output parameters,Data source,Extract parameter, report

    Hi expert,
    1)What report painter -output parameters,Data source,Extract parameter, report mean for and what are the difference?
    2)I have create new report painter and transport to  Test server using T-code:GCTR and I find that the T-code always point to old report. As I had check the SE93 the D_SREPOVARI-REPORT is point to report group.Why this happen?
    3) Does creation of new report or modification of the report always need to select the extraction option so that it will able to display the relected changes? Because, I have done modification on the report but it is not reflected the changes even i save until i have to create the extraction is able to display the report but every time i run the report need to select the extraction with option to choose new extract or old. Kindly advice how to save and create the report painter and save will display reflected result .
    Please help

    Hi BR Christian,
    Thank you for the prompt reply.
    I have few querys as below:
    1)Do we every time create new report by copying the existing report painter need to select output parameter, data source and extract parameter in order to be able to display the new report?
    2)when modify existing report painter and save it do we need to select output parameter, data source and extract parameter in order to be able to display the modify report correctly?
    3) What are the different between right click copy the report inreport painter compare with create report painter with copy GRR1?
    4) What are the T-code for modify the report group?
    5) When I create a new report with the right click copy in GRR1 and modify the report painter column only and everything remain the same just the report name different why when execute the report it always appear in the selection screen with report button which have option button to select the 2 version  of report which one is the destination report that I copy from and one is the new report? How to set the report when execute will only display the new report only without need to select the option with just new report only?
    6)For transferring reports you can use GR37 (export) and GR38 (import) can be use to transport from one client to another client? What is difference between GR37 compare with  GCTR?
    7) If I use GR37 and GR38 it is mean no need to create the transport request which as usual we create transport se10?
    we can directly import to another client ussing GR38?
    8)When we create a new report with copy with the existing report with just modify the report colunm and the report name difference only what are the setting example: report,report group need to be selected to be include to export/transport to another client?
    9) What are the difference between library and report group?
    10) Can we set Se93 to execute only report not report group? How?
    11) when using GR37 to transport it is also include the report group,library and the particular report?
    12) Can I include the variable in the column header to display fiscal year which I have selected from the selection screen?
    How and which variable should i use?
    please help.
    many thanks
    Edited by: KH on Jun 18, 2011 6:52 AM
    Edited by: KH on Jun 18, 2011 6:55 AM
    Edited by: KH on Jun 18, 2011 7:06 AM

  • Putting a mark in my parameter report

    Hi everyone,
    I have Oracle Reports Developer Suite 6i and I want to add a mark in my parameter report with 2 options (Active, Inactive) to manage a layout format trigger in a particular field, so when the user chooses the option active it will display the data that correspond to that layout field and when he or she chooses Inactive it will bring a null or empty value.
    Can anyone please help me on this?

    Solution found

  • Running a parameter report from form bulder

    Hello,i was able to finally run a report from forms 9i,however when this report is a parameter report it doesn't work and i get an error.
    Please tell me what to do and don't tell me to read the frm9isrw9i file because i already did and i am completely lost on it.

    "....and i get an error." I've got my crystal ball out at the moment but I just can't seem to see the error message ;O))
    Seriously, it helps us a lot if you can post the full error message.
    Thanks
    Grant

  • Lexical parameter report in oracle reports

    Hello
          I am new in oracle forms and reports.I am using oracle weblogic 10.3.5 with oracle forms and reports 11g at windows 7.
    I have need to create a lexical parameter report In which I have query as:
    select &P_1 ename,sal from emp
    this works well but here I have to give the default value with lexical parameter which is ename but i do not want it.
    Here If I give the value to P_1 --> empno
    then It returns all data but there is column heading  is ename for data empno from emp table.
    Is there any way so that to eliminate the default value for lexical parameter.Actually I want the sql data source query like
    select &P_1 ,sal from emp
    But flashes error ORA 00936 of missing expression.
    Please suggest me
    Thank You
    regards aaditya

    Hi,
    Check the datatype of the USERNAME and width value assigned for it. Because the cause for this error is:
    An arithmetic, numeric, string, conversion, or constraint error occurred. For example, this error occurs if an attempt is made to assign the value NULL to a variable declared NOT NULL, or if an attempt is made to assign an integer larger than 99 to a variable declared NUMBER(2).
    Change the data, how it is manipulated, or how it is declared so that values do not violate constraints.
    Thanks,
    Vidya Viswanathan.

  • Multi-value parameter report - error : Incorrect syntax near ',' with multi-valued parameter in SSRS

    Hey,
    I created a report in Reporting Services  where I added multi-value parameter
    ( Filter).  When I run my report, and try to select more than one parameter, I get an error:  Incorrect syntax near ','
    then i put in parameter expression :  join(Parameters!Filter.Value,",")  
    and add : dbo.ufnSplit  before calling parameter in query :
    >>>  set @valwhere = 'table.field IN (select * from dbo.ufnSplit(' + @Filter + ' , '',''))'
    but i still have errors : incorrect syntax near 'text'  which is the second value of the picklist of the parameter,
    Please Any idea ?
    Thanks !!

    I have sometimes had to collate as default with the SQL query
    currently I've just using
    CompanyName in
    (selectitemfromdbo.fnSplit(@function,','))
    In the SSRS report text box I have Join(Parameters!Company.Value,",")

  • Single parameter report running from java application

    hi,
    I had developed one servlet to run the crystal report template which will take one parameter.
    The service method from my servlet I am placing here.
    protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              ReportClientDocument clientDocument = new ReportClientDocument();
              CrystalReportViewer viewer = new CrystalReportViewer();
              Fields fi= null;
              viewer.setName("one");
              try
                   clientDocument.open("C:/Documents and Settings/Administrator/Desktop/lib-so/oneParamReport.rpt", 0);
              catch (ReportSDKException e)
                   e.printStackTrace();
              Fields oFields = new Fields();  
                        ParameterField portfolio = new ParameterField();
                        portfolio.setName("Portfolio");
                       Values oValues = new Values();
                       ParameterFieldDiscreteValue oParameterFieldDiscreteValue = new ParameterFieldDiscreteValue();
                       oParameterFieldDiscreteValue.setValue(new Integer(16));
                       oValues.add(oParameterFieldDiscreteValue);
                       portfolio.setCurrentValues(oValues);
                       portfolio.setReportName(fileName);
                       oFields.add(portfolio);
              try {
                   viewer.setParameterFields(oFields );
                   viewer.processHttpRequest(request, response,request.getSession().getServletContext(), response.getWriter());
                   viewer.dispose();
              } catch (ReportSDKExceptionBase e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    while running this servlet I am getting one exception
    "JRCAgent1 detected an exception: Error finding JNDI name (sql server)"
    I am using jdk 6, sql server 2005, jboss 5, and crystal reports x1.
    what could be the wrong in my code please tell me the reason and solution  for this .
    thanks ,
    mallikarjun
    Edited by: mallikarjuna.ch on May 15, 2009 3:14 PM
    Edited by: mallikarjuna.ch on May 15, 2009 3:15 PM
    Edited by: mallikarjuna.ch on May 15, 2009 3:15 PM

    thanks a lot neeraj for your response.I got resolved the database connection problem through programetically as shown bellow.
    ITable table =  databaseController.getDatabase().getTables().getTable(0);
    ITable oldtable = table;                     
    table.setQualifiedName("sp2m.dbo." + table.getName());
    IConnectionInfo connectionInfo = table.getConnectionInfo();
    PropertyBag propertyBag = new PropertyBag();
    propertyBag.put("Trusted_Connection", "false");
    propertyBag.put("Server Name", "testsvr2"); //Optional property.
    String CONNECTION_STRING="Use JDBC=b(true);Connection URL=s(jdbc:microsoft:sqlserver://testsvr2:1433); /Database Class Name=s(com.microsoft.jdbc.sqlserver.SQLServerDriver);Server=s(testsvr2); /User ID=s(sa);Password=cispl;Database=s(sp2m);Trusted_Connection=b(false); /JDBC Connection String=s(!com.microsoft.jdbc.sqlserver.SQLServerDriver!jdbc:microsoft:sqlserver://testsvr2:1433; /     DatabaseName=;user=;password=!)";
                        propertyBag.put("Connection String", CONNECTION_STRING);
                        propertyBag.put("Database Name", "sp2m");
                        propertyBag.put("Server Type", "JDBC (JNDI)");
                        String URI="!com.microsoft.jdbc.sqlserver.SQLServerDriver!jdbc:microsoft:sqlserver://testsvr2:1433;DatabaseName=;user=;password=!";
                        propertyBag.put("URI", URI);
                        propertyBag.put("Use JDBC", "true");
                        propertyBag.put("Database DLL", "crdb_jdbc.dll");
                        System.out.println("is this setlocation");            
                        connectionInfo.setAttributes(propertyBag);
                        connectionInfo.setUserName("sa");
                        connectionInfo.setPassword("cispl");
                        connectionInfo.setKind(ConnectionInfoKind.SQL);
                        table.setConnectionInfo(connectionInfo);
                        try {
                             databaseController.setTableLocationEx(oldtable,table);
                        } catch (ReportSDKException e) {
                             e.printStackTrace();
    i am connecting mydatabase like above through programetically. it is coming fine , also it was working fine with crystal report tool, now I am getting new problem i.e crystal report engine not accepting parameter values set by me through program and asking to enter the parameters by generating one jsp page like as an interface in crystal report tool. Onece I submit that values it is generating the output properly .I have to avoid this unwanted page and I have to pass my parameter values from my jsp.
    please help me in this,
    thank u.
    Edited by: mallikarjuna.ch1 on May 17, 2009 8:14 AM
    Edited by: mallikarjuna.ch1 on May 17, 2009 8:27 AM
    Edited by: mallikarjuna.ch1 on May 17, 2009 8:43 AM

  • Dynamic Number of Parameter Report

    <p>Hi</p><p>We have to develop a module where the scenario is as follows:</p><p>The User will create his own report using <strong>Crystal Report Designer</strong> or <strong>Visual Studio 2003 Designer </strong>.</p><p>there will be a module where the RPT will be uploaded to a web server.</p><p>Ther will be a web page where the Parameters will be sent based the RPT file selected. (There will be Dynamic no of Parametes sent to the RPT files)</p><p>Please suggest us is there any way to link these Parameters and RPT files created seperately by the user (out side our development environment.</p><p>Please respond to this issue ASAP.</p><p>Regards,</p><p>Jagadish S </p><p>&#160;</p><p>&#160;</p><p>&#160;</p>

    <p>It&#39;s not clear what you are trying to do. Do you simply want to pass the parameter values entered by your users to that particular report? If so, this is a core workflows supported by the CR .NET runtime. </p><p>There are a lot of resources on the BOBJ support site and the DevLibrary that shows how to pass parameters to a report. I recommend search for kbases/sample apps on the support site or look at the <a href="http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/crsdk_net_doc/doc/crsdk_net_doc/html/crtsktutorialssamplecode.htm" target="_blank">tutorials</a> found on the DevLibrary. </p><p>-MJ</p>

  • RAR: Configuration parameter "Report directory on the SAP ERP Server"

    Hi,
    Under a scenario with a standalone SAP GRC AC 5.3 installation and connected with several R/3 system through JCO destinations.
    Which SAP ERP Server Directory do we have to specify?
    Many thanks in advance. Best regards,
      Imanol

    Sunny,
    I did not mean the Spool File Directory.
    I mean the parameter "SAP Server Application Location". The parameter above FTP Location.
    Under the configuration guide it is said for this parameter that:
    "The report directory on the SAP Enterprise Resource Planning (ERP) application servers. This is the temporary storage location for security reports generated by background jobs. Virtual directories delivered in the ERP system, such as DIR_HOME and DIR_TMP, are supported. These directories are viewed with SAP ERP transaction, AL11. The same directory name is used for all SAP back-end systems."
    Thanks in advance. Best regards,
      Imanol

  • New parameter report symbol configuration

    What is the end to end process of creating new report symbol .Do I have to create separate function module and assign in the configuration .

    Hello M D,
    1. You would need to configure a symbol group and assign function modules to it, if no suitable existing symbol group available.
    There are two function modules assigned to each symbol group:
    The first function module is used for symbol expansion. Use function module  'C12O_PARAMETER_VALUES_SELECT' for symbol expansion.
    The second function module is used for default parameter determination of symbol groups. You can copy the existing function module for determining default parameter values for any standard symbol groups and change the copied function module according to your requirement to fill the values for parameter symbol.
    2. Then, you configure a new parameter symbol and assign it to the symbol group.
    3. Add the parameter symbol in the report template.
    4. Development to be done in the function module  for determining default parameter values, assigned to the symbol group, to populate the value for the parameter symbol based on your requirement.
    Thanks and Regards,
    Kannan Veerapandian.

  • Runtime parameter, report not running

    hii
    i am using form 6i and on a button press, i am caling the following procedure that runs a report ...
    procdure....
    begin
       INCEXP_PARAMETER(M_PARAM_ID);
       RUN_PRODUCT(REPORTS,M_REP_ID,SYNCHRONOUS,RUNTIME,FILESYSTEM,M_PARAM_ID,NULL);
    end;
    PROCEDURE INCEXP_PARAMETER  (Param_id  IN OUT Paramlist) IS
        M_DESFORMAT VARCHAR2(20);
        M_DESNAME VARCHAR2(500);
        M_DESTYPE VARCHAR2(20);
    BEGIN         
    IF  :R_OPTION = 'S' THEN  -- on SCREEN
        M_DESFORMAT := 'dflt';
        M_DESNAME := '';
        M_DESTYPE := 'SCREEN';
    ELSIF  :R_OPTION = 'P' THEN
        M_DESFORMAT := 'dflt';
        M_DESNAME := '';
        M_DESTYPE := 'PRINTER';
    ELSIF  :R_OPTION = 'W' THEN
        M_DESFORMAT := 'RTF';
        M_DESNAME := :R_FILENAME;
        M_DESTYPE := 'FILE';
    ELSIF  :R_OPTION = 'D' THEN
        M_DESFORMAT := 'PDF';
        M_DESNAME := :R_FILENAME;
        M_DESTYPE := 'FILE';
    ELSIF  :R_OPTION = 'X' THEN
        M_DESFORMAT := 'delimiteddata';
        M_DESNAME := :R_FILENAME;
        M_DESTYPE := 'FILE';
    END IF;
    ADD_PARAMETER(PARAM_ID,'PARAMFORM',TEXT_PARAMETER,'NO');                 
    ADD_PARAMETER(PARAM_ID,'M_YYYYMM',TEXT_PARAMETER,:M_PERIOD);
    ADD_PARAMETER(PARAM_ID, 'DESTYPE',   TEXT_PARAMETER, M_DESTYPE);
    ADD_PARAMETER(PARAM_ID, 'DESFORMAT', TEXT_PARAMETER, M_DESFORMAT);
    ADD_PARAMETER(PARAM_ID, 'DESNAME',          TEXT_PARAMETER, :R_FILENAME);
    Add_Parameter(PARAM_ID,'ORIENTATION',TEXT_PARAMETER,:R_ORIENTATION);
    Add_Parameter(PARAM_ID,'MODE',TEXT_PARAMETER,:R_MODE);
    ADD_PARAMETER(PARAM_ID, 'MAXIMIZE', TEXT_PARAMETER, 'YES');
    END;
    giving the above code, my report is not getting run...
    at report builder it runs fine..

    hii ..
    M_PARAM_ID is getting its value from the procedure *'PROCEDURE INCEXP_PARAMETER (Param_id IN OUT Paramlist) IS'*
    from my report block on my form...i have button press trigger, that calls first;
    INCEXP_REPORT;
    PROCEDURE INCEXP_REPORT IS
    M_PARAM_ID   PARAMLIST ;
    M_REP_ID     VARCHAR2(30) ;
    BEGIN
       SET_APPLICATION_PROPERTY(CURSOR_STYLE, 'BUSY');
       SYNCHRONIZE;
       M_REP_ID := :GLOBAL.M_REP_ID;
       M_PARAM_ID := GET_PARAMETER_LIST('REP_PARAM');
       IF ID_NULL(M_PARAM_ID) THEN
          M_PARAM_ID := CREATE_PARAMETER_LIST('REP_PARAM');
          IF ID_NULL(M_PARAM_ID) THEN
             MESSAGE('Error While creating Parameter List') ;
             RAISE FORM_TRIGGER_FAILURE;
          END IF;
       ELSE
          DESTROY_PARAMETER_LIST(M_PARAM_ID);
          M_PARAM_ID := CREATE_PARAMETER_LIST('REP_PARAM');
          IF ID_NULL(M_PARAM_ID) THEN
             MESSAGE('Error while creating Parameter List') ;
             RAISE FORM_TRIGGER_FAILURE;
          END IF;
       END IF;
       INCEXP_PARAMETER(M_PARAM_ID);
       RUN_PRODUCT(REPORTS,M_REP_ID,SYNCHRONOUS,RUNTIME,FILESYSTEM,M_PARAM_ID,NULL);
       SET_APPLICATION_PROPERTY(CURSOR_STYLE, 'DEFAULT');
       DESTROY_PARAMETER_LIST(M_PARAM_ID) ;
       CLEAR_MESSAGE;
    END;
    PROCEDURE INCEXP_PARAMETER  (Param_id  IN OUT Paramlist) IS
        M_DESFORMAT VARCHAR2(20);
        M_DESNAME VARCHAR2(500);
        M_DESTYPE VARCHAR2(20);
    BEGIN         
    IF  :R_OPTION = 'S' THEN  -- on SCREEN
        M_DESFORMAT := 'dflt';
        M_DESNAME := '';
        M_DESTYPE := 'SCREEN';
    ELSIF  :R_OPTION = 'P' THEN  -- directly to printer
        M_DESFORMAT := 'dflt';
        M_DESNAME := '';
        M_DESTYPE := 'PRINTER';
    ELSIF  :R_OPTION = 'W' THEN  -- Word File
        M_DESFORMAT := 'RTF';
        M_DESNAME := :R_FILENAME;
        M_DESTYPE := 'FILE';
    ELSIF  :R_OPTION = 'D' THEN  -- PDF File
        M_DESFORMAT := 'PDF';
        M_DESNAME := :R_FILENAME;
        M_DESTYPE := 'FILE';
    ELSIF  :R_OPTION = 'X' THEN   -- Excel File
        M_DESFORMAT := 'delimiteddata';
        M_DESNAME := :R_FILENAME;
        M_DESTYPE := 'FILE';
    END IF;
    ADD_PARAMETER(PARAM_ID,'PARAMFORM',TEXT_PARAMETER,'NO');                 
    ADD_PARAMETER(PARAM_ID,'M_YYYYMM',TEXT_PARAMETER,:M_PERIOD);
    ADD_PARAMETER(PARAM_ID, 'DESTYPE',   TEXT_PARAMETER, M_DESTYPE);
    ADD_PARAMETER(PARAM_ID, 'DESFORMAT', TEXT_PARAMETER, M_DESFORMAT);
    ADD_PARAMETER(PARAM_ID, 'DESNAME',          TEXT_PARAMETER, :R_FILENAME);
    Add_Parameter(PARAM_ID,'ORIENTATION',TEXT_PARAMETER,:R_ORIENTATION);
    Add_Parameter(PARAM_ID,'MODE',TEXT_PARAMETER,:R_MODE);
    ADD_PARAMETER(PARAM_ID, 'MAXIMIZE', TEXT_PARAMETER, 'YES');
    END;i think setting Parameter part is ok...all i want to know the selection of report output to
    "Sceen, Printer, Word, PDF & Excel..which i have defined inside IF....Endif...section,
    is correct or not...?
    TY..

  • Parameter report

    can i develop parameter form in developer coz i cant change the view of the form even using the parameter form builder the big box (black line ) i cant change the size of it so the rectangle and text items (desplay items ) can not move to the center of the parameter form
    plz help me out

    Hi,
    I'm not sure of the Q. In Reports Builder, if you choose View > Change View > Paper Parameter Form, you can drag your fields to the center of the parameter form, or anywhere else. Just click on the field box, and drag it with your mouse or with keyboard arrows.
    Pl let me know if you want to achieve something else.
    Navneet.

  • Crystal Report - Set Parameter Value - Case sensitive

    Hi,<br><br>
    We are using Crystal report 2008 CR4E API to implement the crystal report in our application. When we use parameter report with different cases, the code is not setting values for all the parameter fields in the report. Kindly help us in achieving the solution.
    <br><br>
    In Report, SQL Command is used and a parameter is passed to the SQL. The name of the parameter is given uppercase but in the SQL Command it is given in lowercase. The report still pass the parameter to the query and it is running fine in designer.
    But in our application it throws the below exception. If the parameters are defined in same case then it works fine.
    <br><br>
    Code:<br><br>
    reportClientDocument = new ReportClientDocument();<br>
    reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);<br>
    reportClientDocument.open(reportName, OpenReportOptions._openAsReadOnly);<br>
    DatabaseController dbController = reportClientDocument.getDatabaseController();<br>
    Tables tables = dbController.getDatabase().getTables();<br>
    ITable table = tables.getTable(0);<br>
    IProcedure command = (IProcedure)table;<br>
    ParameterFieldController paramController = reportClientDocument.getDataDefController().getParameterFieldController();<br>
    for (int i=0; i< command.getParameters().size(); i++) {<br>
            ParameterField commandParam = (ParameterField) command.getParameters().get(i);     <br>                         
         String paramName = commandParam.getName();<br>
            String paramValue = getParmeterValues(paramName);<br>
            paramController.setCurrentValue("", paramName, Integer.valueOf(paramValue)); <br>
    }<br>
    <br><br>
    Exception:<br>
    <br>Assertion Failed:
    <br>java.lang.Throwable
    <br>     at com.crystaldecisions.reports.common.asserts.CrystalAssert.ASSERT(Unknown Source)
    <br>     at com.crystaldecisions.reports.common.asserts.CrystalAssert.ASSERT(Unknown Source)
    <br>     at com.crystaldecisions.reports.queryengine.Connection.a(SourceFile:2558)
    <br>     at com.crystaldecisions.reports.queryengine.Connection.a(SourceFile:645)
    <br>     at com.crystaldecisions.reports.queryengine.Table.a(SourceFile:2234)
    <br>     at com.crystaldecisions.reports.queryengine.Table.if(SourceFile:2161)
    <br>     at com.crystaldecisions.reports.queryengine.Table.for(SourceFile:709)
    <br>     at com.crystaldecisions.reports.queryengine.b.yk(SourceFile:512)
    <br>     at com.crystaldecisions.reports.queryengine.b.yl(SourceFile:878)
    <br>     at com.crystaldecisions.reports.queryengine.QueryInfo.vE(SourceFile:241)
    <br>     at com.crystaldecisions.reports.datafoundation.DFQuery.for(SourceFile:628)
    <br>     at com.crystaldecisions.reports.datalayer.a.do(SourceFile:1621)
    <br>     at com.crystaldecisions.reports.datalayer.a.a(SourceFile:1404)
    <br>     at com.crystaldecisions.reports.dataengine.m.b(SourceFile:334)
    <br>     at com.crystaldecisions.reports.dataengine.j.b(SourceFile:515)
    <br>     at com.crystaldecisions.reports.dataengine.m.o(SourceFile:408)
    <br>     at com.crystaldecisions.reports.dataengine.m.a(SourceFile:173)
    <br>     at com.crystaldecisions.reports.dataengine.ContextNode.a(SourceFile:114)
    <br>     at com.crystaldecisions.reports.dataengine.ContextNode.a(SourceFile:95)
    <br>     at com.crystaldecisions.reports.dataengine.j.case(SourceFile:1080)
    <br>     at com.crystaldecisions.reports.dataengine.h.<init>(SourceFile:108)
    <br>     at com.crystaldecisions.reports.dataengine.DataContext.a(SourceFile:254)
    <br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:4660)
    <br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:4574)
    <br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.new(SourceFile:2652)
    <br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.byte(SourceFile:2610)
    <br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.try(SourceFile:2282)
    <br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.int(SourceFile:2442)
    <br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.I(SourceFile:1013)
    <br>     at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.fo(SourceFile:526)
    <br>     at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.if(SourceFile:613)
    <br>     at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.a(SourceFile:578)
    <br>     at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.X(SourceFile:387)
    <br>     at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.moveToPageN(SourceFile:339)
    <br>     at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:78)
    <br>     at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:247)
    <br>     at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.if(SourceFile:642)
    <br>     at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.a(SourceFile:586)
    <br>     at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:636)
    <br>     at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:672)
    <br>     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1944)
    <br>     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
    <br>     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
    <br>     at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
    <br>     at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
    <br>     at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
    <br>     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)
    <br>     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)
    <br>     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)
    <br>     at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
    <br>     at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
    <br>     at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
    <br>     at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
    <br>     at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
    <br>     at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)
    <br>     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:1558)
    <br>     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:337)
    <br>     at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(SourceFile:286)
    <br>     at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(SourceFile:209)
    <br>     at com.mysystems.myapp.common.CrystelReport.print(CrystelReport.java:387)
    <br>     at com.ibm._jsp._ShowReport._jspService(_ShowReport.java:316)
    <br>     at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
    <br>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    <br>     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)
    <br>     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1087)
    <br>     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
    <br>     at com.mysystems.myapp.common.MyServletFilter.doFilter(MyServletFilter.java:107)
    <br>     at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
    <br>     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
    <br>     at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
    <br>     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:837)
    <br>     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:680)
    <br>     at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:588)
    <br>     at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:481)
    <br>     at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
    <br>     at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:232)
    <br>     at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
    <br>     at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748)
    <br>     at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1466)
    <br>     at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:122)
    <br>     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
    <br>     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
    <br>     at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
    <br>     at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    <br>     at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    <br>     at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    <br>     at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    <br>     at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
    <br>     at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
    <br>     at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
    <br>     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
    <br>Rowset restart: moveToStart true
    <br>Rowset execute
    <br>Executing query using command text:
    <br>Select DeptName from Dept where DeptNo = {?deptno}
    <br>
    <br>detected an exception: Unexpected database connector error
    <br>...
    <br>Caused by: com.crystaldecisions.reports.common.QueryEngineException: Unexpected database connector error
    <br>     at com.crystaldecisions.reports.queryengine.Connection.bf(SourceFile:2958)
    <br>     at com.crystaldecisions.reports.queryengine.Rowset.z3(SourceFile:944)
    <br>     at com.crystaldecisions.reports.queryengine.Rowset.bL(SourceFile:533)
    <br>     at com.crystaldecisions.reports.queryengine.Rowset.zM(SourceFile:245)
    <br>     at com.crystaldecisions.reports.queryengine.Connection.a(SourceFile:776)
    <br>     at com.crystaldecisions.reports.queryengine.Table.a(SourceFile:2234)
    <br>     at com.crystaldecisions.reports.queryengine.Table.if(SourceFile:2161)
    <br>     at com.crystaldecisions.reports.queryengine.Table.for(SourceFile:709)
    <br>     at com.crystaldecisions.reports.queryengine.b.yk(SourceFile:512)
    <br>     at com.crystaldecisions.reports.queryengine.b.yl(SourceFile:878)
    <br>     at com.crystaldecisions.reports.queryengine.QueryInfo.vE(SourceFile:241)
    <br>     at com.crystaldecisions.reports.datafoundation.DFQuery.for(SourceFile:628)
    <br>     at com.crystaldecisions.reports.datalayer.a.do(SourceFile:1621)
    <br>     at com.crystaldecisions.reports.datalayer.a.a(SourceFile:1404)
    <br>     at com.crystaldecisions.reports.dataengine.m.b(SourceFile:334)
    <br>     at com.crystaldecisions.reports.dataengine.j.b(SourceFile:515)
    <br>     at com.crystaldecisions.reports.dataengine.m.o(SourceFile:408)
    <br>     at com.crystaldecisions.reports.dataengine.m.a(SourceFile:173)
    <br>     at com.crystaldecisions.reports.dataengine.ContextNode.a(SourceFile:114)
    <br>     at com.crystaldecisions.reports.dataengine.ContextNode.a(SourceFile:95)
    <br>     at com.crystaldecisions.reports.dataengine.j.case(SourceFile:1080)
    <br>     at com.crystaldecisions.reports.dataengine.h.<init>(SourceFile:108)
    <br>     at com.crystaldecisions.reports.dataengine.DataContext.a(SourceFile:254)
    <br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:4660)
    <br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:4574)
    <br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.new(SourceFile:2652)
    <br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.byte(SourceFile:2610)
    <br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.try(SourceFile:2282)
    <br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.int(SourceFile:2442)
    <br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.I(SourceFile:1013)
    <br>     at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.fo(SourceFile:526)
    <br>     at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.if(SourceFile:613)
    <br>     at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.a(SourceFile:578)
    <br>     at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.X(SourceFile:387)
    <br>     at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.moveToPageN(SourceFile:339)
    <br>     at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:78)
    <br>     at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:247)
    <br>     at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.if(SourceFile:642)
    <br>     at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.a(SourceFile:586)
    <br>     at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:636)
    <br>     at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:672)
    <br>     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1944)
    <br>     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
    <br>     ... 49 more
    <br>Caused by: com.businessobjects.reports.jdbinterface.common.DBException: Unexpected database connector error
    <br>     at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCQueryDefinition.Execute(Unknown Source)
    <br>     at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCQueryDefinition.Execute(Unknown Source)
    <br>     at com.crystaldecisions.reports.queryengine.Connection.bf(SourceFile:2953)
    <br>     ... 91 more
    <br>Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near '?'.
    <br>     at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source)
    <br>     at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(Unknown Source)
    <br>     at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(Unknown Source)
    <br>     at com.microsoft.sqlserver.jdbc.SQLServerStatement$StmtExecCmd.doExecute(Unknown Source)
    <br>     at com.microsoft.sqlserver.jdbc.TDSCommand.execute(Unknown Source)
    <br>     at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(Unknown Source)
    <br>     at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(Unknown Source)
    <br>     at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(Unknown Source)
    <br>     at com.microsoft.sqlserver.jdbc.SQLServerStatement.execute(Unknown Source)
    <br>     at com.mysystems.myapp.connection.StatementImplementaion.execute(StatementImplementaion.java:269)
    <br>     ... 94 more

    Hi,
    Can some one please help with the solution

Maybe you are looking for