Execute report output using RUN_REPORT_OBJECT built-in  in  Oracle Forms 10

hello,
am executing report when am pressing the Button
in the WHEN-BUTTON-PRESSED Trigger i wrote the below code
Declare
     v_report_id report_object;
     v_report varchar2(100);
     vjob_id varchar2(100);
     vc_rep_status varchar2(100);
BEGIN
v_report_id := FIND_REPORT_OBJECT('new_test_report');
v_report := RUN_REPORT_OBJECT ( v_report_id );
vjob_id := substr (v_report,31); -- ( vc_ReportServerJob, length(vc_reportserver)
+2, length(vc_ReportServerJob) );
vc_rep_status := REPORT_OBJECT_STATUS (v_report);
IF vc_rep_status = 'FINISHED' THEN
WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid'|| vjob_id||'?server=rep_mohahubkpcomp_ORaHOme_IAS'||'&userid=bedman/bedman@bedman'||'&paramform=no','_blank');
ELSE
message ('Report failed with error message '||vc_rep_status);
message ('Report failed with error message '||vc_rep_status);
END IF;
END;
the above code is executing the output but it is asking the AUTHENTICATION TO OID(Oracle Internet Directory). If i give this id then only the Output is displaying..
in WEB.SHOW_DOCUMENT i mentioned that userid is DB id... if it is wrong
which id i have to specify.
and The report is located in Reportserver . and it is added to Form. in report node.
it is an urgent requirement.
Thanks & Regards
Gagan.

Hello,
Have you created a "reports object" in Forms ?
(watch under the Reports node in the "Object Navigator".
Regards

Similar Messages

  • Sending parameters to reports by using Run_Report_Object

    Hi All,
    How do I send parameters to report while using Run_Report_Object built-in ?
    Thanks in advance.
    Regards,
    Sanjay Kanakath

    hello,
    there is a builtin for setting the parameters :
    from the forms builder online help :
    DECLARE
         repid REPORT_OBJECT;
         report_prop VARCHAR2(20);
    BEGIN
         repid := find_report_object('report4');
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, BATCH);
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE, FILE);
    END;
    you can use      
    SET_REPORT_OBJECT_PROPERTY(repid,
    REPORT_OTHER,
    'deptno=10');
    to set the Other Parameters property of the report object.
    regards,
    philipp

  • Can i use case in query in oracle form 6i

    sir can i use case in query in oracle form 6i
    such as
    select empno, case when deptno=10 then dptno end from emp;
    please gice me

    Hello,
    Does this code compile ?
    If not, I'm afraid that the PL/SQL engine of Forms6i does not recognize this syntax.
    Francois

  • Selection Variables display in report output using BEX ANALYSER 7.0

    HI All,
    I am using BEX Analyzer 7.0 , I want to display the Variables  selected in the selection screen, to be printed in the
    Report Output.when i execute the same query in 3.5 , i am getting all hard coded and selected variable values in report  output.
    But in 7.0 analyzer  i am not getting any filter values.can i know the reason for this ? do i need to do any settings ? how to display all filter values in report output.
    Thanks and Regards,
    Joseph

    Hi Joseph,
    I feel there might be personalization of variables.
    After executing the query click on "Change Variable Values" which is on Bex Tool Bar and there click on personaliztion icon and check if any personalizations are there.
    Regards
    Ravi

  • Change order of key figure is not working in Web report output (using WAD)

    Hi,
    We are using BI 7.0, release 701 and level 008. We are facing problem in WAD (web report output). When ever we do 'Select filter' for key figures and 'change the order' of key figures, it does not get reflected in new order. Though drag and drop of key figures is working.
    Though same change order is working fine in Bex Analyser.
    Kindly suggest some inputs.
    Thanks.

    Hi,
    On Which Service Pack are you on?WAD has this feature of re arranging the keyfigures in BI 7.0 for SPS 14...
    Regards,
    Bhagyarekha.

  • Webi Report Output using dynamic Filter

    Suppose my report output contains doc. number & document date which shows data of one year which filter is applied on global level means at query filters level.
    Now I want to show output of only last 3 months from current date(report run date) on the basis of document date.
    So how to proceed further in such scenario.
    Please reply ASAP.
    Thanks
    Pradip

    You can filter it on the report level or the block level. Highlight either one and then add the filter (make sure the filter window is open).
    Thanks

  • Reports which generate Excel output do not open under ie8/Oracle Forms

    Hello,
    we run Oracle Forms (regardless whether under Jinitiator 1.3.1.22(28) or SUN JVM) and generate Excel output with Oracle Reports (web.show_document). This works well under Internet Explorer 6 (ie6) but not under Internet Explorer 8 (ie8).
    The effect ist that a new browser window opens and closes very quickly without anything further happening.
    I honestly assume that this has not to do with oracle reports but ask this nevertheless in this forum as there might be people which made the same experiences...
    I additionally found out that the same problem exists when gerenating excel or ms word output via a db procedure (with http. modules). There I found that suppressing the question (open/save/cancel) before opening a file (via the windows explorer file type association menu) helped with excel and ms word output (but this might be regarded as a not satisfying workaround).
    The problem persists with other applications' file types than XLS or DOC which are also correctly registered on the client.
    I'm not sure whether mimetypes sent along with the files (which were obviously correct with ie6) play a role in this problem.
    Peter

    Hello,
    Your problem with IE 8 seems to be similar to the one discussed here :
    IE7 windows opened and closed immediatly
    http://www.experts-exchange.com/Software/Internet_Email/Web_Browsers/Interne
    t_Explorer/Q_23304982.html
    You can test the solution suggested :
    We have found the setting that we needed, under the Internet Options
    Security tab, if you select the internet zone, and click the custom level
    button, then scroll down to the Downloads section, the first option is
    Automatic prompting for file downloads, setting this to enable keeps IE 7
    from interfering with this sort of download.
    Example with screen shots :
    http://www.celt.iastate.edu/webct/securitysettings.html
    Regards

  • Using a Sum query in Oracle Forms

    Greedings,
    I have the following query which works fine in PL/SQL but i cant get it working in Oracle forms as i get an error in SUM(SELECT...) . Any quidance on how i should fix my query to work in Forms?
    select
       Sum((SELECT kl.amount
                FROM S03_a_salfldg@oracle_to_sun kl
                WHERE Trim(kl.accnt_code)=Trim(a.acnt_code)
                AND kl.period between 2008001 AND 2008012 AND ROWNUM=1)) AS actual
       from so_budgets_cat a,a01_acnt@oracle_to_sun b,so_budgets_com c,so_budgets d
       where trim(a.acnt_code)=trim(b.acnt_code)
       AND a.cat=c.cat
       AND TRIM(d.acnt_code)=trim(a.acnt_code)
       AND d.business_object=10000103883
       AND d.business_object=c.bus_object
       AND d.business_object=a.business_object
       AND SubStr(d.period,1,4)=Trim(c.PERIOD_Y)
       AND C.period_Y BETWEEN substr(2008001,1,4) AND substr(2008001,1,4)
       GROUP BY a.cat,a.acnt_code,c.com,a.cat_desc,b.descr,d.acnt_code
       order by a.cat,a.acnt_code,c.com,a.cat_desc,b.descrThanks in advance

    And what error would that be? Also where are you using this query? In a from clause query? Also you didn't specify any version infos; as forms has it's own PL/SQL engine there is a possibility that you run in a version problem if the code runs fine in SQL*Plus but fails to compile in forms (e.g. when running Forms 6i against a 10g database). Without those informations answers to your question are based on guessings, and most likely will result in a question-answer ping-pong.
    cheers

  • Using of google map in oracle forms 10g

    Hello,
    We are on Oracle Forms 10g. We have a requirement of calling a Custom Map application (Like Google Maps) from Oracle Forms 10g.
    We want to show the Employee's Hose location in the form when city,street and state is entered.
    We are using the following PJC
    http://forms.pjc.bean.over-blog.com/article-26335020.html
    But when i run it i do not get anything in GMAP.
    I appreciate if I can get some help for the above requirements.
    Thank you.

    hello sir,
    I am running my form from the form Builder.
    I have copied my jar file into E:\DevsuiteHome_1\forms\Java Folder.
    Updated formsweb.cfg file as
    archive_jini= frmall.jar,frmwebutil.jar,jacob.jar,StaticGMap.jar
    and updated default.env Class path
    I got the following error: on java console
    Oracle JInitiator: Version 1.3.1.30
    Using JRE version 1.3.1.30-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Administrator
    Proxy Configuration: Manual Configuration
    Proxy:
    Proxy Overrides:
    JAR cache enabled
    Location: C:\Documents and Settings\Administrator\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading http://polish_dap-2:8889/forms/java/frmall_jinit.jar from JAR cache
    Loading http://polish_dap-2:8889/forms/java/frmwebutil.jar from JAR cache
    Loading http://polish_dap-2:8889/forms/java/jacob.jar from JAR cache
    Loading http://polish_dap-2:8889/forms/java/JCalendarJinit.jar from JAR cache
    Loading http://polish_dap-2:8889/forms/java/jcalendar.jar from JAR cache
    Loading http://polish_dap-2:8889/forms/java/AWTFileDialog.jar from JAR cache
    Loading http://polish_dap-2:8889/forms/java/FileDropper.jar from JAR cache
    Loading http://polish_dap-2:8889/forms/java/statusbar.jar from JAR cache
    Loading http://polish_dap-2:8889/forms/java/lablediconbutton.jar from JAR cache
    Loading http://polish_dap-2:8889/forms/java/dynamicmenu.jar from JAR cache
    Loading http://polish_dap-2:8889/forms/java/ComboMenuBar.jar from JAR cache
    Loading http://polish_dap-2:8889/forms/java/StaticGMap.jar from JAR cache
    Loading http://polish_dap-2:8889/forms/java/personalize.jar from JAR cache
    Loading http://polish_dap-2:8889/forms/java/progressbar.jar from JAR cache
    Loading http://polish_dap-2:8889/forms/java/rolloverbutton.jar from JAR cache
    Loading http://polish_dap-2:8889/forms/java/getclientinfo.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.0
    java.lang.ClassNotFoundException: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

  • How to use Key Board Key In oracle forms to perform a specific task

    Hello Experts,               I am new In Oracle forms.I am using weblogic server 10.3.5 with oracle forms 11g at windows 7.I have a procedure(say check) under program unit.I have a data block.Now I have need to access Check procedure when I press The 'Ctrl+C'(control +'C' key board key). I have to set this functionality for a single form(module) not for all modules.Please suggest me how to do this by using pl/sql in oracle forms if possible. thank You regards aaditya.

    Hi,
    Its a documentary question, please google for hotkey mapping in forms.
    I hope this is helpful to you Enabling Key Mappings

  • Using PJC in Web Based Oracle forms Applications

    Hello,
    Any one could tell how to Configure 10g AS for using date,Key filter etc PJC in
    web based Applications of Oracle forms(having beans/olb,pll attached)
    Avijeet

    please sir help me
    1. I have attached the calendar.pll(remove path=yes),reusablecomponents.olb
    and compiled in Windows based forms builder 9i. worked fine
    2. Put into RHEL based Oracle 10g AS having compiled in the AS(f90genm.sh)
    while putting the .pll and .olb in the current directory where the .fmx is placed
    3. but in the enerprise web when I press button to invoke the Calendar the error is
    ora-06508 unable to find procedure

  • Replacement for Exit_Menu Built-in in Oracle Forms 10g

    Hi All,
    Is there any replacement available for Exit_Menu in oracle forms 10g?.
    Regards,
    Prasad.

    No. Menus built-in associated with full-screen display and character mode have been removed in 10g.

  • Using Safari to connect to ORACLE forms

    Hallo,
    I want to test Safari as a browser to connect to ORACLE forms (10/11). When I try to do this, it tells me that it needs to download and install the appropriate jInitiator. Although it is already installed on my PC (I am using IE and Firefox to connect) I chose to download and install again.
    I have restarted Safari but it still does not connect to ORACLE forms.
    How and/or where do I need to configure Safari to find the correct jInitiator and to connect to ORACLE forms?
    Regards,
    Phlip Pretorius

    Okay. We could do some basic-principles troubleshooting if you like. (The issue with that is that I'm not entirely sure if this is a deficiency in the current Safari versions, or if it's a problem with the Safari versions on your PC ... so there's a chance we'd be beating our heads against a wall trying to "fix" this.)
    The first thing I'd be inclined to check on would be whether this is a systemwide or user-specific issue on the PC. (This isn't a cure in itself, but can give us a heads up on the possible nature of the problem.)
    Head into your User accounts control panel and create a new user account with full administrative rights. Now log out of your usual account and log into the new account. (Don't use fast user switching to move between accounts.)
    Launch Safari in the new account, and try connecting to the forms again. Do you get the error message again? or does it connect okay in there?

  • Problem in using RUN_REPORT_OBJECT built-in ?

    I am trying to use following code to call a report from a menu of a .MMB file.
         my_report_id := find_report_object('my_report');
         my_report := RUN_REPORT_OBJECT(my_report_id);
    This 'my_report' has been developed in report builder independently of Forms 6i.
    Now the problem is that find_report_object is unable to find 'my_report'
    It gives error no. FRM-41219. Can't find report: Invalid ID.
    Pl. guide.
    Tariq

    Hello,
    Have you created a "reports object" in Forms ?
    (watch under the Reports node in the "Object Navigator".
    Regards

  • Control Workflow Report output using Structural Authorization

    Is it possible to control output of Workflow Reports using Structural Authorizatins. E.g. Workflow Admins having access to tcode SWi2_FREQ will be able to see project wide data, but i want to restrict the workflow admins at department level from seeing workflow data for other departments. is that possible using Structural authorizations or any other mechanism?
    My understanding is that Structural authorizations pretty much control PA/PD, and not other modules. I did a quick test,
    1) Created a org structure
    2) Created employees, users, and set up structural authorizations
    Now when users are granted authorization to PA20, they are restricted to what they should be seeing, but when they are granted authorization for workflow admin reports, structural authorization don't seem to work, they are able to see data for workflow triggered for other departments as well. Is that the standard behavior or i am missing something. I don't have enough experience with Structural auth.
    I will appreciate any guidance on this matter.
    Thanks,
    Saurabh

    Arghadip, please explain how this will prevent someone from Norway from looking at the workflow log of a workflow for an employee belonging to the Danish part of the organisation.
    <i>Message was edited by Kjetil Kilhavn:</i>
    To explain a bit more in detail: how does this prevent me (Norwegian) from going into SWI1, SWIA or any other transaction, and looking at data from other parts of the organisation. I don't think it will work.
    I think the only way to achieve this is to either modify SAP's standard code and include some structural authorisation checks - or take the standard transactions out from every user role and create your own wrappers or program copies which basically does the same as the modification would have to do.

Maybe you are looking for

  • PS and AI save file rename behavior

    Illustrator and Photoshop for Windows 8: save and save for web dialog file name fields will select the entire name when I start typing after placing the cursor at any point within the name. I'm only able to type one character before everything gets s

  • Re: Help needed in AP Check Printing R12 XML Tags

    Hi, I am trying to print the 'Overflow' Image on top of the check area in first page instead of 0.00. and nicely align the check print on the bottom of the 2nd page. I am unable to keep the number of invoices stub as static so that check can be stati

  • Help with Video Performance Issues using Flash

    Asking on behalf of a customer who has been unable to get any answers so far - are you able to help? Background: We have a port of our Game Development Kit which allows us to recompile all our games using Crossbridge (http://adobe-flash.github.io/cro

  • IPhone 3Gs OS6 problem, please help.

    I woke up this morning and my iPhone screen said OS6 then "connect to iTunes". It had an image of a USB plug with an arrow pointing to an iTunes icon. It won't let me do anything. I am almost annoyed!!!! I did NOT request the update. All APPs were up

  • CS4 huge dissapointment

    I have been a Macromedia / Adobe advocate and faithful follower since the early years. I remember when I started what now is a small company with 10 employees and purchased my first copy of Flash 2. I happily went to the Adobe online store and purcha