WEB.SHOW_DOCUMENT parameters trouble

Hi everyone,
I'm trying to run a report from a form by a submit button in the form. It does work, I mean, I can see the report after pressing the button, but it works as if there was no parameter, it ignores it completely. I don't really know how to use the RUN_REPORT_OBJECT and the WEB.SHOW_DOCUMENT. My parameter P_SOC is a number and I'm using 10g for the DB and also for forms and reports. Can anyone help me?
Thanks in advance!
DECLARE
LIS_PARAM PARAMLIST;
NOM_PARAM VARCHAR2(13):= 'P_SOC';
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
BEGIN
     LIS_PARAM:= GET_PARAMETER_LIST(NOM_PARAM);
     IF ID_NULL(LIS_PARAM) THEN
          LIS_PARAM := CREATE_PARAMETER_LIST(NOM_PARAM);
     ELSE
          DELETE_PARAMETER(LIS_PARAM,'P_SOC');
     END IF;
     ADD_PARAMETER(LIS_PARAM,'P_SOCIEDAD',TEXT_PARAMETER,:SOC.IDSOC);
     repid := FIND_REPORT_OBJECT('CT');
     SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'P_SOC=:PARAMETER.P_SOC');
     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,'html');
     SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_nan');
     v_rep := RUN_REPORT_OBJECT(repid,LIS_PARAM);
     WEB.SHOW_DOCUMENT('http://nan:8889/reports/rwservlet/getjobid'|| substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=rep_nan','_blank');
END;

Hi,
You can use RUN_REPORT_OBJECT or WEB.SHOW_DOCUMENT.
Run reportobject is basically similar to run_product in the old version of forms and requires that the reports file is listed within the form (under reports).
Web.show_document is different. With this you can just take the URL and run the report outside your application (should you wish). This does require an entry into the cgicmd.dat file on the app server (under reports/conf).
Check out the help in Forms for details of these commands.
HTHs
L :-)

Similar Messages

  • Reports 6i Encrypting query string parameters using Web.Show_Document()

    I am developing Forms 6i form which initiates a report on our reports server (using rwcgi60) using a call to Web.Show_Document(). However, we pass several parameters to the report from the form which we'd like to encrypt, otherwise they're likely to be abused.
    For example, I might have something like:
    http://www.myserver.com/dev60cgi/rwcgi60?report=MYREPORT&p_unsecure_param=1234
    I am aware of the following document which describes how to use a JavaBean implmentation and client cookie to hide sensitive information using a client side cookie - but this appears to be specific to hiding user logon information - can it be extended to cover any parameter on the query string?
    http://www.oracle.com/technology/products/forms/pdf/secure_webshowdoc_rep6i.pdf
    ...or will I have to provide my own solution - e.g. perhaps using the DBMS_OBFUSCATION encryption and decryption functions to pass an encrypted parameter string to the report, and have the report decrypt the string on the reports server....
    I should probably point out that the parameter values are dynamic - not static, so adding an entry to cgicmd.dat isn't going to solve my problem.
    Any ideas?
    Shane

    Frank,
    Thanks for confirming this - this is what I had suspected - just wanted to check that there wasn't already some inbuilt functionality which I had overlooked. DBMS_OBFUSCATION_TOOLKIT it is then!
    Shane

  • Troubles with web.show_document and internet explorer

    Hi folks, this is my problem
    I generate a text file on forms and then I use this to open the document in a new window
    web.show_document( nome_ver_, '_BLANK' );where nome_ver_ is a variable with the url
    Using mozila firefox this run fines and a new window is open and everything goes right.
    But in some machines with the internet explorer the new window appear and then close in milliseconds. I try different's versions of IE on the machine and still have the problem...
    Anyone see this bug?
    I try to disabled everything on secure on IE and still nothing...
    Sorry for my bad english and thanks in advance
    Luis

    You are generating a text file you say. Is it a pure text file? Or is it html that you wnt the user to view in the browser?
    In what versions of IE is this happening in?

  • Web.show_document working with abnormal parameter

    I was opening some web pages from forms 10g using:
         web.show_document(url, '_blank');
    in a button pressed trigger. That worked fine, except it continually opened new pages. If the button is pressed 10 time, 10 pages opened one after another. I was giving warning to the user about this quirk.
    Then while debugging I happened to edit the code and change it to:
         web.show_document(url, '_blank;');
    With the semicolon at the end of _blank parameter the pages now open in one browser window, replacing itself if the button is repeatedly pressed. This is exactly the functionality I want. However, I can't find any documentation that uses any parameter for web.show_document other then the standard ones without semicolons included.
    Does anyone know if this is safe to do?

    Hi,
    You can use below different parameters depends on your requirements. To view documentation press ctrl+h in forms builder,  use search feature to locate the topic.
    '_self' Causes the document to load into the same frame or window as the source document.
    '_parent' Causes the target document to load into the parent window or frameset containing the hypertext reference. If the reference is in a window or top-level frame, it is equivalent to the target _self.
    '_top' Causes the document to load into the window containing the hypertext link, replacing any frames currently displayed in the window.
    '_blank' (default) Causes the document to load into a new, unnamed top-level window. Note that these targets are lowercase and enclosed in single quotation marks.
    hope this help you.

  • Problem with web.show_document with Jinitiator and Firefox

    Not sure Firefox 2.0 is officially certified with Forms 9.0.4.1 and Jinitiatorbut regardless we have some users who want to use this combination. Everything seems to work fine except for the calls to web.show_document which opens a new browser window and displays some html etc.
    The problem is that even though the client Forms JVM is Jinitiator (1.3.1.18 or .21) when the call to web.show_document occurs somehow the Sun Java Plugin starts and having the two JVM's at once causes a fatal crash in Firefox. Can anyone suggest a way to preven the second JVM from opening?
    When the user uses the Sun Plug as the client Forms JVM there is no problem as the second JVM does not open. Unfortunately some users insist on Jinitiator with Firefox hence the problem. -quinn

    James,
    This whole applet embedded in a browser model for webforms is driving us batty at times. The list of problems includes:
    1) Users are constantly tempted by browser controls and accidentally do all sorts of things to get them in trouble. This has included but not limited to using the navigation arrows, jumping off to read their email in the same window as the form and returning to a dead forms session, minimizing, resizing, blurring off to another window and then returning back by clicking on the title bar of the browser and wondering why the form doesn't tab etc.
    Sure hobbling the browser by opening with limited functionality is a possibility but not a complete solution.
    2) New versions of browsers seem to break something. Both IE 7 and Firefox 2 have their own problems with web.show_document, especially file associations such as CSV and DBF and trying to open things in Excel in IE7.Firefox seems to have less problems for some yet some some oddities like the one that started this thread (and 2.0 opening new windows in tabs by default instead of windows).
    3) JVM jigsaw puzzle. Is it Jinit or Sun, which versions? Which combinations of browser version and JVM works.
    4) General fragility of the whole architecture. Running a client JVM in a web browser on top of a PC Operating system connectiong to a forms server over a network embedded in a Java Container server on a full blown web server running on a unix operating system is pushing the bubble. Throw in the mix that any of these components can be combined in numerous ways makes one wonder how it works as well as it does.
    Still users randomly getting dropped connections to forms server (network gltches?). General sluggishness (poorly written forms?). Periods of users with unduplicatable errors primarily network related it would appear.
    General feel that it is not rock solid stable. Perusing metalink documents on performance and tuning gives too much and too general info to troubleshoot so just shrug shoulders and say 'network problem'.
    What's the solution? Java webstart would seem to help at least with the browser realted issues but is that supported and documented how to use yet. Also we'd lose web_show_document which is critical (could it be replaced by webutil calls to open browser?).
    -quinn

  • WEB.show_document with MAILTO in IE8 - Navigation Cancelled message

    When generating an email from within Oracle Forms 10g using:
    WEB.show_document('mailto:'||'[email protected]'||'?subject='||'test msg'||'&body= 'test body','_SELF');
    An IE8 window pops up with a message saying 'Navigation to the webpage was cancelled'.
    The test email does appear separately, but if the email is generated a second time, the email will not be generated unless the window saying 'Navigation to the webpage was cancelled' was manually closed before the second email generation.
    If we try the same test in our IE7 browser, the email pops up without an IE window coming up in the background (as expected).
    We have tried changing the last parameter to _BLANK and also excluding it altogether, neither option works properly in IE8.
    What code can I use to generate an email within IE8 & IE7 without the extra browser window appearing in the background?

    Ok - so I've had a TAR logged with Oracle since before asking my colleague to post the same query on here.
    As of a couple of days ago Oracle were able to reproduce the same issues using a simple test case. Yesterday they came back with the first part of a fix and updated "Note 1075355.1 - How To Use WEB.SHOW_DOCUMENT To Open Multiple Pages In The Same Browser" accordingly.
    Basically if you are running IE8 on Windows XP and want to use the WEB.SHOW_DOCUMENT with mailto to launch an e-mail you need to specify a named window instead of the regular parameters which are: self, parent, top, blank
    So you would need to use something as below where the word CUSTOM can be anything.
    WEB.show_document('mailto:'||'[email protected]'||'?subject='||'test msg'||'&body=' ||'test body','CUSTOM');
    However this does not appear to fix the issue for IE8 when running on Windows 7.
    Below are other security settings that were recomended and we tried (but I don't think they had any effect):
    1. In IE 8 go to menu Tools -> Internet Options -> Security -> Sites ->
    - Add this website to the zone :
    mailto
    - Uncheck "Require server verifcation (https:) for all sites in this zone."
    - Click Add
    2. In IE 8 go to menu Tools -> Internet Options -> Security -> Custom level
    - Set 'Display mixed content' to Enable.
    Anyway hopefully this information may be useful to anyone else experiencing the same issues - I'm kinda surprised that this hasn't come up and I am interested to hear how other people send email from Forms 10G or 11G applications?

  • Bad initial encoding of report after WEB.SHOW_DOCUMENT(MyURL,'_blank')

    Hi,
    I use Developer9iDS 9.0.2 with installed Patch1 on Win2000 with IE 6.0.
    I need an HTMLCSS report in lithuanian language and want to prewiev them in new window in browser with Baltic(Windows) encoding.
    When I produce my report with RUN_REPORT_OBJECT and parameters REPORT_DESFORMAT=HTMLCSS and REPORT_DESTYPE=CACHE
    I found, that my report is OK in cache with all needed lithuanian characters.
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=WINDOWS-1257">
    </head>
    <body dir=LTR bgcolor="#ffffff">
    </body></html>
    But when I open it with WEB.SHOW_DOCUMENT (MyURL/getjobid'||vJobId||'?server=<myserver>,'_blank');
    my browser shows it in bad encoding for first time and every time I must set encoding manualy to Baltic(Windows).
    That's will be very difficult for my users!!!
    I found in source that another one HTML document stands at the begining of my document followed by my document
    <html>
    <head>
    <base href="MyURL/reports/rwservlet/getfile/HXDcQdI8VQ/QC6Q=/58327007.htm">
    </head></html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=WINDOWS-1257">
    </head>
    <body dir=LTR bgcolor="#ffffff">
    </body></html>
    I think, that first docume[i]Long postings are being truncated to ~1 kB at this time.

    Sorry, my question was ower 1 Kb. My question is:
    I am thinking, that additional document without META may be reason for bad initial encoding.
    Am I right? How can I suppress this first document? Is there another way for solution of this problem?
    Sorry for my english. Thanks for help!
    Algis

  • Title of the browser displaying a report output through web.show_document

    Hiya
    We are using Oracle Forms 10g 10.1.2.0.2
    All our Forms and Reports are working well.
    We are using Java Script in Web.Show_Document so that when the report is displayed on the screen in the browser, the browser's toolbar and menubar should not be visible.
    The code looks like this:
    v_url_in := 'reports/rwservlet' || '/getjobid' || v_job_id || '?server='|| 'my_rep_server';
    v_url_out := 'javascript:window.open("'||v_url_in||'", " ", "toolbar=no,menubar=no");self.close();';
    Web.Show_Document (v_url_out, '_blank');
    The above code is working absolutely fine. No issues about this.
    Now when the report opens in a new browser window,the title of the browser window reads as follows:
    http://<hostname>:8889/reports/rwservlet/getjobid1234?server=my_rep_server - Microsoft Internet Explorer
    So rather than displaying the title of the browser window as the URL of our Application Server, we want to show the title to Reports name so that it
    reads as
    'Customer Sales Summary Report - Microsoft Internet Explorer'.
    Does anyone has any idea if it is possible to change the title of the browser window, if so, how ?
    Cheers
    Mayur

    Mayur,
    I'm not a web developer either, however, I've done this kind of thing using the HTP database package - as I mentioned. What you could do is write a database procedure that accepts the URL and the Title as parameters and let the procedure open the URL for you. For example:
    CREATE OR REPLACE PROCEDURE show_url(p_url VARCHAR2, p_title varchar2) AS
    BEGIN
       htp.htmlOpen;
       htp.headOpen;
       htp.htitle(p_title);
       htp.headClose;
       htp.bodyOpen( cattributes => 'onLoad="WinOpen()"');
       htp.bodyOpen;
       htp.script(clanguage => 'javascript',
                    cscript => '<!--
                                function WinOpen() { open("'||p_url||'","_self");
                                //-->'
       htp.bodyClose;
       htp.htmlClose;
    END;I was unable to test this procedure on my Oracle XE install, but it should work on a non-XE database.
    Hope this helps.
    Craig...
    -- If my response or the response of another is helpful or answers your question, please mark the response accordingly. Thanks!

  • 11g report bug !!!!  web.show_document paramform=yes   arabic problem

    hello,
    my problem already mentioned here .
    Arabic parameters with web,show_document  using parameters form not working
    i'm using Fusion 11g form & report 11g.
    my report support arabic, database also support arabic.
    my problem happen when i run my report with parameter form from browser url directrly as :
    http://localhost:9002/reports/rwservlet?report=d:\mojform\report.jsp&destype=cache&desformat=htmlcss&userid=scott/tiger&paramform=yes
    report query is : select * from emp where ename = :P_ename;
    the report run fine and i'm able to query and employee name and retrive them correctly from database. but i have some employees thier names is in Arabic
    text like 'احمد' when i enter this word in the paramter html form in the browser it return null, in sqlplus it work good and return the row.
    to make sure i add the name add fixed list and also as LOV in report user paramter form , it works fine when i choose english name from the LOV and return the row
    but when i choose an arabic name it said Warning: The value of restricted LOV parameter P_Ename !!!!??????
    viwing arabic LOV in Html form is working fine but passing this name as aparameter to the report server return null when using fixed list and when using LOV returns the above message..
    any i dea
    Edited by: user9283292 on Oct 6, 2011 11:40 AM

    hello,
    Thank you for reply.
    Yep, i already set the appropriate charset for the report server as you mention.
    still when i use Arabic as input in the parameter form box it return null.
    and when i a force the parameter box to user LOV it said : REP-0788: The value of restricted LOV parameter P_ENAME is not among the selectable values.
    I'm using Windows-1256 characterset in both 10g Database and both system registry ( Database Home) & ( Fusion home) also in the
    rwservlet.properties i use windows1256 also i use UTF-8 , but nothing ...
    any suggestions ???
    any suggestion.

  • Mailto with web.show_document

    Hi,
    I am using the mailto as below
    web.show_document('mailto:[email protected]&subject='||lv_subject||'%20&body=Date:%20%'||:SYSTEM.CURRENT_DATETIME||'%0A%0APlease find the generated file in pdf format','blank');
    I am sucessful in generating the mail to, subject and the mail body but is there a way by which i can automatically attach a mail attachment (could be a pdf file just generated before this code executes.
    or does someone have a better idea as my requirement is that as and when a transaction is complete a user will select a check box and execute a button (send mail), for the same transaction i want to generate a PDF file ad send it to the selected group, but i do not want this as a silent background process (it should open a new outlook window) with the generated report as an attachment.
    I can generate the pdf file and also open a new outlook form but the attachment is the issue.
    Regards
    Melvin

    Melvin,
    there exists no parameter for attaching files to an email using "mailto".
    Source: http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q188/0/19.asp&NoWebContent=1
    The format for the MAILTO protocol is as follows:
    MAILTO:Recipients&Parameters
    The Recipients field can be blank, a single e-mail address, or multiple e- mail addresses separated by semicolons (;).
    The Parameters are optional and have to be separated by an ampersand (&). Parameters appear in a name/value pair format. Following is the list of parameters available in Internet Explorer: PARAMETER DESCRIPTION
    CC= Carbon copy
    BCC= Blind carbon copy
    SUBJECT= Subject text
    BODY= Body text
    Fran

  • Problem when using WEB.SHOW_DOCUMENT and passing in lexical parameter

    Hi,
    I got a blank page with error "An error has occured while trying to use this document" when I tried to use web.show_document and passing a lexical parameter to 10g report on 10gAS. The URL in the web.show_document is:
    http://<srvname>:<portnum>/reports/rwservlet?server=repserver90&report=myrpt.rdf&destype=Cache&desformat=pdf&userid=<usr>/<pw>@<db>&where_clause=where%20product_type%20in%20('REPORT')
    If I change the desformat to htmlcss, it is fine to display the report. But doesn't work with desformat=pdf. The pdf file has been generated in the cache. Why can't it display on the screen.
    Also I tried to use double quote the value for where_clause. The pdf report showed up. But it ignored the where clause.
    Experts please help.
    Ying

    I use lexical parameters and they work fine, but I use a parameter list. The code is contained in a form that is called by all forms that wish to run a report. This way you only need the logic for printing in a single form. If you want the form, email me at [email protected]

  • Javascript not working with web.show_document.

    Hi,
    I executed the below command from forms 10g and it is not working.
    web.show_document('javascript:var win=showModalDialog("http://otn.oracle.com/products/forms");','_self');
    But if I execute javascript:var win=showModalDialog("http://otn.oracle.com/products/forms"); directly in IE, then it is working.
    Frank, can you help me in this or any other people having any idea ?
    Very urgent.
    Thanks & Regds,
    Nandakumar

    Hi Mark,
    Thanks for your quick reply. Your question is right. I think let me explain clearly my requirement. I have an application accessed in the web. A internet user is trying to a report through the application by giving a parameter as "A". Now using the window.open method, the report is displayed in the IE browser. Now the user can go to history and can see the complete URL with parameters.
    If he just copies and pastes that url from history in the browser, the reports runs successfully. If he changes any of the parameter to "B", there is a chance that report will show the report for parameter "B". This should not happen.
    Hope this is clear. Let me know if you are not still clear. Moreover, in the IE it is possible to clear history, but for internet based applications, how can we set them.
    Thanks & Regds,
    Nandakumar

  • Web.show_document  spaces in the URL problem

    Hi,
    I am using Web.Show_document to call the report from the form. Here some of the parameters having a spaces. It is giving a problem and report is not running. Pl guide me in this issue.
    Thanks & Regards,
    Gangi Reddy

    Try using %20 in place of the space in the URL.

  • Web.show_document in method post

    Hi,
    Is it possible to call a page php in form using web.show_document, when the same page php required the parameters in post ???
    Regards
    Giordano

    Hi,
    With web.show_document() you could call a html page that call your php page with POST().
    Francois

  • Hide address bar w/WEB.SHOW_DOCUMENT

    I am currently using WEB.SHOW_DOCUMENT to run Reports with
    Developer Server. It is outputing as a PDF in IE5. It works
    great. But I have a security concern. The report has to know
    who the current user is to properly fill in some parameters. I
    use the GET_APPLICATION_PROPERTY in Forms to get the USERID and
    PASSWORD. These get passed to the browser as part of the
    visible URL when the report is output as a PDF in the browser.
    I would like to hide the browsers address bar for these reports.
    Is there a way to do this?
    Thanks for any suggestions in advance!
    null

    I can actually answer that! I had the same problem initially.
    I spent a whole day searching both Microsoft and Adobe
    documentation
    and websites. I finally found the answer buried in Acrobat
    Reader's
    documentation.
    In your Adobe folder(I don't remember exactly where) you will
    find
    a file called Nppdf32.dll.
    Simply copy it to C:\program files\internet explorer\plugins
    You should now be able to view pdf files in IE5.
    FYI - Acrobat Reader 4 appears to have some sort of bug in it.
    Once it is installed it will mess up IE5's ability to download by
    clicking on a download link.
    When you click on a link for a download it tries to start Acrobat
    Reader 4 and then the download just fails.
    You can work around this by right-clicking
    on the link and selecting save as. But if it is a button that
    you
    click on to initiate a download you can't do that.
    I have not been able to undo this so if you can I would recommend
    using Acrobat Reader 3
    nirali (guest) wrote:
    : Hi!
    : I dont have answer for your ???
    : But I have one ??? for you if dont mind.
    : I could not get PDF output in IE5. Please let me know
    : what preferences I have to change on IE5 to get PDF output.
    : Thank You
    : Nirali
    : Dennis Lunt (guest) wrote:
    : : I am currently using WEB.SHOW_DOCUMENT to run Reports with
    : : Developer Server. It is outputing as a PDF in IE5. It
    works
    : : great. But I have a security concern. The report has to
    know
    : : who the current user is to properly fill in some
    parameters. I
    : : use the GET_APPLICATION_PROPERTY in Forms to get the USERID
    and
    : : PASSWORD. These get passed to the browser as part of the
    : : visible URL when the report is output as a PDF in the
    browser.
    : : I would like to hide the browsers address bar for these
    : reports.
    : : Is there a way to do this?
    : : Thanks for any suggestions in advance!
    null

Maybe you are looking for

  • Can visit every website except one? Very strange a...

    This is a very strange problem, and one that has started today but is already driving me mad. I'm on BT Infinity Broadband, using a BT homehub, and have done for a while now... So far it's been fine until today. Every aspect of my internet connection

  • USB Memory Key

    Hi, I'm relatively new to the Mac world, having just acquired a spanking new Mac Mini, as well as an old iBook (G3, OS 8.6). I've been using a USB memory key with the iBook, no problem, transferring files among the two Apple products and a PC. Recent

  • Monitor out in Demo

    Hey, i'm a AE user like many of you on this board. For fun I downloaded the Shake demo and I am running through the tuts tonight. I also wanted to see if it would output through my Aurora video card to my monitor but I can't seem to get it to work. M

  • IPhone 3.0 and ACID3 Test

    Very disappointing, I upgrade my iPhone 2G to 3.0 last night and ran the ACID3 test again (see http://acid3.acidtests.org/ ), as iPhone 3.0 was released after Safari 4.0 was released for Tiger, Leopard, Snow Leopard, and Windows, and Safari 4.0 gets

  • Media Browser in iWeb too big

    Hello all, this is my first time so please be gentle. When I open the media browser in iWeb it fills the whole screen making it fairly unusable. In all other respects it's working (showing photos and movies etc) but it's massive. This doesn't happen