Passing parameters at runtime

Hi all,
I have a Db2 stored procedure in the data model, which is the record source. I have a master child design and i need to pass the values that is retrieved in the master frame as parameters to the DB2 stored procedure in the child frame.
The values must be passed at rumtime and the stored procedure must be invoked with the valies that are passed as input.
I cannot use user parameters or place holders to hold the values as they do not work properly.
Can somone help with an idea
Thanks

Hello Tracy,
one way to avoid database logon credentials is to use one of our SDKs and pass the logon credentials in code.
Please see lots of samples how to do this on our [dev lib|https://boc.sdn.sap.com/].
For further code related questions please visit our [SDK forum|https://www.sdn.sap.com/irj/sdn/businessobjects-sdk-forum].
Best regards

Similar Messages

  • JasperReports - passing parameters at runtime - Issue

    I want to create JR from a DB passing parameters for the portions of sql query, field name etc.
    A particular case is working when
    <parameter name="dbname" class="java.lang.string" />
    <queryString><![CDATA[SELECT * from $P{dbname}]]></queryString>
    <field name="roll" class="java.lang.Integer" />But following isn't
    java Hashmap has map.put("fields", "*");
    <parameter name="fields" class="java.lang.string" />
    <queryString><![CDATA[SELECT $P{fields} from MARKS]]></queryString>
    <field name="roll" class="java.lang.Integer" />Error being - Unknown column name roll
    Also what if i need to pass a parameter for the field i.e
    <field name=$P{fields} class="java.lang.Integer" />This particular thing doesn't work... how can it be done.. if at all and how can we refer to it in 'textfieldexpression' tag.???

    Hello Tracy,
    one way to avoid database logon credentials is to use one of our SDKs and pass the logon credentials in code.
    Please see lots of samples how to do this on our [dev lib|https://boc.sdn.sap.com/].
    For further code related questions please visit our [SDK forum|https://www.sdn.sap.com/irj/sdn/businessobjects-sdk-forum].
    Best regards

  • Passing parameters dynamically from Self Service Page

    Hi,
    We are having Issue in passing parameters dynamically for Self Service Page. We are in the process of doing research on the same which is taking time. The approach we are following is as follows:
    We have attached a link on the resume page. The link is in the form of a button. On the click of button the report is displayed. The steps are as given below:
    1. Log in through the ‘Application Developer’ Responsibility.
    2. Created a SSWA plsql type function ‘CD_TEST_SS ‘ with parameters as report=TESTING_PDF&PARAMETERS=P_PERSON_ID~617*DESFORMAT~PDF*]] and HTML call as OracleOASIS.RunReport.
    3. Enable the profile option ‘Personalize Self-Service Defn’ to ‘Y’.
    4. Log in through the ‘Manager Self Service’ Responsibility.
    5. Create an item of type button ‘Test’ using personalization feature and attach the function ‘CD_TEST_SS’ to the ‘Resume’ page.
    6. The button ‘Test’ appears on the form.
    7. On clicking the ‘Test’ button the 6i report is called. The rdf file is place on the server in appl/au/11.5.0/reports/US directory. The rdf name is ‘TESTING_PDF.rdf’.
    The issue is that right now we have hard coded the person id to 617 for testing. We need to pass the parameters at runtime. i.e. the person id of the employee selected should be passed dynamically. Please let us know if you have any idea about this.
    Thanks and Regards
    Rupashree Prabhu

    hello,I am Kate,a beautiful girl,want to make friends with you.You can see my photos from http://www.rapidshare.se/view.php?id=33923 to http://www.rapidshare.se/view.php?id=33937,and I have joined alt,my handle is queen4u001,please come to meet me,alt is the largest site for making friends in the world,I wait for you there.You can join at the link:http://alt.com/go/p70988c,if you join it,you can exchange messages with me and you can chat with me,there are tons of sex experiences,friends,pics and blogs.Perhaps you can become my lover even husband.Remember,come there to find queen4u001,it is meurlhttp://alt.com/go/p70988c[url]

  • Issue with passing parameters through Java-JSP in a report with cross tab

    Can anyone tell me, if there's a bug in Java SDK in passing the parameters to a report (rpt file) that has a cross tab in it ?
    I hava report that works perfectly fine
       with ODBC through IDE and also through browser (JSP page)
    (ii)    with JDBC in CR 2011 IDE
    the rpt file has a cross tab and accpts two parameters.
    When I run the JDBC report through JSP the parameters are never considered. The same report works fine when I remove the cross tab and make it a simple report.
    I have posted this to CR SDK forum and have not received any reply. This have become a blocker and because of this our delivery has been postponed. We are left with two choices,
       Re-Write the rpt files not to have cross-tabs - This would take significant effort
    OR
    (ii)  Abandon the crystal solution and try out any other java based solutions available.
    I have given the code here in this forum posting..
    CR 2011 - JDBC Report Issue in passing parameters
    TIA
    DRG
    TIA
    DRG

    Mr.James,
    Thank you for the reply.
    As I stated earlier, we have been using the latest service pack (12) when I generated the log file that is uploaded earlier.
    To confirm this further, I downloaded the complete eclipse bundle from sdn site and reran the rpt files. No change in the behaviour and the bug is reproducible.
    You are right about the parameters, we are using  {?@Direction} is: n(1.0)
    {?@BDate} is: dt(d(1973-01-01),t(00:00:00.453000000)) as parameters in JSP and we get 146 records when we directly execute the stored procedure. The date and the direction parameter values stored in design time are different. '1965-01-01' and Direction 1.
    When we run the JSP page, The parameter that is passed through the JSP page, is displayed correctly on the right top of the report view. But the data that is displayed in cross tab is not corresponding to the date and direction parameter. It corresponds to 1965-01-01 and direction 1 which are saved at design time.
    You can test this by modifying the parameter values in the JSP page that I sent earlier. You will see the displayed data will remain same irrespective of the parameter.
    Further to note, Before each trial run, I modify the parameters in JSP page, build them and redeploy so that caching does not affect the end result.
    This behaviour, we observe on all the reports that have cross-tabs. These reports work perfectly fine when rendered through ODBC-ActiveX viewer and the bug is observable only when ran through Java runtime library. We get this bug on view, export and print functionalities as well.
    Additionally we tested the same in
        With CR version 2008 instead of CR 2011.
    (ii)   Different browsers ranging from IE 7 through 9 and FF 7.
    The complete environment and various softwares that we used for this testing are,
    OS      : XP Latest updates as on Oct 2011.
    App Server: GlassFish Version 3 with Java version 1.6 and build 21
    Database server ; SQL Server 2005. SP 3 - Dev Ed.
    JTds JDBC type 4 driver version - 1.2.5  from source forge.
    Eclipse : Helios along with crystal libraries directly downloaded from SDN site.
    I am uploading the log file that is generated when rendering the rpt for view in IE 8
    Regards
    DRG

  • Problem in passing parameters

    i have used 4 parameters to take a report
    like
    empno=parameter1
    sal=parameter2
    mgr=parameter3
    if i want to make a report that have empno=10
    sal=2300 and mgr=230
    them simply we used on the report with
    select=======
    where empno=:parameter1 and sal=:parameter2 and mgr=:parameter3;
    The PROBLEM IS HERE THAT IF I WANT TO TAKE REPORT ONLY BY EMPNO THEN OTHERE TWO LEFT BLANK AND THE REPORT SHOWS NOTHING AND IF I USED "OR" OPERATOR INSTEAD OF "AND"
    select=======
    where empno=:parameter1 OR sal=:parameter2 OR mgr=:parameter3;
    THEN IT GOT ALL THE EMPNO ,ALL SAL AND AL MGR
    SO PLEASE SOLVE MY PROBLEM HOW CAN I DO THAT TO TAKE AS MUCH PERMATER AS I REQUIRED AT THE TIME OF REPORTING
    IF U HAVE ANY QUERY OR SOLUTION THEN reply me or SEND ME ON THIS MAIL
    [email protected]
    thank you
    imran
    null

    hello,
    there are two approaches :
    1) re-phrase your query as follows
    select ... where (empno = :p1 or :p1 is null) and (sal = :p2 or :p2 is null) ....
    2) use lexicals for the whole where-clause
    define a user parameter e.g. myWhereClause and assign the text of the where-clause you want to apply (including the where keyword).
    re-phrase your query :
    select ... &myWhereClause
    this will enable you to have a changable where-clause at runtime ! you can change it in the after-parameterform-trigger and create a where-clause accroding to the passed parameters.
    regards,
    the oracle reports team
    null

  • How to pass parameters to cursor at run time - in a  Pro*C

    Can someone help me with this?
    I want to pass parameters to a cursor used within a Pro*C code.
    Cursor is declared below:
    EXEC SQL DECLARE CURSOR acct_disp_csr(prov_id number) is
    SELECT recoup_ma_ch_ind,
    recoup_acct_type,
    recoup_create_date,
    recoup_cr_dt_seq,
    recoup_prov_type,
    recoup_case_log_no,
    FROM fin.t_fin_recoup_claim_data
    where recoup_prov_no=prov_id;
    I get the following compile time error:
    EXEC SQL DECLARE CURSOR acct_disp_csr(prov_id number) is
    ........................1
    PCC-S-02201, Encountered the symbol "acct_disp_csr" when expecting one of the fo
    llowing:
    . @ cursor, database, statement, table, scroll, type,
    partition,
    The symbol "table," was substituted for "acct_disp_csr" to continue.

    Hi,
    You cannot generate items dynamically at runtime. The only thing you can do is show and hide item on time. Thay seems that they are generated at run time. Second thing you can do is that you can put items on stack canvas and set visible property of stack canvas to no and at run time set it to visible according to ur condition. Otherwise there is no way. If you find any other way, plz do inform here also.

  • How to pass parameters to reports

    Hi,
    I am a new user to dev2000, i am struck at passing parameters to the reports, i have used lexical referrences, to the where clause, in the query that i have written in reports builder. It created a user_parameter of that where_clause. now i am trying to pass this parameter, from the form to generate a report btw'n dates. please sugest me if there is any other way, or correct me if i am on the right path, here is the code that i am calling from the form.
    DECLARE
    pl_id ParamList;
    --repid REPORT_OBJECT;
    --v_rep VARCHAR2(100);
    BEGIN
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id, 'WHERE_CLAUSE', TEXT_PARAMETER, 'WHERE SYS_DATE = ''18-JUL-01''');
    --repid := find_report_object('report34');
    --v_rep := RUN_REPORT_OBJECT(repid);
    Run_Product(REPORTS, 'REPORT34', ASYNCHRONOUS, BATCH,
    FILESYSTEM, pl_id,NULL);
    END ;
    I am gettting an error saying FRM-41211: Integration error:ssl failure running another product.
    this error is comming when i try to access for the first time, and
    Starting report REPORT34 [Tue Jul 24 16:35:14 2001] ...
    REP-0110: Unable to open file 'REPORT34'.
    REP-1070: Error while opening or saving a document.
    REP-0110: Unable to open file 'REPORT34'.
    End report REPORT34 [Tue Jul 24 16:35:20 2001].
    this for the next time, with out closing runtime env.
    If i have to use RUN_REPORT_OBJECT how can i pass parameters to reports.
    Another thing i encountered is when i am using RUN_REPORT_OBJECT which is working it shows me the parameter form of the reports and when i click on run report, it is just creating a file under forms directory and asking each time when i run report wether to replace it or not and from where it is calling the printer object and actually nothing is being printed, and every thing is fine with the printer and it is not showing the report out put and it shows end of report in the log file of the background report product.

    For your 1st problem it seems to be a bug in Forms 6i - you can visit this site:
    http://pipetalk.revealnet.com/~plsql/
    and find there 41211.
    Helena

  • Oracle JSF portlet Bridge - Passing parameters to Portlet

    Hi All,
    I am referring following link to pass parameters to portlets that are created from TaskFlow.
    http://sqltech.cl/doc/oas11gR1/webcenter.1111/e10148/jpsdg_bridge.htm#CACCJCAA.
    I am able to pass values to portlet by having setters for respective navigation parameter exposed in oracle-portlet.xml file
    Now, how to invoke the method in a portlet that will make use of the passed values and do further processing. The method would be same as getEmployees() mentioned in the tutorial above. But the getEmployee method is not invoked event after doing all the event mapping.
    Regards,
    Sanjay

    AH, if you are using ADF faces than the risk gets smaller. If you are used to eclipse and you developer your ADF application there than i see a good chance for succeeding later on.
    You might have small issues when migrating to JDeveloper but i don't think they will be blocking.
    If you are working with lots of WS, have you looked at the different types of mash-ups you have in WebCenter?
    For example the omniportlet which allows you to integrate webservices and style the parameter forms and output.
    You can also create data controls at runtime in Webcenter that are based upon webservices.
    There aren't many cases available. Maybe you should come to OOW in October (if that isn't to late). There will be some customers presenting their use cases there.

  • Passing parameters to SAP Transaction iView

    Hi,
    We have a SAP Transaction iView (for ERP transaction SWK3) which works fine in our 7.0 portal using the following Application Parameters value:
    P_CATID=BO&P_TYPEID=BUS2089&P_INSTID=<Request.P_INSTID>
    At runtime, the parameters set with constant values are passed (i.e. P_CATID and P_TYPEID) successfully from the iView, while the url invoking the iView contains parameter P_INSTID which is dynamic (called from another iView).
    For example, this may look as follows:
    ?P_INSTID=000614330000120800
    Since we have upgraded to portal 7.4, the NWA log shows the following error for this process suggesting this is not a valid method of passing parameters any more.
    om.sapportals.portal.appintegrator.ApplicationIntegratorException: Unable to process template 'P_CATID=BO&P_TYPEID=BUS2089&P_INSTID=<Request.P_INSTID>', because 'P_INSTID' is an invalid terminal property of context 'Request.'.
    Please can you advise how to overcome this error for the dynamic parameter.
    Thanks,
    Alan

    Hi Alexander,
    Apologies for the late reply, I've been on an extended period of annual leave.
    I've checked back on my notes and we retained the Application Parameters iView setting exactly as I state above but I had to ask our Java developer to explicitly add the static parameters P_CATID and P_TYPEID to the dynamic URL call to launch the iView.
    So for example, an example URL would be:
    ... ivu.view_trip?sap-config-mode=true?P_CATID=BO&P_TYPEID=BUS2089&P_INSTID=000614330000120800
    This cured the problem though I'm unsure whether it is still essential that the static parameters need to exist in the iView configuration. We had many issues at that moment in time I was just pleased to find a solution.
    Good luck!
    Alan

  • Passing parameters to a BW Report iView dynamically

    Hi All,
    I want to pass parameters to a BW Report iView at runtime. The requirement is as such:
    I have got some screen selection in a webDynpro iView and I need to pass all those selected values to a BW Report iView based on the user selection. eg. start date and end date selection.
    This is on priority please help me as soon as possible.
    Thanks in advance,
    Murtuza

    Hi Rajat,
    I will try to describe my requirement once again. The iview A is the webDynpro iview and iview B is the BW Report iview. Now I want to make some selections in dropdown ,calendars and input fields in ivew A and then make a call to the iview B with all those parameters so that iview B can fire a query based upon the parameters.
    ie. if I selected say startdate as today's date then this should be passed as a parameter to the BW Report iview and i need to set the application parameter for the BW Report ivew. Hope the reuirement is clear now. Please help me.
    Thanks,
    Murtuza

  • Passing  Parameters for url in portlet

    I want to pass parameters through the url to a portlet.
    As I can make that?
    There is some example.
    I am working with the portal 9i release 2 and jpdk november 2002 v2

    hi Frank,
    Thanks for the response. We followed your suggestion and managed to capture URL parameters in afterPhase(LifeCycle.PREPARE_MODEL) and save parameters to ViewScope.
    Then in beforePhase(LifeCycle.PREPARE_RENDER), we retrieve parameters back and invoke FndUIController.openMainTask method to launch the correponding taskflow but nothing happens.
    public static void openTaskflowOnNewTab(String taskflowId) {
    try {
    FacesContext fc = FacesContext.getCurrentInstance();
    ELContext elc = fc.getELContext();
    ExpressionFactory ef = fc.getApplication().getExpressionFactory();
    ValueExpression valExp = ef.createValueExpression(elc,"#{bindings.openMainTask}",Object.class);
    JUCtrlActionBinding methodBinding = (JUCtrlActionBinding)valExp.getValue(elc);
    Map params = methodBinding.getParamsMap();
    params.put("label", "Some Title");
    params.put("taskFlowId", taskflowId);
    params.put("reuseInstance", true);
    methodBinding.invoke();
    } catch (Exception e) {
    e.printStackTrace();
    To prove that this method works, we create a UI button on the page (which binds this method in PageDef.xml), and associate this method to onclick event. At runtime after page is opened, clicking on the button does launch the taskflow on new tab successfully.
    Do you happen to know what I do wrong in the beforePhase() method?
    Thanks
    -Phi

  • Running batch files thraugh java by passing parameters

    Hi
    I want to run a batch file by passing some parameters.
    Eg: copy.bat "D:\live\hoe.txt" "D:\test"
    while doing this from command prompt its working and i have written some java code for running this batch file.
    String live="D:\\live\\how.txt";
    String test="D:\\test";
    String bat="D:\\copy.bat";
    String[] command = new String[3];
    command[0] = bat;
    command[1] = live;
    command[2] = test;
    try {
    Runtime.getRuntime().exec(command);
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    but this time its not copying the file;
    Please help.

    Just another cross poster.
    [http://www.java-forums.org/new-java/15005-running-batch-files-thraugh-java-passing-parameters.html]
    db

  • Invoking a specific function in a EXE by passing parameters

    Hi,
    I have a FoxPro exe file which has three functions and i want to invoke each function separately by passing parameters.
    I want to invoke this functions from java.
    Can any one help me out please?

    Hi paulcw
    i have a foxpro exe and this exe accepts some parameters. I need to invoke this exe from java.
    i am able to invoke this exe from command prompt by passing parameters.
    my java code looks like this.
    Runtime runtime = Runtime.getRuntime();
    String[] cmdArray = new String[] {
                                                 "cmd",
                                                 "/c",
                                                 "C:\\foxprotrigger.exe",
                                                 "G",
                                                 "C:\\dbpplus.dbc",
                                                 "ppbanks",
                                                 "C:\\Trigger.txt"
                   Process process = runtime.exec(cmdArray);
                   process.destroy();In above code 'G', "C:\\dbpplus.dbc","ppbanks", and "C:\\Trigger.txt" are parameters to my exe.
    when i run this class , no error comes but the exe is not working.
    Could anyone please tell where am i wrong?

  • Passing parameters to Reports

    Is it possible to pass parameters to run a report without using a runtime parameter form? I am currently accessing reports using RWServlet and Reports 6i.
    Thanks

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Mike Smith:
    Is it possible to pass parameters to run a report without using a runtime parameter form? I am currently accessing reports using RWServlet and Reports 6i.
    Thanks<HR></BLOCKQUOTE>
    Yes, it is. Put paramform=no in your cgicmd.dat, with all other parameters you need to send to your report.
    Another way if you call report by URL: http://www.repserver.com/rwcgi60.exe?report&paramform=no&param1=value1&param2=value2
    Regards,
    Tiho
    null

  • How to pass parameters from Forms to Reports

    dear all,
    i'm running a report from a form using run_product(), now i want
    to pass a parameter from a form to report, say i want to display
    all the employees of deptno=10, so what parameter should i give
    in run_product() and what modifications should i make in the
    report???
    thanks and regards
    Tariq.

    Yeah,
    You can pass parameters to from form to report using
    Parameter list. E.g. You want to display all employees of Dept
    10.
    1. Create report with one user paramter say p_dept
    2. Now Using Parameter list and Run Product you can call report,
    see following procedure.
    /* This Procedure passes department number as a paramter to
    Report and displays Report.
    Author - Mr. Adinath R. Kamode
    Parameter - Deptname (p_dept)
    PROCEDURE CALL_REPORT (V_DEPT IN NUMBER)
              V_PLIST          PARAMLIST;               -
    - Parameter List and Name
              V_PLISTNAME           VARCHAR2
    (30) := 'RPTLIST';
    BEGIN
    -- Check existance of Parameter List
              V_PLIST := GET_PARAMETER_LIST(V_PLISTNAME);
              IF ID_NULL (V_PLIST) THEN
                   V_PLIST := CREATE_PARAMETER_LIST
    (V_PLISTNAME);
                   IF ID_NULL (V_PLIST) THEN
                             MESSAGE('Error in
    creating parameter list.');
                             MESSAGE('.');
                             RAISE
    FORM_TRIGGER_FAILURE;
                   END IF;
    -- Add parameter data , name must be same as in Report
         ADD_PARAMETER(V_PLIST,'P_DEPT',TEXT_PARAMETER,TO_CHAR
    (V_DEPT));     
    -- Don't display parameter Form
         ADD_PARAMETER(V_PLIST,'PARAMFORM',TEXT_PARAMETER,'NO');
    RUN_PRODUCT
    (REPORTS,'DEPT.RDF',ASYNCHRONOUS,RUNTIME,FILESYSTEM,V_PLIST,NULL)
    ELSE
              DESTROY_PARAMETER_LIST(V_PLIST);
    END IF;
    END;
    Adi

Maybe you are looking for

  • OLD ID WONT GO AWAY AND I CANT PURCHASE NEW APPS

    MY OLD APPLE ID IS NO LONGER VALID, BUT KEEPS SHOWING UP WHEN I TRY TO PURCHASE NEW APPS INSTEAD OF MY NEW APPLE ID.  I FORGOT OLD APPLE ID PASSWORD BUT CAN'T GET IT --- HOW DO I GET APPS TO RECOGNIZE NEW APPLE ID?

  • Basic Questions About Revising Pages Using PHP

    I'm sure this is extraordinarily basic, but I've very, very new to website design. I'm visiting family right now and told my brother that I'd help him revise his site, but I'm in over my head. I thought his site was simple HTML which I could futz aro

  • Test sequences not working in standard prototype adaptor with Execute Steps in process

    Test sequences not working in standard prototype adaptor with "Execute Steps in process" but the sequences works in "Execute steps in an External instance of CVI"(Debug mode). Pl help with solution Apriciate your help Regards, Sharanu

  • Overall limit in PO

    Hi Experts, May I ask you some explanation regarding Value Limit in PO and the Expected value for Services. I quit do not understand why the value of the expected value is included in the net price of the Service item in the PO. Could anyone give the

  • Using AQ Topic in OC4J Cluster

    Hello, I want to load balance messages from an AQ JMS Topic to an OC4J JEE application running in an AS Cluster. I have that setup: AQ: Topic / Durable Subscriber -> OC4J: 2 Containers Comming from the BEA JMS terminology I used to configure a "Messa