How to bypass the parameter prompting screen?

Hello,
We are passing parameters from java code using the ParameterFieldController.setCurrentValue method.
However, even though all parameters required by a given report are informed, when we try to generate a report, a prompt screen is systematically displayed. (prompting.swf)
This screen prompts for required parameters, event though values are already set and indeed appear on the prompt fields (they are set through the ParameterFieldController).
We would like to skip this screen, considering that parameters are actually already filled, so that users don't get confused by parameters that are internal to the application, and so that they don't see this intermediate screen.
Is there a way to do this? Some configuration somewhere?
I haven't been able to find information about this...
Thanks a lot for any tip!!
PS: we are using the latest CRJ from August 16th
Matt
Edited by: matt44 on Aug 26, 2009 5:51 PM

Thanks Valentine,
Although it didn't directly solve the problem, your answer helped me refine my diagnostic.
In the end, the problem was really that the parameters were actually not available in the viewer (even though they had been set on the report document through ParameterFieldController.setCurrentValue).
This is because we were replacing the database connection for the reports after setting the parameters: parameters are actually removed from the report document when the connection is replaced!
To solve the problem, we have to first replace the database connection for the report, then set the parameters.
Best regards,
Matt

Similar Messages

  • How can I modify the UI for the crystalreportviewer prompt screen ?

    <p>Hi,</p><p> I am using Crystal Report XI with JRC.</p><p>I have come across a couple of issues. My report accepts 2 parameters from the user. One is a date field and the other is the &#39;Period&#39;. I have provided a drop-down having values as Daily, Weekly, Monthly, Quarterly, Yearly.</p><p> The following are the issues that I have come across:</p><p>1. Selecting a value from the drop-down and submitting the form gives the following error.</p><p>     [java] 17:46:20,265 INFO  [STDOUT] 17:46:20,265 ERROR [com.businessobjects.reports.sdk.JRCCommunicationAdapter] JRCAgent11 detected an exception: The value for parameter `Period` must match one of the specified default values.<br />     [java]     at com.crystaldecisions.reports.dataengine.d.case(Unknown Source)<br />     [java]     at com.crystaldecisions.reports.dataengine.d.at(Unknown Source)<br />     [java]     at com.crystaldecisions.reports.dataengine.d.new(Unknown Source)<br />     [java]     at com.crystaldecisions.reports.common.as.a(Unknown Source)<br />     [java]     at com.crystaldecisions.reports.common.ae.a(Unknown Source)<br />     [java]     at com.businessobjects.reports.sdk.b.k.a(Unknown Source)<br />     [java]     at com.businessobjects.reports.sdk.b.s.do(Unknown Source)<br />     [java]     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)<br />     [java]     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)<br />     [java]     at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)<br />     [java]     at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)<br />     [java]     at com.crystaldecisions.proxy.remoteagent.q.else(Unknown Source)<br />     [java]     at com.crystaldecisions.proxy.remoteagent.q.for(Unknown Source)<br />     [java]     at com.crystaldecisions.proxy.remoteagent.q.do(Unknown Source)<br />     [java]     at com.crystaldecisions.proxy.remoteagent.q.if(Unknown Source)<br />     [java]     at com.crystaldecisions.proxy.remoteagent.u.performDo(Unknown Source)<br />     [java]     at com.crystaldecisions.proxy.remoteagent.u.a(Unknown Source)<br />     [java]     at com.crystaldecisions.sdk.occa.report.application.DataDefController.a(Unknown Sour<br />ce)<br />     [java]     at com.crystaldecisions.sdk.occa.report.application.ParameterFieldController.modify(<br />Unknown Source)<br />     [java]     at com.crystaldecisions.sdk.occa.report.application.ParameterFieldController.modify(<br />Unknown Source)<br />     [java]     at com.crystaldecisions.sdk.occa.report.application.ParameterFieldController.setCurr<br />entValues(Unknown Source)<br />     [java]     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)<br />     [java]     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)<br />     [java]     at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPromptParameterF<br />ields(Unknown Source)<br />     [java]     at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getPromptPa<br />rameterFields(Unknown Source)<br />     [java]     at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.getPr<br />omptParameterFields(Unknown Source)<br />     [java]     at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.getPromptParam<br />eterFields(Unknown Source)</p><p> When in the report I set allowcustomvalues to true then it accepts the value selected from the dropdown. But in this case the prompt screen shows a textbox next to the drop-down that gets populated on selecting any option from the dropdown. This textbox is editable and can accept any value. Is there a way I can get rid of this textbox. Also i would like to know why the drop-dwon by itself is incapable of passing the value.</p><p> 2. Secondly, Is there anyway I can change the UI for the crystalreportviewer prompt screen being displayed for accepting the parameters from the user. As per my clients requirement the messages displayed in the prompt screen should be customised.</p><p>3. The third issue is with the date parameter. When a date is selected using the calender control the textbox gets populated in the following format Date(yyyy,mm,dd). My requirement is that this should be a userfriendly format like mm-dd-yyyy. I have succesfully modified the crystalreportviewer javascript so that the calender returns the date in the required format i.e. mm-dd-yyyy. But in this case the date parameter is not accepted though no error is displayed on the console. I have tried rechanging the format into Date(yyyy,mm,dd) before the prompt form is submitted but even this didnot help. What can I do to overcome this problem? </p><p>Any help with respect to the above problems will be highly appreciated.</p><p>Thanks & Regards</p>

    <p>From the looks of it, the default parameter prompt screen isn&#39;t really fitting your requirements.  You have a number of requests for modification.</p><p>In your case I think the best thing to do would be to create your own parameter prompt screen.  You can use the SDK to create a page that works for all reports by inspecting the reports parameters before you set the values.</p><p>This would allow you the flexibility of easily meeting your customers requirements.</p><p>Point 1 - I&#39;m not sure.</p><p>Point 2 - There isn&#39;t much access to change the prompt screen.</p><p>Point 3 - I&#39;m not sure why you would want to change the formatting of the Date when you are already using a calendar object to get it.  It sounds like you might have a small mistake in the way you edited the javascript.</p><p>I really think you are probably better off creating your own prompt screen. <br /></p><p>Rob Horne<br /><a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/blog/10</a></p>

  • How to pass the parameter of a stored procedure to iReport

    Hi... i don't know how to pass the parameter of the stored procedure to the iReport.
    In the Report Query, i tried
    1. sp_storedprocedure ' value'
    2. sp_storedprocedure +''''+$P{parameter}+''''+
    3. sp_storedprocedure +$V+$P{parameter}++$F($F is a variable having a value of ' (a single quote))may you enlighten us please? thank you

    For M$ SQL server I find that it only works when U use the fully qualified name...
    e.g. catalod.dbo.my_procedure_name 'variable'
    My full query in the Report Query window is something like this:
    EXEC arc.dbo.jasper_Invoice 1000
    Note that you may find that selecting from VIEWS / TABLES fails for no apparent reason and iReport will prompt you with the usual very unhelpful (we have what we "pay" for) prompt, stating that "The document is empty".
    To work around this issue, where a statement like "SELECT * FROM arc.dbo.acc_invoices WHERE Invoice_id=1000" does not work, simply create a PROC, something like:
    CREATE PROC jasper_MyProc (@my_rec_id integer) AS
    SELECT * FROM arc.dbo.acc_invoices WHERE Invoice_id= @my_rec_id integer
    ...to wrap your SELECT statement, then call the PROC
    Edited by: Sylinsr on Apr 22, 2008 4:23 PM

  • How to Bypass Windows 7 Login Screen When Forgot Admin Password

    When forgot Windows 7 administrator login password and be stuck at the login screen what can you do? Believe that many people have encountered such a situation where they are locked out of their own computer for forgotten Windows administrator password. So today I would like to talk about several tricks on how to bypass Windows 7 login screen when forgot administrator login password. Trick 1: Reset Windows 7 admin password with password reset diskIf you have ever created a Windows password reset disk for that administrator account before you forgot its password it is easy to use it to reset or remove its password. Just insert the disk into your locked Windows 7 computer and click ¡°Reset Password¡± link on the login screen. Then follow the password reset wizard to perform password reset. This is the easiest way to bypass a Windows login screen when forgot administrator password. Trick 2: Change Windows 7 admin password in Safe ModeIf you have no password reset disk you have to look for other tricks to bypass your Windows 7 administrator password. So if you have enabled the built-in administrator account you can enter Safe Mode by pressing F8 when your computer is booting. And access that built-in administrator account to change other user password. Trick 3: Bypass Windows 7 Login screen with Windows Password RescuerIf the forward 2 tricks don't work, it is necessary for you to use an effective Windows Password Recovery tool like Daossoft Windows Password Rescuer. Steps are as below.Step 1: Download and install Daossoft Windows Password Rescuer into another accessible computer.Step 2: Launch this tool and follow its instruction to burn it to a USB/CD/DVD flash drive.Step 3: Boot your locked Windows 7 computer from the flash drive.Step 4: Follow its instruction to reset/remove your Windows administrator password. Detailed video tutorial :How to Remove or Bypass Windows 7 Administrator Password - Forgot Windows 7 Administrator Password

    The methods above don't work at all. Eventually I used a paid tool - PCUnlocker Live CD, and it successfully bypassed my lost admin password. 

  • How to hide the Parameter field during Run time?

    Hi,
    How to hide the Parameter field during Run time?
    I have a parameter field which behaves differently depending on the User logged in.
    I am using reports 10G
    For ex: I have 3 field created in JSP
    CUSTOMER
    PROVIDER
    FROM DATE
    END DATE
    If the user = 'SUPER show all the parameter
    CUSTOMER
    PROVIDER
    FROM DATE
    END DATE
    If the user is 'GATEKEEPER" Just show
    PROVIDER
    FROM DATE
    END DATE
    Can I do that?
    Please help
    Thanks.
    KK

    hi, i'm not familiar much with JSP. but i think workaround is to create two window one which have 4 fields and the other which have 3. if user is SUPER then call the first screen otherwise if user is GATEKEEPER then call the second screen.

  • You cannot bypass the UAC prompt

    We get a question like this at least once per week:
    How can I bypass the UAC prompt when running a program or a script?
    The answer to this question is that you cannot bypass the UAC prompt, and this is by design.
    Please read the following FAQ for the reasons why:
    FAQ: Why can't I bypass the UAC prompt?
    The only way to run a program that requires administrative access (elevation) is to use
    Run as administrator (either by right-clicking or or the shell
    runas verb in a script). You can also schedule the program to run with highest privileges, but doing so requires administrative permissions already and thus does not constitute bypassing the UAC prompt.
    The runas command starts a program with alternate credentials, but the program is not started as administrator (elevated). In other words, you cannot use the
    runas command to bypass the UAC prompt either.
    Disabling UAC is not recommended for the reasons stated in the FAQ.
    -- Bill Stewart [Bill_Stewart]

    If the command you want to run is something simple you can you psexec to run as a local admin on the machine. It would look something like this: Psexec \\hostnameorip cmd -s
    I believe you can run a ps script in cmd with: 
    powershell -noexit "& ""C:\my_path\yada_yada\run_import_script.ps1""" 
    Might not get the same response but its a start. This worked for me when I ran a simple PS script to check for Windows updates and export to file on a DC.

  • How to get the parameter from Java Script into the Parameter crystal Report

    Hi All,
    Crystal Report is integrated with Oracle 10g. I created the base SQL query for col1, col2, col3 and col4. Java Script pass parameter value (185) to Col1.
    My question is how to create crystal report to make Col1 as parameter and how to get the parameter value 185(Col1) from Java Script. Is there any additional code I need to include in the crystal report?
    FYI.
    Java script sends the right parameter value.There is no issue in java script.
    This is an automatic scheduled process when batch runs, Java script should pass the parameter value and the crystal report should get the value and produce the output report.

    Not sure if this is an application question or if you are trying to hook into Crystal Reports parameter UI? If the later then no option other than report design. If an application then I can move this to the Java Forums.
    If you are asking how to alter the parameters I suggest you remove the Java reference and post a new question so it's not confusing the issue.
    Please clarify?

  • How to run the query in  screen painter

    i am using the patch 36 in business one so pls give information  about 
       how to run the query in  screen painter 
    regard
      sandip adhav

    Hope u have reached Screen painter interface,
    1. Click 'Add Grid' from tool bar.
    2. Go to 'Collections' tab in 'Properties' window.
    3. Choose 'Data Tables' from the Drop down list.
    4. Click 'New' found at the bottom of the Properties Window(same window)
    5. U'll find the place to insert ur query.
    6. U can rename the table name from 'DT_0'
    7. Choose type as 'Query'
    8. Clear content from box 'Query'
    9. Enter ur query there. Dont forget to Click 'SET'
    10. Go to Preview option from tool bar.
    now ur query will be displayed as table format.
    Note: First try with simple query b4 going for linking option.
    Regards,
    Dhana.

  • How to run the parameter form example report :pform_report.jsp

    how to run the parameter form example report : pform_report.jsp ?
    I got these error message:
    Reports Error Page
    Sat Oct 18 11:58:24 CST 2003
    javax.servlet.jsp.JspException: rwlib-1: REP-6106: (, 4 L, XML 1h��/�� ' PI with the name 'xml' can occur only in the beginning of the document.'.
    javax.servlet.jsp.JspException: rwlib-1: REP-6106: (, 4 L, XML 1h��/��
    PI with the name 'xml' can occur only in the beginning of the document.'.
         at oracle.reports.jsp.ObjectsTag.doEndTag(ObjectsTag.java:180)
         at examples.tools._pform__report._jspService(_pform__report.java:79)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:66)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:539)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:285)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:771)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:152)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:796)
         at java.lang.Thread.run(Thread.java:484)

    repost !
    please help!

  • How to retrieve the parameter names from a JSP page ? Urgent Please

    Hello,
    Can anybody tell me how to retrieve the parameter names from the JSP
    page. (without using getParameterNames() method.)
    The problem with the getParameterNames() method is I get the Jumbled output.
    I need it very badly
    With regards
    Ananth R
    email:[email protected]
    [email protected]

    Dear duffymo,
    My primary intention is to convert the JSP form information into a XML file.
    If I do not get the Parameter names in the correct order how can I maintain
    tag order in XML file.
    For ex: (JSP PAGE VIEW)
    Name--
    FirstName
    MiddleName
    LastName
    Address--
    Street1
    Street2
    City
    Country
    &so on
    (XML File to be generated)
    <Name>
    <FirstName>Value</FirstName>
    </Name>
    <Address>
    <street1>value</street1>
    </Address>
    & so on
    If I use getParameterNames() to get all the parameter names(Which form the tag names in the XML file ) the Enumeration object it returns will not be in the same order as the text fields in JSP.From this I can not construct a meaningful XML file.
    order means: Order of entry on the page, from top to bottom
    That's it
    Waiting for your responses

  • How to test the parameter new_active_sess_pool_p1

    Dear all,
    How to test the parameter new_active_sess_pool_p1? I have set the new_active_sess_pool_p1=1,and I login db using the user HXL,execute DML and make sure the session is active,now i login the db again and found the new_active_sess_pool_p1 not work,Why?
    Begin
      Dbms_Resource_Manager.Create_Pending_Area();
      Dbms_Resource_Manager.update_Plan_Directive(Plan => 'MAXCAP_PLAN',
                                                  Group_Or_Subplan => 'MAXCAP_PLAN_G1',
                                                  new_active_sess_pool_p1 => 1);
      Dbms_Resource_Manager.Validate_Pending_Area();
      Dbms_Resource_Manager.Submit_Pending_Area();
    End;
    Begin
      Dbms_Resource_Manager.Create_Pending_Area();
      Dbms_Resource_Manager.Set_Consumer_Group_Mapping(Attribute      => Dbms_Resource_Manager.Oracle_User,
                                                       Value          => 'HXL',
                                                       Consumer_Group => 'MAXCAP_PLAN_G1');
      Dbms_Resource_Manager.Validate_Pending_Area();
      Dbms_Resource_Manager.Submit_Pending_Area();
    End;

    Hi,
    The issue have solved,just as run the flowing:
    BEGIN
    DBMS_RESOURCE_MANAGER_PRIVS.GRANT_SWITCH_CONSUMER_GROUP (
    GRANTEE_NAME => 'HXL',
    CONSUMER_GROUP => 'MAXCAP_PLAN_G1',
    GRANT_OPTION => TRUE);
    END;

  • How to execute the parametered stored procedure in sql *plus ?

    how to execute the parametered stored procedure in sql *plus ?
    my storedprocedure format
    CREATE OR REPLACE PROCEDURE SMS_SELECTMPLOYEE
    (empDOB out date, empEmpName out varchar2)
    thanks & regards
    mk_mur

    Oh, sorry... making many reading-too-fast mistakes today...
    You can't declare date variables in SQL*Plus (seel help var), but you can cast to varchar2:
    TEST> CREATE OR REPLACE PROCEDURE SMS_SELECTMPLOYEE (empDOB out date, empEmpName out varchar2) IS
      2  d date := sysdate;
      3  e varchar2(10) := 'bob';
      4  begin
      5  empdob := d;
      6  empempname := e;
      7  end;
      8  /
    Procedure created.
    TEST> var d varchar2(30)
    TEST> var n varchar2(30)
    TEST> call  SMS_SELECTMPLOYEE(:d,:n);
    Call completed.
    TEST> print d n
    D
    11/07/06
    N
    bobYoann.

  • How to print the Module pool screen using a push button in the screen

    Hi Every one,
                         i have developed a module program , which have a selection screen and it display the output in a structured way.
    output includes boxes, texts etc...
    my problem is :---
    How to print the Module pool screen using a push button in the screen.

    When the "Print" button is pressed:
    leave to list-processing and return to screen 100.  "(current screen)
    Call a transaction that runs your print program.
    Rob

  • How to Hide the Parameter field at run time....

    Hi,
    I have a parameter field which behaves differently depending on the User logged in.
    It has the LOV coming from following SQL.
    SELECT customer_name FROM Cust_mast;
    If the user = 'INTERNAL' then the Where clause will be
    WHERE cust_id in('DELL', 'SBC', 'BANK')
    Else there will be no WHERE clause or the parameter field
    should be hidden in the parameter form.
    So my questions are:
    1) How to hide the Parameter field during Run time?
    OR OR OR
    2) How to change the LOV select statement during Run time?
    Thanks.
    Ram.

    Hi Ram,
    Is there any way to play with the sql query SELECT using DECODE ?I'm not sure of this part, maybe someone else can suggest a way.
    However, what you want can be done in 2 other ways:
    1. Build 2 reports. Both reports will just be duplicates of each other, only difference being that the 'LoV where clause' will be different. Now you can fire the appropriate report in many ways. For example, if the customer is alreay logged inside your custom application, and therefore you already know whether the user is internal of external, you can design your button or link which launches the report to contain logic such that one of the 2 reports is fired depending on who the user is.
    1. Use a JSP parameter form, not a paper parameter form In this case, just build an HTML parameter form in the web source of your report. Use Java logic to populate the LoV drop-down list. When you have to launch the final report, just launch the paper-layout of the report. For example (you will have to modify this):
    <form action="http://machine:port/reports/rwservlet?report=ParamForm.jsp+..." name="First" method="post">
    <select name="selected_customer" onChange="First.submit()" >
    <option value="">Choose a Customer Name
    <rw:foreach id="G_cust_id" src="G_cust_id">
         <rw:getValue id="myCustId" src="CUSTOMER_ID"/>
    <rw:getValue id="myCustName" src="CUSTOMER_NAME"/>
    <option value="<%=myCustId%>"><%=myCustName%>
    </rw:foreach>
    </select>
    </form>
    In the code above, you will have to make sure that your report's data model defines 2 CUSTOMER_ID's (like CUSTOMER_ID_INT and CUSTOMER_ID_EXT). These 2 will be internal and external Cust ID's. Use Java logic to show one of them.
    Navneet.

  • Bypassing the replace prompt when replacing a file that already exits

    I want to bypass the "replace prompt" when replacing the file I know already exits.  In the program when I ask it to replace 1 file I know it needs to replace several other different files.  I just want one original promt to replace the file and all other to be bypassed and just have the program replace the file without a promp.  The program uses several "write characters to file" vi and several write to spreedsheet file" vi.

    you can edit the write to spreadsheet and write characters nodes, they are plain VIs.
    Now simply wire a False diagram constant to the advisory dialog input of the open/create/replace node in each of the two mentioned VIs. Giive them a different icon (e.g. change the background color) and save them under a new name elsewhere. Save them in user.lib and they'll even show up in the user palette.
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • Custom field to add number of packages shipped along with Delivery

    Hi Sap Experts, We have scenario, we have created sales order with quantity 1(Like soft copy or hard copy of CD). Now we want to create delivery with sales order and quantity is 1(Copy from sales order). Our requirement is some time we have to send a

  • How to install DBD::mysql on Lion?

    After upgrading to Lion, I found that my Perl DBI scripts were no longer able to connect to a MySQL database. They would return an error message like this: install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /Library/Perl/

  • DDR RAM 2GB in DC7100

    Hi! May I install to DC7100 SFF (PE218ET) BIOS 786C1 v.01.05  DDR RAM 2*2G Micron PC3200R-30331-z? Maybe I need to upgrade BIOS?

  • Nokia N97 - adding apps to the front screen

    I want to add downloaded applications to the front screen. I tap on one of the empty spaces and the home screen and select "download content" this takes me onto the Ovi store website. I've downloaded a couple of applications and they appear in the Ap

  • Same variant for different value in enumerations

    Hello. Is it a bug? I have this type in my schema: <xs:simpleType name="VolumeUnit"> <xs:restriction base="xs:string"> <xs:enumeration value="ml"></xs:enumeration> <xs:enumeration value="µl"></xs:enumeration> </xs:restriction> </xs:simpleType> In th