Trying to makea report run when clicking a button on a form

I am trying to run a report by clicking a button on a form (Forms 9i)
I have modified the registry settings for FORMS90_PATH and REPORTS_PATH to include my development directory, and now at last the report is generating. However the command to display the form in a window is not doing anything at all - no error even. Can someone please help, the trigger code for my button is displayed below:
DECLARE
     rep_result VARCHAR2(30);
BEGIN
     SET_REPORT_OBJECT_PROPERTY('INVENTORY_REPORT', REPORT_FILENAME, :GLOBAL.project_path || 'Inventory.rdf');
     SET_REPORT_OBJECT_PROPERTY('INVENTORY_REPORT', REPORT_DESNAME, :GLOBAL.project_path || 'Inventory.htm');
     rep_result := RUN_REPORT_OBJECT('INVENTORY_REPORT');
     --MESSAGE('Rep result: ' || rep_result);
     WEB.SHOW_DOCUMENT('file:///' || :GLOBAL.project_path || 'Inventory.htm', '_blank');
     --WEB.SHOW_DOCUMENT('file:///C:\Temp\Dev\Inventory.htm', '_blank');
END;
thx
adam

Hi,
may be this could be helpful for you:
You have to include the following code to execute a report:
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status Varchar2(20);
BEGIN
repid := find_report_object(report_name);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no');
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,CACHE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,report_server_name);
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := report_object_status(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
rep_status := report_object_status(v_rep);
END LOOP;
if rep_status = 'FINISHED' then
WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
else
error report not exists
end if;
END;
Also you have to create the report server with the command:
"rwserver - install service_name autostart=yes
report server name must be the same that appears in the code above
You must add the report to run in the REPORT object type in your .fmb and put there with the same name
The report server to install ought to be the one and only in you network to avoid mistakes...

Similar Messages

  • Is it possible write code inside pdf form when click submit button in pdf form

    can write code to pdf form
    for eg:
    we have to write code in Excel sheet using Macro features Like that any possible to write code in pdf form
    when i downloaded pdf form from site then filled up the details then click the save button the pdf form will send to the corresponding server then stored in DB
    pls reply me soon

    You have posted in a completely wrong forum. This one is exclusively for participants testing features of the site.
    You may want to try reposting in the appropriate Acrobat forum, which you can find here:
    http://forums.adobe.com/community/acrobat?view=overview

  • I have a DVD I recorded from my tv.  I am trying to make copies and when I insert the DVD I get a message saying it is blank even though it is not.  My question are: Why does my computer think it's blank? And how can I copy a DVD?

    I have a DVD I recorded from my tv.  I am trying to make copies and when I insert the DVD, I get a message saying the DVD is blank, which it is not.  My questions are: Why does my computer think it's blank?  And how can I copy the DVD providing my computer recognizes there is content on it?
    Thanks, Sheila

    TV video typically is copyrighted content.  We'd be breaking several rules trying to help you.  Good luck!

  • How to make it selected when clicked and open popup

    Hi,
    I 've a form in the parent page with many form elements.
    I've 2 radio buttons with values "Yes" and "No". I am opening a modal popup when clicked on "Yes" radio button. The modal popup is opening fine.
    But when I click "Yes", it' s not selected. After modal popup is closed, when I return to parent page, the option "Yes" is still not selected.
    How to make it selected when clicked and open popup?

    Perhaps try moving the application to your preferred desktop and then right-click it's dock icon > options > Assign to This Desktop.

  • How to switch to another page when clicking a button

    I have a main frame consits of many button.What I need to do when click
    a button,it switch to another page?
    Thanx....

    Try this, it should work.
    // not tested
    JButton linkButton = new JButton("<html><a href=\"http://forum.java.sun.com\">link to<br>forum</a></html>");

  • How to display the details of particular order when click on button in sapui5

    Hi Experts,
        How to display the details of particular order when click on button in sapui5?
    I Have a requirement that is i want display all the list of orders coming from backend as shown in image below
    then in that i have a button when i press the button  it need to display the details of particular order as shown in image below
    Please help me .
    Thanks & Regards
    chitti

    Does anyone know how to display the index of current desktop?
    Brute force - - I have written the number of the Desktop directly onto the wallpaper picture I am using for each Desktop  (easy to do with Preview).
    All Desktops are using different wallpaper photos, so they are easily recognized by the color scheme, and in the upper left corner is the number.
    Regards
    Léonie

  • Microsoft Expression Encoder 4 crashes when clicking Start button to begin live smooth streaming to a publishing point created in Windows Server 2012

    Microsoft Expression Encoder 4 crashes when clicking Start button to begin live smooth streaming to a publishing point created in Windows Server 2012, I've got the following error. Can anyone help me with this? Thanks in advance!
    Nombre del evento de problema:    CLR20r3
      Firma del problema 01:    encoder.exe
      Firma del problema 02:    4.0.4276.0
      Firma del problema 03:    4eafa0d7
      Firma del problema 04:    mscorlib
      Firma del problema 05:    4.0.30319.18408
      Firma del problema 06:    52310b91
      Firma del problema 07:    3e69
      Firma del problema 08:    0
      Firma del problema 09:    System.InvalidCastException
      Versión del sistema operativo:    6.2.9200.2.0.0.272.7
      Id. de configuración regional:    3082
      Información adicional 1:    5861
      Información adicional 2:    5861822e1919d7c014bbb064c64908b2
      Información adicional 3:    dac6
      Información adicional 4:    dac6c2650fa14dd558bd9f448e23afd1
    Lea nuestra declaración de privacidad en línea:
      http://go.microsoft.com/fwlink/?linkid=190175
    Si la declaración de privacidad en línea no está disponible, lea la declaración de privacidad sin conexión:
      C:\Windows\system32\es-ES\erofflps.txt

    2014-12-17 16:05:41  Msg 5170, Level 16, State 1, Server \\.\pipe\Microsoft##WID\tsql\query,  Line 2
    Cannot create file 'C:\Windows\WID\Data\SUSDB.mdf' because it already exists
    Looks like somebody forgot to remove the database from the last time WSUS was installed.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • How to hide a TextField when clicking another button

    Hello!
    I've been able to generate a TextField to appear when clicking a button, but when I click on another button, to display some more information, I still have the first TextField displayed.  I've had a look around, but not been able to find anything to help me with getting the first to disappear.  Can anyone provide any ideas for this?
    The code I'm using for displaying the TextField is:
    button10.addEventListener(MouseEvent.CLICK, fl_ClickToPosition);
    var fl_TF:TextField;
    var fl_TextToDisplay:String = "Send disply to the right screen/projector";
    function fl_ClickToPosition(event:MouseEvent):void
    fl_TF = new TextField();
    fl_TF.autoSize = TextFieldAutoSize.LEFT;
    fl_TF.background = true;
    fl_TF.border = true;
    fl_TF.x = 300;
    fl_TF.y = 100;
    fl_TF.text = fl_TextToDisplay;
    addChild(fl_TF);
    Many thanks in advance

    all your buttons should call the same function. 
    because each button probably triggers different text to be displayed, you can use an object or dictionary to associate the buttons and their text:
    // execute these two lines and your function once at the start of your app
    var dictionary:Dictionary=new Dictionary(true);
    var fl_TF:TextField;
    function fl_ClickToPosition(event:MouseEvent):void
    if(fl_TF&&fl_TF.parent){  /
    fl_TF.parent.removeChild(fl_TF);
    fl_TF=null
    fl_TF = new TextField();
    fl_TF.autoSize = TextFieldAutoSize.LEFT;
    fl_TF.background = true;
    fl_TF.border = true;
    fl_TF.x = 300;
    fl_TF.y = 100;
    fl_TF.text = dictionary[e.currentTarget];
    addChild(fl_TF);
    ////////// and for each button use something like:
    button10.addEventListener(MouseEvent.CLICK, fl_ClickToPosition);
    dictionary[button10] = "Send disply to the right screen/projector";

  • Trying to make Reporting Services Configuration Manager work. Or, SQL Server Reporting Services.

    Under Start > Programs > Microsoft SQL Server 2008, I have the following:
    SQL Server Management Studio
    Configuration Tools
    Integration Services
    Import and Export Data
    Under Configuration Tools, I have the following:
    SQL Server Installation Center
    SQL Server Configuration Manager
    SQL Server Error and Usage Reporting
    Reporting Services Configuration Manager
    I tried to enable Reporting Services through 'Reporting Services Configuration Manager' but I don't seem to have much control from this view.  I see two boxes, one named Server Name (and it shows my server name) and the other is named Report Servicer Instance (and this is grayed out).  If I click on the Find box next to Server Name, I get this message:
    Report Server WMI Provider Error: Invalid Namespace
    Details
    Invalid Namespace
    To get the Server Name I right-clicked SQL Server > Properties > General
    Any ideas on how to make Reporting Services Configuration Manager work?  Or, can you please give me more details on how to access "System control" => "Services"?  I'm not seeing it anywhere and I'm not seeing any way to find "Sql Server Reporting Services".  Basically, I'm trying to activate my SQL Server Reporting Services.
    I am using SQL Server 2008 Express Management Studio.  Is SQL Server Reporting Services included in Express Management Studio?  I read, online, that it is, but I can't find it anywhere.
    Thanks again!
    Ryan--
    <input id="gwProxy" type="hidden"><!-- Session data--></input> <input id="jsProxy" onclick="jsCall();" type="hidden" />

    Thanks Jerry Nee!!  This may be exactly what I’m looking for!  I went to this link:
    http://www.microsoft.com/downloads/details.aspx?FamilyID=B5D1B8C3-FDA5-4508-B0D0-1311D670E336&displaylang=en#filelist  
    At the top of the page it says, ‘Microsoft® SQL Server® 2008 Express with Advanced Services’, which seems like this is what I’m looking for, so I downloaded the file named ‘SQLEXPRADV_x86_ENU.exe’
    Then, I cut that from my desktop and pasted it in my C-drive and I get a message that says, ‘this folder already contains a file named ‘SQLEXPRADV_x86_ENU.exe’, would you like to replace the existing file?’
    I’m thinking…what the heck?  Do I already have this thing?  If so, why can’t I see SQL Server Reporting Services?  Maybe I have it now, and I just don’t know how to access the reporting Services features…
    Couple quick questions:
    What’s the difference b/w these two files: 
    ‘SQLEXPRADV_x64_ENU.exe’ and ‘SQLEXPRADV_x86_ENU.exe’? 
    Also, my current version of SSMS, Help > About shows this:
    Microsoft SQL Server Management Studio
    10.0.1600.22 ((SQL_PreRelease).080709-1414 )
    Microsoft Data Access Components (MDAC)
      2000.085.1132.00 (xpsp.080413-0852)
    Microsoft MSXML
    2.6 3.0 5.0 6.0
    Microsoft Internet Explorer
    8.0.6001.18702
    Microsoft .NET Framework
    2.0.50727.3603
    Operating System
    5.1.2600
    Should Server Reporting Services be included in this version?  I think so!!!
    Under Start > Programs > Microsoft SQL Server 2008 > Configuration Tools > Reporting Services Configuration Manager, I see this:
    Connect to a report server instance:
    Server Name: 
    Report Server Instance: 
    My server name is ‘'EXCEL-4J2W8KYNP', which I got from Control Panel > System Properties > Computer Name > Full Computer Name;
    However, when I put that server name in the box, and hit ‘Find’ I get this message: ‘Report Server WMI Provider error’ Invalid namespace
    Details: Invalid Namespace.
    I have no idea what this means…
    Thanks for everything!
    Ryan---

  • Run a function in flash when click a button on HTML page

    dear friends,
    i have loaded my swf in an html/ aspx page. when i click a button in html page, i want to pause my swf movie. Actually swf has another movie clip i want to stop that. any option pls help me. possible send me some sample coadings.. i tried with externalInterface but no result..
    or if i click a button in html page, i want to run a function existing in loaded swf....
    thanks in advance...
    Thanks and Regards,
    Syed Abdul Rahim

    Dear Mr.ned,
    Greetings! i tried to put the id also, still its not working.. any ideas? find below my codings:
    flash code:
    import flash.external.ExternalInterface;
    ExternalInterface.addCallback("methodName", method );
    function method() {
        mytxt.text = "call from java script";
        trace("called from javascript");
    HTML code:
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>jscr_rd</title>
    <script language="javascript">AC_FL_RunContent = 0;</script>
    <script src="AC_RunActiveContent.js" language="javascript"></script>
    </head>
    <body bgcolor="#ffffff">
    <p>
      <!--url's used in the movie-->
      <!--text used in the movie-->
      <!--
    <p align="left"></p>
    -->
      <!-- saved from url=(0013)about:internet -->
      </script>
      <script language="javascript" type="text" >
    function methodName() {
       jscr_rd.method();
       window.alert("hi.. u clicked me?");
    </script>
      <script language="javascript">
        if (AC_FL_RunContent == 0) {
            alert("This page requires AC_RunActiveContent.js.");
        } else {
            AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0','widt h','550','height','400','id','jscr_rd','align','middle','src','jscr_rd','quality','high',' bgcolor','#ffffff','name','jscr_rd','allowscriptaccess','sameDomain','allowfullscreen','fa lse','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','jscr_rd' ); //end AC code
    </script>
      <noscript>
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="400" id="jscr_rd" align="middle">
          <param name="allowScriptAccess" value="sameDomain" />
          <param name="allowFullScreen" value="false" />
          <param name="movie" value="jscr_rd.swf" />
          <param name="quality" value="high" />
          <param name="bgcolor" value="#ffffff" />   
          <embed src="jscr_rd.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="jscr_rd" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />   
      </object>
      </noscript>
    </p>
    <form name="form1" method="post" action="">
    <input name="but" type="button" value="click me" onClick="methodName()">
    </form>
    <p> </p>
    </body>
    </html>
    pls check advice me
    Thanks and Regards,
    Syed Abdul Rahim

  • How to run a subVI without poping up normally, but when clicking a button, popup the front panel?

    I know pop-up the front panel of a subVi when called by selecting VI Properties>>Windows apperence.
    But what I need to do is: always run the SubVI inside the parent VI as the nornal subVI do without poping up. But when I click a button"show front panel", the SubVI popup the front panel.
    Is there anyway to do this?
    Thanks,

    ossoo,
             You can use a static VI reference to the subVI and then use the Front Panel Open invoke method to show the front panel when you want. I have attached two VIs that show this. I saved these VIs for LabVIEW 2009 so you should be able to open them up and run them in 2009 or later. Add.VI is the subVI that you are calling. The Caller.VI is just a While Loop that contiually calls the Add subVI. Inside of the While Loop is also a Case Structure with a Static VI Reference (you might need to change the path this is pointing to after downloading the VIs to your computer for this to work) and the Front Panel Open invoke method. You can run the Caller.VI and interact with the main Front Panel as normal and see the subVI but then you can click the Open subVI? boolean button and it will open the subVI's front panel. You can continue to interact with the main front panel and see the values update on the subVI's front panel as well. You can just close the subVI's front panel when you are done viewing it. Does this help?
    Grant H.
    National Instruments
    LabVIEW Product Marketing Manager
    Attachments:
    Caller.vi ‏19 KB
    Add.vi ‏23 KB

  • Make Video Pause When Clicked?

    Hi, I have a flash video that is set to autoplay when the page loads. We've just implemented thickbox/lightbox system on it now so when you click on the video it enlarges into that new frame. Problem is, when that's done the video/audio is still playing while the video in the thickbox is playing too. This leading to ineffective listening. Does anyone know a code that would trigger the video to pause when clicked anywhere on the video screen?
    Right now the videos being tested at this link - http://edlevinjewelry.com/indexTEST.html
    I don't currently have the video linked up to lightbox, just a link above the video to expand.
    With FLVPlayback,this is my current code (it's currently coded and set up so the video autoplay starts at 52 seconds)...
    import fl.video.MetadataEvent;
    import fl.video.VideoProgressEvent;
    import fl.video.*;
    my_FLVPlybk.addEventListener(VideoEvent.COMPLETE, rewind);
    function rewind(eventObject:VideoEvent):void {
        my_FLVPlybk.seek(52);
        my_FLVPlybk.play();
    var fp:FLVPlayback = my_FLVPlybk;
    fp.addEventListener(VideoProgressEvent.PROGRESS, videoProgressHandler, false, 0, true);
    fp.addEventListener(MetadataEvent.METADATA_RECEIVED, metaDataHandler, false, 0, true);
    fp.autoPlay = false;
    var startSeekTime:Number = 52;
    var videoDuration:Number;
    var videoSeeked:Boolean = false;
    function metaDataHandler(event:MetadataEvent):void {
         if(event.info.duration != null){
              videoDuration =event.info.duration;
    function videoProgressHandler(event:VideoProgressEvent):void {
         var fp:FLVPlayback = event.currentTarget as FLVPlayback;
         var bytesLoaded:Number = event.bytesLoaded;
         var bytesTotal:Number = event.bytesTotal;
         if( !isNaN(videoDuration)){
              if( (bytesLoaded/bytesTotal) >= ( (startSeekTime+4)/videoDuration) && !videoSeeked ){
                   videoSeeked = true;
                   fp.seek(startSeekTime);
    fp.play();

    kglad -
    When I plugged in the code below, it had these 3 errors:
    1119: Access of possibly undefined property toggle through a reference with static type fl.video:FLVPlayback.
    source - if(!my_FLVPlybk.toggle){
    1119: Access of possibly undefined property toggle through a reference with static type fl.video:FLVPlayback.
    source - my_FLVPlybk.toggle=!my_FLVPlybk.toggle;
    1119: Access of possibly undefined property toggle through a reference with static type fl.video:FLVPlayback.
    source - my_FLVPlybk.toggle=!my_FLVPlybk.toggle;
    I put it in the actionscript, was there anywhere specific I was supposed to plug it with the rest of the code?
    Thanks for helping with this.
    - Sean
    = = =
    stage.addEventListener(MouseEvent.CLICK,videoF);
    function videoF(e:MouseEvent){
    if(!my_FLVPlybk.toggle){
    my_FLVPlybk.pause();
    } else {
    my_FLVPlybk.play();
    my_FLVPlybk.toggle=!my_FLVPlybk.toggle;
    = = =

  • Quiting when clicking a button.

    One of my clients is having a strange issue. I've created a lesson for them and each slide has a button at the bottom labled "Resources".  When the "Resources" button is clicked it opens a document and makes a "Click To Contuine" button visible.  The "Click To Contuine" button is programed to pause the lesson until the user clicks it. I've tested it a thousand time and it work perfectly. When they run it under their LMS (SAP Learning Solution 602) they click the link and open the doc, then they close the doc and click the "Click To Contuine" button it closes the lesson.
    Any ideas on what's going on?
    Thanks!

    One of my clients is having a strange issue. I've created a lesson for them and each slide has a button at the bottom labled "Resources".  When the "Resources" button is clicked it opens a document and makes a "Click To Contuine" button visible.  The "Click To Contuine" button is programed to pause the lesson until the user clicks it. I've tested it a thousand time and it work perfectly. When they run it under their LMS (SAP Learning Solution 602) they click the link and open the doc, then they close the doc and click the "Click To Contuine" button it closes the lesson.
    Any ideas on what's going on?
    Thanks!

  • Importing data from excel  ... when clicking finish button nothing happens

    Version 3.1/32bit version ... I am trying to import data from excel but when i clicki finish button nothing happens. any idea. this used to work fine on the older version?

    Hi,
    Generally speaking, the data import from an xls or xlsx format Excel file works. You need to provide more information about your environment and the Excel file itself -- size, data types of the columns, number of worksheets, etc.
    I recommend running sqldeveloper.exe (not sqldeveloperW.exe) from a command line window. Repeat your import test and see if any stack trace appears in the console. For example, trying to open a 0 byte xls file results in a stack trace like this:
    java.lang.NullPointerException
            at oracle.dbtools.raptor.data.readers.XLSReader.openFile(XLSReader.java: 524)
    ...Regards,
    Gary
    SQL Developer Team

  • When click on button - Number in a text field increase by 1

    Hello!
    I have no coding experience and want to create a game like Cookie Clicker. An idle clicker game.
    So I have my button and a text field which says "0$". How can I make it, that when I click on the button the "0$" turns to "1$" and so on... ?
    I use Actionscript 3 as a file type, I hope this is correct.
    I hope someone will help me.
    Greetings!

    I will mark your answer when it works. Now I get no error report, but when I start the game its like this:
    When I click on the button its like this:
    When I click again on the button, it is only the $ symbol again and it doesn't change after.
    Can I send you my file somehow, so you can check?
    Thanks for all your help so far!

Maybe you are looking for

  • Web Service is not triggering  using Adobe Interactive Form

    Hello Experts,   I know this is a common topic now , but the problem I am facing, no thread help me to solve that. Problem:-- My requirement is to create an adobe form , in which   -> an input field is needed,and some  description is needed. I used b

  • Deployment failure in WLS 8.1 sp2

    Hi, Iam getting the following EXCEPTIONS while deploying my war file. Iam getting this exception………………in the log file too. <Jun 23, 2004 3:05:14 PM EDT> <Error> <HTTP> <BEA-101018> <[ServletContext(id=19521401,name=myPortal,context-path=/myPorta l)]

  • Macs & Open Networks

    Ok, I admit that I know very little about networking, and I'm sure someone will correct me if I'm wrong about any of this: There is an open wi-fi network on our installation, and PC users are not having a problem connecting to it. However, my MBP and

  • I would like to connect airport express via ethernet

    I have a airport Extreme connected to a cable modem and all my devices connect to the internet this way. I also have 3 airport express which I use to extent the network and route music to three different rooms. This has been wireless but because I ha

  • Windows 8 crashes and is stuck in blue screen help menu after trying to update to 8.1?

    Hi all,after recieving a prompt yesterday by windows to update to 8.1 (about time!), I turned on my computer this morning to see that it was stuck on the HP boot logo. After 5-10 mins, I realised it must have started incorrectly so i shut it back dow