Calling report using Mapping File with user parameters

Please provide an example of Key mapping file that provides user parameters to an Oracle Reports report, where paramform=no.
I call an Oracle Reports report via APEX, and can't get the URL to work. If I don't use the mapping file, the call works. But I can't seem to get it to work using the mapping file to hide all the other params like userid etc.

Please provide an example of Key mapping file that provides user parameters to an Oracle Reports report, where paramform=no.
I call an Oracle Reports report via APEX, and can't get the URL to work. If I don't use the mapping file, the call works. But I can't seem to get it to work using the mapping file to hide all the other params like userid etc.

Similar Messages

  • Calling report from a form with user input parameters

    Hello,
    I am new to Oracle reports. I have an application coded in 6i. I am currently running the application in Oracle Forms Builder 9i. There are also few reports which are called from the forms. Since the application was developed in 6i, the report was called using Run_Product. The forms pass a set of user parameters to the report using the parameter list pl_id. The syntax used was Run_Product(REPORTS, 'D:\Report\sales.rdf', SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id, NULL);
    I learnt that the Run_product doesnt work in 9i and we need to use run_report_object. I have changed the code to use run_report_object and using web.show_document () i am able to run the report from the form. There are 2 parameters that need to be passed from forms to reports. The parameters are from_date and to_date which the user will be prompted to enter on running the form. In the report, the initial values for these parametes are defined. So, the report runs fine for the initial value always. But when i try to change the user inputs for the form_date and to_date, the report output doesnt seem to take the new values, instead the old report with the initial values(defined in the report) runs again.
    Can someone give me the code to pass the user defined parameters to the report from the forms? I have defined a report object in the forms node as REPTEST and defined a parameter list pl_id and added form_date and to_date to pl_id and used the following coding:
    vrepid := FIND_REPORT_OBJECT ('REPTEST');
    vrep := RUN_REPORT_OBJECT (vrepid,pl_id);
    But this doesnt work.
    Also, Should the parameters defined in the forms and reports have the same name?

    Thanks for the quick response Denis.
    I had referred to the document link before and tried using the RUN_REPORT_OBJECT_PROC procedure and ENCODE functions as given in the doc and added the following SET_REPORT_OBJECT_PROPERTY in the RUN_REPORT_OBJECT_PROC :
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,' FROM_DATE='||:BLK_INPUT.FROM_DATE||' TO_DATE='||:BLK_INPUT.TO_DATE||' paramform=no');
    But this also dint work. Please help me understand what difference does setting paramform=no OR paramform=yes make?
    In the report, i have defined the user parameters as FROM_DATE and TO_DATE respectively so that they match the form datablock BLK_INPUT items FROM_DATE and TO_DATE.
    My WHEN_BUTTON_PRESSED trigger is as below:
    DECLARE
    report_id report_object;
    vrep VARCHAR2 (100);
    v_show_document VARCHAR2 (2000) := '/reports/rwservlet?';
    v_connect VARCHAR2 (30) := '&userid=scott/tiger@oracle';
    v_report_server VARCHAR2 (30) := 'repserver90';
    BEGIN
    report_id:= find_report_object('REPTEST');
    -- Call the generic PL/SQL procedure to run the Reports
    RUN_REPORT_OBJECT_PROC( report_id,'repserver90','PDF',CACHE,'D:\Report\sales.rdf','paramform=no','/reports/rwservlet');
    END;
    ... and the SET_REPORT_OBJECT_PROPERTY code in the RUN_REPORT_OBJECT_PROC procedure is as:
    PROCEDURE RUN_REPORT_OBJECT_PROC(
    report_id REPORT_OBJECT,
    report_server_name VARCHAR2,
    report_format VARCHAR2,
    report_destype_name NUMBER,
    report_file_name VARCHAR2,
    report_otherparam VARCHAR2,
    reports_servlet VARCHAR2) IS
    report_message VARCHAR2(100) :='';
    rep_status VARCHAR2(100) :='';
    vjob_id VARCHAR2(4000) :='';
    hidden_action VARCHAR2(2000) :='';
    v_report_other VARCHAR2(4000) :='';
    i number (5);
    c char;
    c_old char;
    c_new char;
    BEGIN
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,report_file_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,report_server_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,report_destype_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT,report_format);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,' FROM_DATE='||:BLK_INPUT.FROM_DATE||' TO_DATE='||:BLK_INPUT.TO_DATE||' paramform=no');
    hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME);
    hidden_action := hidden_action||'&destype='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE);
    hidden_action := hidden_action||'&desformat='||GET_REPORT_OBJECT_PROPERTY (report_id,REPORT_DESFORMAT);
    hidden_action := hidden_action ||'&userid='||get_application_property(username)||'/'||get_application_property(password)||'@'||get_application_property(connect_string);
    c_old :='@';
    FOR i IN 1..LENGTH(report_otherparam) LOOP
    c_new:= substr(report_otherparam,i,1);
    IF (c_new =' ') THEN
    c:='&';
    ELSE
    c:= c_new;
    END IF;
    -- eliminate multiple blanks
    IF (c_old =' ' and c_new = ' ') THEN
    null;
    ELSE
    v_report_other := v_report_other||c;
    END IF;
    c_old := c_new;
    END LOOP;
    hidden_action := hidden_action ||'&'|| v_report_other;
    hidden_action := reports_servlet||'?_hidden_server='||report_server_name|| encode(hidden_action);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'pfaction='||hidden_action||' '||report_otherparam);
    -- run Reports
    report_message := run_report_object(report_id);
    rep_status := report_object_status(report_message);
    IF rep_status='FINISHED' THEN
    vjob_id :=substr(report_message,length(report_server_name)+2,length(report_message));
    message('job id is'||vjob_id);pause;
    WEB.SHOW_DOCUMENT(reports_servlet||'/getjobid'||vjob_id||'?server='||report_server_name,' _blank');
    ELSE
    --handle errors
    null;
    END IF;
    In the code - " hidden_action := hidden_action ||'&'|| v_report_other; " in the RUN_REPORT_OBJECT_PROC procedure above, how do i make sure that the v_report_other variable reflects the user input parameters FROM_DATE and TO_DATE ??? v_report_other is initialised as v_report_other VARCHAR2(4000) :=''; in the procedure. Will ensuring that the v_report_other contains the user input parameters FROM_DATE and TO_DATE ensure that my report will run fine for the input parameters?
    Thanks in advance.
    Edited by: user10713842 on Apr 7, 2009 6:05 AM

  • Problem about SSO using logon ticket  with user mapping

    Hi everyone ,
    I had done SSO with Portal , BW and R/3 system.
    I use logon ticket with user mapping .
    When user name is same in Portal as in R/3 system, or user name is same in Portal as in BW , user can access R/3 transactions and BW report without logon.
    There are some Portal users name which are different with R/3 user and  BW user. And I done the user mapping for these  user.
    But some user mapping works fine,but most of them can't work,means that most of them need to enter mapped user ID and password.
    What's the reason?
    When SSO using logon ticket with user mapping, the Portal user which is different with R/3 user and BW user,  can they access R/3 transaction iview and BW report iview without logon?

    Hi Chen,
    What you have done is correct. But the problem lies here.
    Since you are using the same system object for accessing the iview, where the ticket method is set to SAPLOGONTICKET in the user Management property of the system object.
    To avoid this create another system object like the previous one but set the logon method to UIDPW and select admin, user from the drop down box. Also create a system alias for this system.
    Now create another iview like the previous one but link this iview to the new system. Now do the user mapping for the users which are different in portal compared with R/3. Now you should be able to login without any problems.
    Another important point is login to portal with Fully qualified domain name. In the ITS property of the system object also give the FQDN.
    Hope this helps
    Regards
    Arun

  • Customization of "Positive Pay file with additional parameters"  template

    Hi,
    We've a requirement to customize the eText template of the Positive Pay file with additional parameters report. The setup is done , now the program is picking up the new format. Since the payments involves multilines hierarchy, we are unable to print the data in the hierarchical format. Our requirement is to print a Header with information like BankAccountNumber,Total Amount in Dollars , Total number of lines. And Detail segment with all the infomation like BankNumber, BankAccount Number, Amount, Print 'V' if the check is voided etc. please let me know how to achieve this format in eText.
    Thanks
    Elan

    Did you introduce a new LEVEL for the detail info?
    Refer user guide on the syntax of usage.

  • Using a StoredProcedure with OUT parameters in CrystalReports

    Hi All,
    I am creating a report using CrystalReport Designer 2008.I have a StoredProcedure which takes 2 input parameters,2 output parameters and a cursor.I am not able to add this SP directly using the DatabaseExpert. if I use
    'call SP1(input1,input2,input3,input4,@output1,@output2)' from AddCommand option then it gets added as a Command but the tree under Command does not expand and it does not allow me to use the output parameters in my reports.
    Hence,can anyone please help me here such that how should I use this SP with out parameters in my CrystalReports.Also note that I am able to use StoredProcedure with only input parameters,with input parameters and cursor in my CrystalReports.Should I do something extra to add this StoredProcedure in my CrystalReports?
    Any help for this issue would be highly appreciated.
    Regards.
    Ajit

    Ajit,
    If you are using a Command, you execute a SP in CR with the same syntax that you would in the databases native environment.The only difference is that you'll need to add CR parameters so that the inputs can be added to the SP's input parameters.
    So, using your example... 'call SP1({?input1}, {?input2}, {?input3} , {?input4}, output1, output2)'
    I'm not familiar with this particular syntax but hopefully you get the idea.
    If you want to hard code the input parameters (and not have them prompt in CR), just hard code them in the command.
    HTH,
    Jason
    Edited by: Jason Long on Aug 25, 2010 2:15 PM

  • How to use XDCAM files with Premier 4 Trial

    According to everything I have read, using XDCAM files with Premier 4 is easy. It just works. However, it doesn't with me.
    For starters, when I create a new project, there are no XDCAM presets, despite it stating there are in the various documents I have read.
    If I either try to import a file directly or copy it to the hard drive and then import it, I get:
    Error Message
    The importer reported a generic error
    Not very helpful.
    This is a trial version of Premier to try to establish if this product is any good. I did try to contact Adobe but they say they don't support trial users. Not very helpful. Since Adobe are obviously not very interested in selling their products, is there anyone else out there whop can answer this or should I just use Final Cut Pro instead (well if Adobe are not interested in helping a potential customer, what chance is there of being helpful once they have your money???)

    As far as I am concerned, editing XDCAM EX files with CS4 - I have yet to edit XDCAM (HD) files - is as easy as editing DV(CAM) material on my i7 Extreme machine with Vista Ultimate and 12 Gig of RAM.
    I am also pleased to report that the audio bug that beset CS3 when editing XDCAM EX files namely, audio cutting out randomly, is a thing of the past.
    The whole CS4 Suite (including Premiere) has been running very smoothly on my (beefy) machine.

  • Creating Report using EPM Functions with Dynamic Filters

    Hi All,
    I am new to BPC, In BPC 7.5 i seen like we can generate EPM report using EVDRE function very quickly and easy too. Is the same feature is existing in BPC 10.0 ? if no how can we create EPM reports using EPM Functions with Dynamic Filters on the Members of the dimension like in BPC 7.5.
    And i searched in SDN, there is no suitable blogs or documents which are related to generation of Reports using EPM Functions. All are described just in simple syntax way. It is not going to be understand for the beginners.
    Would you please specify in detail step by step.
    Thanks in Advance.
    Siva Nagaraju

    Siva,
    These functions are not used to create reports per se but rather assist in building reports. For ex, you want to make use of certain property to derive any of the dimension members in one of your axes, you will use EPMMemberProperty. Similary, if you want to override members in any axis, you will make use of EPMDimensionOverride.
    Also, EvDRE is not replacement of EPM functions. Rather, you simply create reports using report editor (drag and drop) and then make use of EPM functions to build your report. Forget EvDRE for now.
    You can protect your report to not allow users to have that Edit Report enabled for them.
    As Vadim rightly pointed out, start building some reports and then ask specific questions.
    Hope it clears your doubts.

  • Java-wsdl-mapping file with incorrect case

    Hi. We're working with JDeveloper 10.1.3.1 preview and have encountered what I believe to be a bug. We have a schema with element names that are mixed case (such as FirstName). We are trying to use JAXB to create our classes and then wrap it as a web service. The problem is, the WSDL and java-wsdl-mapping file references the element names as firstName rather than FirstName.
    In experimenting, I've learned that if I create the WSDL and schema first and "Create Java Project from WSDL" that it creates a java-wsdl-mapping file with the case preserved. However the first time I go into the web services properties dialog and click OK, it re-creates these files with the case changed again.
    Please advise if this is expected behavior...although I don't see how it could be since it is inconsistent.
    Thanks very much,
    Richard Davis

    I was told the product manager and/or developers from Oracle watched this board. Doesn't anyone have a response to this?

  • How to use "choose file with prompt" command?

    I need to use "choose file with prompt" command and I want give user possibility choose ONLY images (jpeg, png, gif). So, I write like this:
    choose file with prompt "Please, choose images for processing..." of type {"JPEG Image"}
    But this doesn't work! - All files (including jpegs) are dimmed, and user can't choose any....
    So, how can I filter JPEGs, PNGs and GIFs?

    I have found, that most of images on my computer has missing file_type, I don't know why..... so "type identifier of (info for (choose file))" also doesn't work properly.
    The only one way that 100% works is use Uniform Type Identifier (UTI) -- details here: http://www.huw.id.au/code/fileTypeIDs.html
    thanks.
    iMac G3, PowerBook G3 FW   Mac OS X (10.4.5)  

  • Call a Graphical Calc view with input Parameters from a Script Based Calc View

    Hi All.
    I am trying to call a graphical calculation view with input parameters from a script based calculation view as below but getting syntax error:
    SESSION_SAMPLE = SELECT SESSION_CREATE_DATE,SHA256,CA_MEASURE
                                 FROM "_SYS_BIC"."WILDFIRE/CV_SESSION_SAMPLE"
                                 WITH PARAMETERS  ('PLACEHOLDER' = ('$$IP_START_DATE$$',:START_DATE),
                                     'PLACEHOLDER' = ('$$IP_END_DATE$$',:END_DATE));
    START_DATE  and END_DATE are input parameters of the script based calculation view.
    Can anyone please help me with the correct syntax for accomplishing this?
    Thanks,
    Goutham

    Hi Gautham,
    One more option  what i would like you to try is the below option , here i have just changed the order of passing nothing else.
    SESSION_SAMPLE = SELECT SESSION_CREATE_DATE,SHA256,CA_MEASURE
                                 FROM "_SYS_BIC"."WILDFIRE/CV_SESSION_SAMPLE"
                                   ('PLACEHOLDER' = ('$$IP_END_DATE$$','$$END_DATE$$'),
                                  'PLACEHOLDER' = ('$$IP_START_DATE$$','$$START_DATE$$'))
    Regards,
    Vinoth

  • Using ditaval files with XML Author

    I've been evaluating XML Author and am trying to determine how to use ditaval files with it. If I want to save a ditamap as a book for PDF creation, the Prompt for DitaVal File check box is greyed out. Does anyone know why this might be the case? Is the use of ditavals limited to a full implementation of FrameMaker?
    I tried adding PromptForDitaval=1 to the [General] section of the ditafm.ini file to no avail.

    Make sure you are using the latest hotfix for Director (11.5.8) - it is the first to support AS# in Flash. Your SWF members will probably need to be linked to their external files instead of fully imported.
    Or perhaps you're saying that you've met both these conditions and are still seeing problems?

  • Using *.so files with eclipse

    Hey there
    I'm having a little problem compiling an application which uses *.so files with eclipse:
    If I run eclipse from the directory in which the *.so files are present, the application will run.
    However, if I run eclipse from any other directory , the applicationwon't run, stating that the *.so were not found.
    I've placed the path to the directory on my $PATH , and tried to add the following line to the VM variables in the RUN menu:
    -Djava.class.path=<directory _name>
    but to no avail..
    Any ideas?
    Thank You!
    Message was edited by:
    Yossale

    I added it to the LD path, but nothing changed.
    How can I check if eclispe picked up the change?First check that you can now run your program from any directory and then worry about Eclipse.
    Where did you setup the LD_LIBRARY_PATH?

  • Using Word files with audio on a PC

    I was wondering if it were possible for one to use Word files with recorded audio from a Mac on a PC? I'm not sure if it is possible at all, but if somebody knows how to extract the audio, it would be a great help. I used Word 2008 for the Word files.
    Thanks

    If you don't get an answer here, try the forums devoted entirely to the problems of MS apps:
    http://answers.microsoft.com/en-us/mac/forum/macword

  • How to use .keystore file with BEAweb 6?? Help

    Hi,
    Is there a way to use .keystore file with BEA Weblogic 6 or 6.1 ?
    I used keytool to create private key and public key..
    I do not know how to tell weblogic 6 to use it....
    Can this be done through the GUI or do I have to add something to the .xml
    config file for the site?
    Thanks,
    Rob

    "Bobby Digi" <[email protected]> wrote:
    Hi,
    Is there a way to use .keystore file with BEA Weblogic 6 or 6.1 ?
    I used keytool to create private key and public key..
    I do not know how to tell weblogic 6 to use it....
    Can this be done through the GUI or do I have to add something to the.xml
    config file for the site?
    Thanks,
    Rob
    nope. with 7.0 you can do that.
    >
    >

  • "Use RAW files with external editor" greyed out for Photoshop CS2?

    I've just upgraded from iPhoto 5, and the "Use RAW files with external editor" option in the advanced preferences is greyed out when I select Photoshop CS2 as my external editor (back in the General pane).
    It works fine when Preview.app is selected. I can understand that pre-CS2 Photoshop wouldn't be available, but CS2 is capable of editing RAW images.
    Has anyone been able to get iPhoto 6 to send a RAW image to Photoshop CS2 using this preference? I've written an Applescript to do it in iPhoto 5, but I'd rather use something cleaner...
    15" PowerBook G4   Mac OS X (10.4.4)  

    Works great with Photoshop Elements, opens with Camera Raw. The issue is you can't save it so that iPhoto gets the changes.
    You have to save it and then re-import. I tried all permutations of saving it in originals and modified folders in the library. No luck. The only thing I didn't try is to save it as a jpeg over the top of the full sized one iPhoto created on import.

Maybe you are looking for