Problem while passing parameters for dashboard prompts in URL

Hi,
We have created a dashboard on OBI which has some dashboard prompts. We have a requirement that we shall open the dashboard from an external application. We are doing this by invoking an URL. We want the dashboard to turn with prompts already being applied.
I was trying to open the dashboard with the following URL
http://<servername:port>/analytics/saw.dll?Go&PortalPath=/shared/Procurement%20and%20Spend/_portal/Supplier%20Performance&Page=Overview
But when I use the above Go URL the dashboard is not coming up. It shows the following error
     No Columns
     The request cannot be performed because it contains no columns.
When I use the following URL(which has the keyword 'Dashboard' not 'Go') the Dashboard is coming up fine
http://<servername:port>/analytics/saw.dll?Dashboard&PortalPath=/shared/Procurement%20and%20Spend/_portal/Supplier%20Performance&Page=Overview
There are dashboard prompt defined in dashboard. When I try to send the filter value via URL(given below) it is not working. I just see the Dashboard coming up.
http://<servername:port>/analytics/saw.dll?Dashboard&NQUser=Administrator&NQPassword=SADMIN&PortalPath=/shared/Procurement%20and%20Spend/_portal/Supplier%20Performance&Page=Overview&P0=1&P1=eq&P2=Supplier."Supplier%20Name"&P3=1+AccessMicron
when we use the keyword Dashboard in the URL , can we pass the parameter for the dashboard proimpt ..? If we can do that .. how to do that ..? Is it the same manner that we do for Go URL. ..?
Please let me know if you need any more information on this.
Thanks in advance for your time,
Raj Kumar
Edited by: Raja Kumar on Jan 22, 2010 3:29 AM

Hi Raj,
Raghu is correct, you need the Action=Navigate to make prompts work, otherwise you get move to the target dashboard without prompts.
I think you figured it out your self, but the ?Go is for Answer Requests and ?Dashboard is for navigating to dashboards.
I would also recommend using col1="COLUMN_NAME" and val1=value syntax instead of the P0,P1, etc, etc. It's a little easier to read and implement.
Try this:
http://<servername:port>/analytics/saw.dll?Dashboard&Action=Navigate&NQUser=Administrator&NQPassword=SADMIN&PortalPath=/shared/Procurement%20and%20Spend/_portal/Supplier%20Performance&Page=Overview&col1=%22Supplier%22.%22Supplier%20Name%22&val1=1+AccessMicron
Good luck!
Best regards,
-Joe

Similar Messages

  • Passing Parameters for Dashboard Prompts to Answers Report

    I have the following requirement.
    I want to pass the value of a 2 dashboard prompts to an answers report. What is the syntax using GO URL method.
    Thoughts anyone?

    Refer to this link on how to achieve this: http://www.iwarelogic.com/2010/09/integrating-oracle-obiee-content-using-go-url-850/
    Regards,
    -Amith.

  • Problems with passing parameters for WEB template in URL in NW2004s

    Servus,
    We have NW2004s, BI 7.0, SP9
    does anybody know where do I make a mistake? There are 9 variables which the user has to fill out.
    Passing the parameters in URL string for a web template like: http://server:50100/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=TEMPLATENAME&var_name_1=ZvarX&var_value_ext_1=2000 ....
    but this doesn't function, I get only the first variable screen and not what's set in my URL.
    Is it a bug? Any suggestions?
    Thank you very much
    Standa

    I solved it.
    Solution:
    URL Link "http://......./TEMPLATE=nameofthepage&TEMPLATE=nameofthepage
    &VARIABLE_VARIANT=nameofthevariant"

  • DB Adapter 902 binding exception while passing parameters for simple string

    Hi,
    I have an PlSQL API with two input paramters of string type... But this is only started after XML validation TRUE on the BPM server.
    The error is
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>902</code>
    </part><part name="detail"><detail>
    Internal Exception: java.sql.SQLException: ORA-00902: invalid datatype
    Error Code: 902</detail>
    </part><part name="summary"><summary>file:/oracle/product/10.1.3/soa/bpel/domains/Website/tmp/.bpel_BPELProcess1_1.0_c64929dfd2dacf95db3c9da081c1797d.tmp/callingAPI.wsdl [ callingAPI_ptt::callingAPI(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'callingAPI' failed due to: Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the XXRBA.XXRBA_WEB_ADAPTER.FETCH_CUSTOMERS API. Cause: java.sql.SQLException: ORA-00902: invalid datatype
    [Caused by: ORA-00902: invalid datatype
    ; nested exception is:
         ORABPEL-11811
    Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the XXRBA.XXRBA_WEB_ADAPTER.FETCH_CUSTOMERS API. Cause: java.sql.SQLException: ORA-00902: invalid datatype
    [Caused by: ORA-00902: invalid datatype
    Check to ensure that the API is defined in the database and that the parameters match the signature of the API. Contact oracle support if error is not fixable.
    </summary>
    </part></bindingFault>
    The input XSD parameters in BPEL input
    <element name="input" type="string"/>
    The input XSD parameters in ADAPTER
    <element name="P_WEB_ACCOUNT" type="string" db:index="1" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
    <element name="P_SOLICITED_ONLY" type="string" db:index="2" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
    The assignment I am doing in the .bple file is
    <assign name="Assign_1">
    <copy>
    <from expression="bpws:getVariableData('inputVariable','payload','/client:BPELProcess1ProcessRequest/client:input')"/>
    <to variable="Invoke_1_callingAPI_InputVariable" part="InputParameters"
    query="/ns2:InputParameters/ns2:P_WEB_ACCOUNT"/>
    </copy>
    <copy>
    <from expression="string('o')"/>
    <to variable="Invoke_1_callingAPI_InputVariable" part="InputParameters"
    query="/ns2:InputParameters/ns2:P_SOLICITED_ONLY"/>
    </copy>
    </assign>
    --Khaleel                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    You have an attribute type in an object service that is supposed to be numeric, but when reading form the database it seems that is retrieving a non-numeric content...
    Cheers,
    Vlad

  • JDBC ojdbc6.jar problem with passing parameters for PreparedStatements.

    The JDBC Driver being used in ojdbc6.jar. I am using this driver because I of its compatibility with Java 6 which is on my machine
    The database I am connecting to is 10.2 (10g) Oracle database.
    The connection works fine its the parsing of the SQL query that is giving the problem Below is the code specific to this
    // never mind the syntax this is a JavaFX module and the query syntax doesn't use the '+' concats.
    sql = "select sfrracl_pidm,\n"
    " sfrracl_term_code, \n"
    " sfrracl_source_cde, \n"
    " sfrracl_reg_access_id \n"
    "from SFRRACL \n"
    "where sfrracl_term_code=? \n"
    "and sfrracl_pidm =\n"
    " (select spriden_pidm from spriden\n"
    " where spriden_id=? \n"
    " and spriden_id like 'G%'\n"
    " and spriden_change_ind is NULL);";
    //stmt = conn.createStatement(sql);
    try{
    ps = conn.prepareStatement(sql);
    ps.setString(1, stud_id);
    ps.setString(2, term_code);
    catch(fr:SQLException)
    fr.printStackTrace();
    try{
    //ps.executeUpdate();
    System.out.print('Student ID: ');
    System.out.println(stud_id);
    System.out.print('Term Code: ');
    System.out.println(term_code);
    System.out.println(sql);
    ps.executeQuery(); // error occurs here
    The output and exception thats thrown is below
    //debug output
    Student ID: GXXXXXXXX
    Term Code: 201020
    //sql statement thats in string
    select sfrracl_pidm,
    sfrracl_term_code,
    sfrracl_source_cde,
    sfrracl_reg_access_id
    from SFRRACL
    where sfrracl_term_code=?
    and sfrracl_pidm =
    (select spriden_pidm from spriden
    where spriden_id=?
    and spriden_id like 'G%'
    and spriden_change_ind is NULL);
    // end debug output
    java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:91)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:791)
    at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:866)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3387)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3431)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
    at sfrracl.Main.buttonOnMouseClicked(Main.fx:215)
    at sfrracl.Main.buttonOnMouseClicked(Main.fx:215)
    at sfrracl.Main.invoke$(Main.fx:117)
    at sfrracl.Main.invoke$(Main.fx:117)
    at com.sun.javafx.functions.Function1.invoke(Function1.java:44)
    at com.sun.javafx.functions.Function1.invoke$(Function1.java:38)
    at javafx.scene.Node.impl_processMouseEvent(Node.fx:2917)
    at javafx.scene.Node.preprocessMouseEvent(Node.fx:2946)
    at javafx.scene.Scene$MouseHandler.process(Scene.fx:1499)
    at javafx.scene.Scene$MouseHandler.process(Scene.fx:1361)
    at javafx.scene.Scene.impl_processMouseEvent(Scene.fx:679)
    at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.fx:956)
    at com.sun.javafx.tk.swing.SwingScene$SwingScenePanel.doMouseEvent(SwingScene.java:446)
    at com.sun.javafx.tk.swing.SwingScene$SwingScenePanel.mouseClicked(SwingScene.java:454)
    at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    BUILD FAILED (total time: 31 seconds)
    The invalid character that this is claiming are the ? marks however that would mean my setString
    is not working I am following what the documentation says why is this?

    http://forums.oracle.com/forums/forum.jspa?forumID=99 is the JDBC forum

  • Memory leak problem while passing Object to stored procedure from C++ code

    Hi,
    I am facing memory leak problem while passing object to oracle stored procedure from C++ code.Here I am writing brief description of the code :
    1) created objects in oracle with the help of "create or replace type as objects"
    2) generated C++ classes corresponding to oracle objects with the help of OTT utility.
    3) Instantiating classes in C++ code and assigning values.
    4) calling oracle stored procedure and setting object in statement with the help of setObject function.
    5) deleted objects.
    this is all I am doing ,and getting memory leak , if you need the sample code then please write your e-mail id , so that I can attach files in reply.
    TIA
    Jagendra

    just to correct my previous reply , adding delete statement
    Hi,
    I am using oracle 10.2.0.1 and compiling the code with Sun Studio 11, following is the brief dicription of my code :
    1) create oracle object :
    create or replace type TEST_OBJECT as object
    ( field1 number(10),
    field2 number(10),
    field3 number(10) )
    2) create table :
    create table TEST_TABLE (
    f1 number(10),f2 number (10),f3 number (10))
    3) create procedure :
    CREATE OR REPLACE PROCEDURE testProc
    data IN test_object)
    IS
    BEGIN
    insert into TEST_TABLE( f1,f2,f3) values ( data.field1,data.field2,data.field3);
    commit;
    end;
    4) generate C++ classes along with map file for database object TEST_OBJECT by using Oracle OTT Utility
    5) C++ code :
    // include OTT generate files here and other required header files
    int main()
    int x = 0;
    int y = 0;
    int z =0;
    Environment *env = Environment::createEnvironment(Environment::DEFAULT);
    Connection* const pConn =
    env->createConnection"stmprf","stmprf","spwtrgt3nms");
    const string sqlStmt("BEGIN testProc(:1) END;");
    Statement * pStmt = pConn->createStatement(sqlStmt);
    while(1)
    TEST_OBJECT* pObj = new TEST_OBJECT();
    pObj->field1 = x++;
    pObj->field2 = y++;
    pObj->field3 = z++;
    pStmt->setObject(1,pObj);
    pStmt->executeUpdate();
    pConn->commit();
    delete pObj;
    }

  • How to pass values to dashboard prompts from external applications

    Any idea is well appreciated.
    How can I pass values of dashboard prompts from external applications to the dashboard prompts so that the dashboard is prefiltered based on values sent by external applications.
    Thanks in Advance!
    Kris

    Kris,
    i am able to change the session variable and able to call the dashboard from external app, but i identified prompt value not changing. but Finally i am able to found a workaround for you.
    Use the following URL and it explained here
    http://localhost:9704/analytics/saw.dll?Dashboard&nquser=Administrator&nqpassword=Administrator&PortalPath=/shared/abcd/_portal/dash1&Options=rmf&DSN=madan
    PortalPath is your dashboard location. /shared/abcd is folder where i saved dashboards. dash1 is my dashboard name.
    internally this dashboard includes many reports that uses the session variable. after doing above this i am able to update the session variable to the value i have given in URL, DSN=value.
    You may observer here that calls the dashboard and passes the value but its not updating the prompt value. so workaround for this is edit your prompt,
    change the Default to - SQL Results and place the sql
    SELECT CASE WHEN 1=0 THEN Markets.Region ELSE VALUEOF(NQ_SESSION.DSN) END saw_0 FROM Paint
    again here Market.Region is column from presentation layer and Paint is subject area. After doing this step, your prompt always shows value in the session varible as default.
    Now include reports and dashboard prompt in the dashboard and run this url from external applicaitons.
    http://localhost:9704/analytics/saw.dll?Dashboard&nquser=Administrator&nqpassword=Administrator&PortalPath=/shared/abcd/_portal/dash1&Options=rmf&DSN=madan
    it worked for me and blog this soon. if it works for you mark the question as answered and mark my replies as correct.
    thanks
    - Madan

  • Getting error , while passing parameters from one page to another page

    Hello friends,
    i am getting error, while passing parameters from one page to another page, below code i wrote.
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    ArrayList arl=new ArrayList();
    EresFrameworkAMImpl am=(EresFrameworkAMImpl)pageContext.getApplicationModule(webBean);
    ERecordImpl ERecordObj=new ERecordImpl();
    HashMap hMap = new HashMap();
    hMap.put("1",ERecordObj.getTransactionName());
    hMap.put("2",ERecordObj.getTransactionKey());
    hMap.put("3",ERecordObj.getDeferredMode());
    hMap.put("4",ERecordObj.getUserKeyLabel());
    hMap.put("5",ERecordObj.getUserKeyValue());
    hMap.put("6",ERecordObj.getTransactionAuditId());
    hMap.put("7",ERecordObj.getRequester());
    hMap.put("8",ERecordObj.getSourceApplication());
    hMap.put("9",ERecordObj.getPostOpAPI());
    hMap.put("10",ERecordObj.getPayload());
    // hMap.put(EresConstants.ERES_PROCESS_ID,
    if(pageContext.getParameter("item1")!=null)
    pageContext.forwardImmediately(EresConstants.EINITIALS_FUNCTION,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    hMap,
    true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES
    Error(71,2): method forwardImmediately(java.lang.String, byte, null, java.util.HashMap, boolean, java.lang.String) not found in interface oracle.apps.fnd.framework.webui.OAPageContext
    Thanks
    krishna.

    Hi,
    You have imported the wrong class for HashMap.
    Import
    com.sun.java.util.collections.HashMap; instead of java.util.HashMap
    Thanks,
    Gaurav

  • Problem while passing parameter from report to report.

    Hi
    I'm using forms and reports 10g, hava a problem while passing the parameter from reports to report.
    i'm using srw.set_hyperlink to call report from report.
    i have created a key value in the cgicmd.dat file called
    faccre802005-2006: report=faccre80 destype=cache desformat=pdf userid=<userid/passwd@cs> server=<servername>
    Now in the format trigger i'm using this key value
    function BTN_DEBITFormatTrigger return boolean is
    temp varchar2(5000);
    IP_ADDRESS VARCHAR2(50);
    SERVER_NAME VARCHAR2(10);
    L_ACCT_CODE VARCHAR2(14);
    begin
    SELECT MAST_INT_DESC,MAST_USER_PGM_ID INTO IP_ADDRESS,SERVER_NAME FROM MAST_INT_INFO WHERE MAST_INT_ID='VISHWA';
    temp := IP_ADDRESS||'?faccre80'||:P_FIN_YEAR||'+server='||server_name;
    temp :=temp ||'+'||'P_PREVIOUS_CODE='''||:ACCT_CODE||''''||'+'||'P_COMPANY_CODE='''||:P_COMPANY_CODE||'''';
    temp :=temp ||'+'|| 'P_FROM_DATE='''||TO_CHAR(:P_FROM_DATE,'DD-MON-RRRR')||''''||'+'|| 'P_TO_DATE='''||TO_CHAR(:P_TO_DATE,'DD-MON-RRRR')||''''||'+'||'P_TRUST_CODE='''|| :P_TRUST_CODE||'''';
    temp :=temp ||'+'|| 'P_UNIT_CODE='''||:P_UNIT_CODE||''''||'+'||' P_FIN_YEAR='''||:P_FIN_YEAR||'''';
    temp :=temp ||'+'|| 'P_LEVEL='''||:P_LEVEL||''''||'+'||'P_HEADER='''||replace(:P_HEADER,' ','%20')||''''||'+'||'P_FORMAT='''||:P_FORMAT||'''';
    SRW.Set_Hyperlink(temp);
    END;
    return (TRUE);
    end;
    Report is coming but not the expected result because parmaeters are not coming from first report to second report.
    If i dont use cgicmd file userid and password are displyed in the URL.
    Pl tell me how to pass parameter from one report to another.
    thanks and regards

    Hi
    I got the solution.
    I forgot to add %* at end of the KEY value.

  • Problem while doing bdc for fv60

    Hi frends,
       I got problem while doing BDC for fv60 tcode.i have given
    header items:
    vendor number
    invoice date
    posting date
    amount
    item data:
    g/l acc no: 100000
    amount 1000 whatever
    these are all given in recording
    in recording after all giving this data if we click on park it is telling "parking not possibe duiring batch input".
    can any body tell me the process for recording shdb and after that in bdc how can we give multiple line items for fv60
    thanks,
    naveen.

    I don't think you can use FV60 in batch input. Your options are to use transaction FBV1 or bapi BAPI_INCOMINGINVOICE_PARK.
    Rob

  • Seperate Subject area for Dashboard Prompts

    Hi,
    Is there any way by which we can create seperate subject areas for OBIEE dashboard prompt only??
    Thanks

    Hi,
    Yes we can create separate subject areas for dashboard prompt's alone. Here is a case
    Say we need to create a constraint enabled prompt in our dashboard. So we bring in two dimension columns into the prompt.
    When we run the prompt, the queries across these two dimensions go through a fact table (Because the only way two different dimensions can be joined is through a fact . This fact table is chosen by BI Server intelligently at run time and that can be set through Implicit Fact column also though). In this case there is a chance that some of the dimension rows might get skipped in the constrained prompt as all of the records might not be present in the fact table.
    To mitigate this issue, we might want to create a separate subject area for dashboard prompts alone (using some fact less fact or by having a surrogate key in the 2nd dimension table etc).
    Hope I am clear :)
    Thank you,
    Dhar

  • Problem while creating PO for Calibration order PR

    Hi,
    I am facing following problem while create PO for calibration order PR:
    "Comparison of the field selection strings from the G/L account 8000010800 and the account assignment category F reveals that there is an incompatible combination of field selections for the field selection group 'Network'.
    The G/L account field selection is stored in table T004F; that for the account assignment is stored in table T162K."
    Can anybody help me urgently.
    Regards,
    Mew

    Hi,
    Check the field selection for account assignment category & Field status group of G/L 8000010800.
    Compare both & set the field selection equally in both.
    Regards,
    Piyush

  • Default width for dashboard prompts

    Hi:
    Does anyone know how to set the default width for dashboard prompts? Is there an XML file that contains this value?
    Thanks.

    During creation of prompts you can set additional format just check available icon on that layout. If it is 10g just look at above the heading 'Dashboard Prompt'.
    Pls mark correct/helpful if helps

  • Getting Error in Crystal report While passing parameters (DB: MS ACCESS)

    I have been trying to solve passing parameters in Crystal Reports.
    What I have done is :
    I added Crystal Reports to my project,
    I connect to database using OLE DB (ADO) in database expert form (for your kind information; I did not create or add DataSet1.xsd file the Crystal Reports worked on below code with out parameters and I want report with parameter)
    I added below piece of code on my form load event
    When I try to pass parameter using .SetparameterValue function, report pop up with bunch of values BUT it does not filter with values which I want, Can anyone tell me that Am I missing something strange ? If yes please guide me
    Here is images Links : Dropbox - Creport error
    First Image shows my crystal report look, second image shows my DB connection and third one shows the error which I am getting while executing below code
    Please help me, I've been trying to solve this problem for two months.
    Public Class frmrptProducts
       Private Sub frmrptProducts_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
       Dim cryRpt As New ReportDocument
       Dim CrTables As Tables
       Dim crtableLogoninfo As New TableLogOnInfo
       Dim crConnectionInfo As New ConnectionInfo
       'load report
      cryRpt.Load(ReportPath & "CRproducts.rpt")
       'parameters definition(if any) This is the part where I pass parameters
       Dim ColourName As String = "White"
      cryRpt.SetParameterValue("colours", ColourName)
       'provide connection info. This is important and you can change it as per your db location
       With crConnectionInfo
       .ServerName = My.Application.Info.DirectoryPath.ToString() & "\data\db.mdb"
       '.DatabaseName = ""
       '.UserID = ""
       .Password = ""
       End With
      CrTables = cryRpt.Database.Tables
       For Each CrTable In CrTables
      crtableLogoninfo = CrTable.LogOnInfo
      crtableLogoninfo.ConnectionInfo = crConnectionInfo
      CrTable.ApplyLogOnInfo(crtableLogoninfo)
       Next
      CRV.ReportSource = cryRpt
      CRV.Refresh()
       End Sub

    HI Don,
    Thanks for replied, I have come up with some different code and it worked,
    Please visit this link and let me know if Am I able to get question resolved Pass more than two parameters to Crystal Reports from VB.NET

  • Problem in passing parameters in command line in desktop

    Hi,
    I am trying to generate reports from command line (Oracle Discoverer 4i Version 4.1.42.04.00) but I am facing problems when I try to pass date or numeric parameters. It seems to work with strings
    The following command is successful when i pass string as parameters
    C:\orant\DISCVR4\dis4usr.exe /connect reports/reports@orcl /opendb load_report_1 /batch /sheet 2 /parameter "P Date" "31-JUL-2006 Month End" /export xls c:\Temp\load_report_!
    But in the following commands the command line execution stops when a worksheet with parameters is encountered. Once then parameter is entered the command line is executed successfully. In these problem cases it seems like the /parameter option is not being recognized. I have tried to pass parameters with double quotes, single quotes, without any quotes.
    C:\orant\DISCVR4\dis4usr.exe /connect reports/reports@orcl /opendb "load report 2" /sheet 3 /parameter "Select P Day" "20-JUN-2006" /batch /export xls c:\Temp\load_Report_2
    C:\orant\DISCVR4\dis4usr.exe /connect reports/reports@orcl /opendb "load report 3" /batch /sheet 1 /parameter "Enter Date Using Format YYYYMMDD" 20060703 /export xls c:\Temp\load_report_3
    The only difference I can see is that I have not used double quotes in the command line that is successful in generating reports with parameters.
    Any inputs will be appreciated - we are stuck in our project due to this issue. Many thanks.
    Warm regards
    Sucharita

    Hi
    I work in the same team as the original poster.
    We tried by changing NLS_DATE_FORMAT for the oracle_home.
    Just to clarify our issue I am describing it one more time below -
    Using Disc desktop (4.1.42) we are trying to run the reports using command line interface. Any report that takes character input for the parameters ,is running fine in the batch mode without prompting.
    Any report that takes Date/Numeric input for the parameters, though in batch mode, is prompting for user to give the parameters.We tried with quotes as well.
    For Example -
    1. Character input : when we run this command supplying the input parameter values (which are characters), report runs fine without prompting for values.
    C:\orant\DISCVR4\dis4usr.exe /connect rep/rep@orals /opendb Schd_Report /batch /sheet 2 /parameter "Process Date" "31-JUL-2006 Month End" /export xls c:\audit_report_5
    2. Date Input -
    C:\orant\DISCVR4\dis4usr.exe /connect rep/rep@orals /opendb "DLS.Arrears Reports" /batch /sheet 1 /parameter "Please Enter Date Using Format YYYYMMDD" 20060703 /export xls c:\CA_arr
    When we submit this we get a window prompting for the input values. So his is the issue.
    Thanks
    Raman

Maybe you are looking for