Report not working from forms.

Hi
we are beginners and please help us.we have installed in LAN database 11g on vista
and application server 10g on os 2003.
we are developing some applications from our developer pc in vista and using developer suite 10g.
we want to generate some reports and call them from forms.
This is the code in when button pressed.
DECLARE
repid REPORT_OBJECT;
repjobid VARCHAR2(200);
repstatus VARCHAR2(200);
repjobno number;
repserver VARCHAR2(100) := 'rep_mbxserver_FRHome1';
BEGIN
repserver := 'rep_mbxserver_FRHome1';
/* Check to see if forms application is WEB deployed */
IF get_application_property(user_interface) = 'WEB' THEN
message('web');
repid:= FIND_REPORT_OBJECT('REP');
message('report found');
/* Set Report parameters given WEB deployment */
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,'e:\users\pro\reports\emp.rdf');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,repserver);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
/* DESFORMAT could be HTML, HTMLCSS or PDF here */
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'HTML');
/* Run the report */
repjobid := RUN_REPORT_OBJECT(repid);
message('run report');
/* Check the report status */
repstatus:=REPORT_OBJECT_STATUS(repjobid);
WHILE repstatus in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
repstatus := report_object_status(repjobid);
message('rep status');
END LOOP;
IF repstatus='FINISHED' THEN
message('REPORT WAS CORRECTLY RUN');
/* Display the report output in the client browser */
repjobno := length(repserver) + 1;
WEB.SHOW_DOCUMENT ('http://printer1.mbxnet.com:8889/reports/rwservlet/showjobs?server='||repserver,'_blank');
copy_report_object_output(repjobid,'\\ansu\mtb-erp\emp.lis');-- (Trying to copy to local folder)
message('File copied to local pc');
/* If report has failed display message to user */
ELSE
message('REPORT FAILED WITH STATUS: '||repstatus);
END IF;
message('222222222222');
ELSE
/* Else if forms application is Client-Server deployed */
/* Set Report parameters given Client-Server deployment */
message('client server');
repid:= FIND_REPORT_OBJECT('rep1');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,'e:\users\pro\reports\emp.rdf');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,RUNTIME);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,file);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,'\\printer1\mtb-erp\emp.lis');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'dflt.prt');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,repserver);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=NO');
/* Report to be executed via Reports Background Engine, not the 'new' Reports Multi-Tier Server */
/* Destype SCREEN or PREVIEW can be used here */
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,SCREEN);
/* Run the report */
repjobid := RUN_REPORT_OBJECT(repid);
copy_report_object_output(repjobid,'\\printer1\mtb-erp\emp.lis');
message('File ok');
--     host('c:\mtb-erp\ansu.lis');
END IF;
END;
we are struck and unable to proceed.Actually when we run the report from report builder it works.we are calling the report from application server.
Also if we replace the above web.show document with this statement it works but even though it gives FRM-41214 error.
web.show_document('http://ansuya.mtbnet.local:8889/reports/rwservlet?destype=cache&desformat=html&report=\\mbxserver\developers\emp.jsp&userid=scott/tiger@mbxsql&paramform=no');
One more doubt , is it possible if we don not want to show the report in a browser in case of client server locally in lan
but just generate the report from forms and save it in local folder like we do in previous old versions.If so please guide us.
Thanks in advance.

Hello ansu,
Did you solve this problem ?
Regards,
Felipe.

Similar Messages

  • 10g Report not running from Forms if called thru paramform on other domain

    Hi...
    I'm using Dev10g Rel.2....If I call a report with paramform=no and pass it a value from forms then report runs well. but if I call report thru parameter form and pass value from parameter form the report doesn't run with error:
    The webpage cannot be displayed.
    Interesting fact is that If I call the report from a client on same domain as that of Application Server then it runs even thru paramform. I've also entered the application server I.P and name on other domain's client but no way. Can u guess whats the problem there???

    It sounds like a Firewall permissions issue to me. You might want to have your Firewall admin watch the firewall as you run your form to see if the packets are getting intercepted and blocked.
    Hope this helps,
    Craig
    If a response is helpful or correct, please mark it accordingly.

  • SQL Code not working in Forms Developer?

    Hi all,
    I'm using Oracle 10g and I have th following code running on iSQL+ but not working on Forms and I got the following erro
    The SQL code:
         select returningreason
            from (
                     select returningreason,
                     dense_rank() over (partition by 1 order by count(*) desc) as drnk
                     from returned_goods
                     group by returningreason)
           where drnk = 1;And the error happens near the word over to the right and the error statement is:
    Error 103 at line 18, column 19
       Encountered the symbol "(" when expecting one of the following:
             , formThanks in advance :)

    Triggers are compiled in forms so need to use only the features available to forms, which doesn't include all the new stuff in the database.
    select over partition
    NVL2They don't work in forms and reports too.
    Also if you use them in record Group
    Forms/SQL Compiler was not lined up to the database(10G).
    Meanwhile,for example. Pipelined TABLE and relative Select work in Reports AND Forms.

  • Reports 10g calling from forms 10g

    try reports 10g calling from forms 10g ,but I not do.
    Programme have frm-41213 unable repserver.. error and I am not start up oracle reports server from services. please help me.

    Dear Lida;
    i use this code
    rwserver -install repsername
    but in release 3 it is not work and i had to write it like this
    rwserver server=repservname
    the first code make the report server work as service could u tell me how the first code work with realease 2 but in realeas 3 not working ?
    and thkx alot in advance
    regards
    Reda El Mitwally

  • Ole2 commands not working in forms 10g

    OLE2.set_property(Application, 'Visible', true);
    above statement not working in forms 10g;

    Try to use the OLE2 fuction from WEBUTIL library. There is function in webutil CLIENT_OLE2.
    -Ammad

  • HP Pavilion dv6-6181TX. System Recovery is not working From HP Recovery Manager.

    HP Pavilion dv6-6181TX
    Product No. A3U49PA
    Genuine Windows 7 Home Premium 64
    (but i upgraded it to windows 7 ultimate)
    System Recovery is not working From HP Recovery Manager. so i cant restore my laptop to its original factory condition. (Genuine Windows 7 Home Premium).
    so when i restart my computer and press Esc and then choose F11 i get this message :
    "Windows failed to start. A recent hardware or software change might be the
    cause. To fix the problem:
    1. Insert your Windows installation disc and restart your computer.
    2. Choose your language settings, and then click "Next."
    3. Click "Repair your computer."
    If you do not have this disc, contact your system administrator or computer
    manufacturer for assistance.
    File: \Boot\BCD
    Status: 0xc0000225
    Info: An error occured while attempting to read the boot configuration data."
    i saw this from the forum
    http://h30434.www3.hp.com/t5/Notebook-Recovery/Hp-recovery-manager-problems/m-p/2395473/highlight/tr...
    Had the C partition been split/shrunk to form a new partition previously?
    Does disk management show the HDD as basic or dynamic? (Start>Right-click Computer>Manage>disk management on the left).
    If it has been switched to dynamic (Windows does this automatically when more than 4 partitions are present on the disk), then the F11 recovery partition won't function until it is restored to basic, but I would like to confirm that is the scenario before providing those steps.
    The Disk management shows that my HDD as Dynamic, what should i do then if this is the case and the possible solution to my problem?
    please help me & Thank you for your time,
    This question was solved.
    View Solution.

    If you have more than 4 partitions you will need to delete the extra partition/partitions, then convert the hdd back to Basic.
    Older versions of Partiton Wizard Free work: 
    http://www.sevenforums.com/tutorials/26829-convert-dynamic-disk-basic-disk.html
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • File- Print not working from SQL Developer 1.2.1 Build MAIN-32.13

    File->Print not working from SQL Developer 1.2.1 Build MAIN-32.13.
    I downloaded sqldeveloper-1.2.1.3213.ZIP and extract to a local directory. From the extracted directory I ran ..\sqldeveloper\sqldeveloper.exe from Windows XP sp2. The program itself seems to run just fine but File-Print doesn't do anything. In Help-About, Java Platform is reported as 1.5.0_06 and Oracle IDE is 1.2.1.3213. I'm not sure where to look for what is causing the problem.
    Thanks

    I hadn't tried CTRL-P before but I did today. On the first attempt, I saw a small jump in the memory usage for sqldeveloper.exe as reported in Windows Task Manager. Otherwise, there was no change. A second CTRL-P in the same session produced a further bump but subsequent attempts in the same session produced no further change in CPU or Memory Usage.
    Using Task Manager to monitor this further, I tried File->Print again and saw that sqldeveloper would periodically climb to 1 or 2 percent CPU and consume a little more memory. After a minute or so, though, all activity stops again.
    I do not get a print dialog box from SQLDeveloper using either CTRL-P or File->Print

  • CDR report not working

    Hi,
    We have LYNC 2013 and Monitoring is enabled. the CDR report is not working. even User Activity summary for telconferencing and for audio, reports not working.
    Kindly suggest troubleshooting steps.
    Can we have any SQL query to fetch the report from database?
    Thanks
    jitender

    Hi Raju,
    From Monitoring server , CDR report is not working. Even "User Activity Report" not working and giving below error for "Telephony Conference" and as well for "A/V Conference"
    " No results match the report filters. Change the filter values and submit the query again."
    Thanks
    jitender

  • IPS event monitor and reports not working

    Dear after upgrading my IPS from E3 to E4  the event monitor  and reports not working, can you please advice my to solve this issues

    Hi All,
    Filter settings below:
    The filter works partially as I don't get alerts on the IPS itself.
    Firewall LOG:
    4          Feb 14 2014          15:33:22                              39715                    514          IPS requested to drop UDP packet from SOURCE_VLAN_NUMBER:/39715 to DESTINATION_VLAN_NUMBER:/514
    IPS LOG (when enabled):
    evIdsAlert: eventId=1352793300955167909  vendor=Cisco  severity=low 
      originator:  
        hostId: SSM02 
        appName: sensorApp 
        appInstanceId: 1192 
      time: Feb 14, 2014 15:33:22 UTC  offset=0  timeZone=GMT00:00 
      signature:   description=IP Fragment Too Small  id=1206  version=S212  type=anomaly  created=20030801 
        subsigId: 0 
        sigDetails: Too many small IP fragments in datagram 
      interfaceGroup: vs0 
      vlan: 0 
      participants:  
        attacker:  
          addr: 172.x.x.x  locality=OUT 
          port: 39715 
        target:  
          addr: x.x.x.x  locality=OUT 
          port: 514 
          os:   idSource=unknown  type=unknown  relevance=relevant 
      alertDetails: InterfaceAttributes:  context="single_vf" physical="Unknown" backplane="GigabitEthernet0/1" ; 
      riskRatingValue: 50  targetValueRating=medium  attackRelevanceRating=relevant 
      threatRatingValue: 50 
      interface: GigabitEthernet0/1  context=single_vf  physical=Unknown  backplane=GigabitEthernet0/1 
      protocol: udp 
    Our next step is to make a service policy exception on the firewall itself. We are also considering reloading the IPS device or at least the analysis engine.
    Thanks for all your help so far. Any more suggestions are most welcome. I'll keep you up to date.
    Regards
    Mariusz

  • Asm link not working from kolkata

    hi
    http://www.oracle.com/technology/tech/linux/asmlib/install.html
    this link is not working from india / kolkata.
    what to do?

    javadev991 wrote:
    Now working.
    What?
    Just cross check certain things
    - The servlet you specified in Form Action is correct
    - The Form Method must be POST not GET
    - The query string param you are specifying in URL which is classifiedsearchtype, You are trying to get the same param in the servlet. It is case sensitive.

  • My iPhoto dose not work from 0:00 Sunday. I was deleting and downloaded again but dosn't work! Why?

    My iPhoto '11 dose not work from 0:00 Sunday. I was deleting and downloaded againg but the problem is same.

    Sorry but we need more to go on thatn it does not work
    what happens? what does not happen? what error messages to you get? if it crashes post the first 50 lines of the carash report
    LN

  • Interactive Reports not working with APEX listener

    Hi,
    I have posted this question APEX listener forum couple of weeks ago but very few responses.
    If any one from here can help then it would be great.
    Interactive Reports not working with APEX listener
    Best Regards,
    Baig

    Sorry for late response.
    It was a firewall issue

  • Dashboard link is not working from BI Publisher

    Dashboard link is not working from BI Publisher. Please let me know How to fix this problem.

    Please somebody guide me.
    Dashboard link is working fine from the Apps Server Machine. But the link is not working from other machines. Do I need to setup machine.domain:<port_number> any where.
    Thanks,
    Vara

  • My mail is not working from my ipod i looked it up it says it trouble shooting but its not giving me anything to fix it can someone help me?

    My mail is not working from my iPod touch. I looked it up and it says it trouble shooting? But they are not giving me anything to fix it. I restored my iPod touch to see if that worked and it didnt. Can anyone help me?

    Can you access the account from another device?
    Without you telling use the email provider and type of account we can't really help you.

  • The file to download the app for Android is not working from my phone--it says that the file isn't there. However it does see the one for the Iphone (even though it can't use it). I'm very computer literate and am pretty sure the problem is on your end.

    The file to download the app for Android is not working from my phone--it says that the file isn't there. However it does see the one for the Iphone (even though it can't use it). I've tried it multiple times and continue to get the same message: "NOT FOUND The requested item could not be found". I also tried through the Market application on the phone but ended-up with the same result.
    I'm very computer literate and am pretty sure the problem is on your end. If this is the case then no one can download the app. I considered that perhaps because it's still in Beta that it was removed due to some other type of software issue. I would really like to use Firefox on my new Droid (2.0); when with this be available?

    Firefox will not appear in the Market for most phones with incompatible hardware. You can check if your phone is supported here:
    https://wiki.mozilla.org/Mobile/Platforms/Android
    Even on some supported devices, a bug in the Market software prevents Firefox from showing up. This may be related to the fairly recent Android Market app update. If you go to Settings/Applications/Market and choose "Uninstall" you can uninstall the update, and then search for and install Firefox from the marketplace.
    Or, if you have a supported phone, you can download the app directly by typing this address into your phone's browser: http://bit.ly/fxbeta3
    (Note: To download the app directly for an AT&T phone, you will have to search for instructions on "sideloading" the APK file, since AT&T disables the option to install from non-Market sources.)

Maybe you are looking for

  • There was a problem connecting to the server message - displayed when pressing printer email address

    HP Photosmart B210, Windows 7...was able to print from iphone yesterday but now will not print. One the face of the printer if the ePrint symbol is pressed for the printer address the message "there was a problem connecting to the server" appears. I

  • InDesign to PDF  - Client wants clickable ads

    I'm laying out a magazine with ads in InDesign CS4 that will be converted to PDF for online distribution. The client would like the reader to be able to click on the ads to be taken to the advertiser's website. I'm not making up the ads myself; I'm j

  • Watching videos of TV shows

    what do i need to get my ipad to watch videos of TV episodes? ipad message says "this video format is not supported"

  • Error when installing new license key

    Hi, I am trying to install the license key for the Netweaver 7.01 Basis Test system with saplicense -install ifile=NSP.txt and am getting the following error message: SAPLICENSE (Release 701) ERROR ***      ERROR: Can not set DbSl trace function     

  • VS2013 - Automated builds fail because of VS configuration corruption

    I have a project which builds just fine, when run from the IDE (and the IDE appears to run fine without giving any visible errors). If I run it from PowerShell, I get errors. Fortunately, the script turns on logging. It looks like Visual Studio's man