Launching a new form using web.show_document
Using 9iAS 9.0.2.1.1. and Forms9i I'm trying to get a form to launch a new browser window and open a new form in it. At present I'm using web.show_document to do this. However, I get an error message stating that 'Connection from new browser window is not supported'. From an earlier thread in this forum I found a possible solution which is to set the session.useCookies to false in the zone.properties, which I have done, but I'm still getting the same error. I've tried restarting the OC4J_BI_Forms OC4J and the HTTP server, but nothing makes any difference. Am I missing something?
If you are attempting to print a report from a when-button-pressed trigger from within a form, you do not have to explicitly specify the server (hostname) nor the port. You can just use what I've found referred to as a virtual path to the server as I have done here:
parm_string := '/reports/rwservlet?config=my_config&report=report_name'
||'&desformat=pdf&destype=cache'
||'¶mform=no&printjob=no'
||'&p_my_user_param1='||v_my_param1
||'&p_my_user_param2='||v_my_param2;
web.show_document(parm_string,'_blank');
You can specify a userid/password@connectstring within a named congifuration section of your formsweb.cfg file if necessary, e.g. my_config.
Hope this helps.
James K.
Similar Messages
-
Calling a report from form using web.show_document
Hi,
Used the method as below, But , error reprot not found,
Could anybody tell me how to get the server name from ny local machine as in the example servername ' Repsrv '
/* WHEN-BUTTON-PRESSED */
DECLARE
vc_url varchar2(100);
BEGIN
vc_url:=‘http://<hostname><port>/reports/rwservlet?server='
||
‘Repsrv&report=reptest.rdf&desformat=htmlcss&destype=cache ’
||
'&userid=user/pw@database&p_deptno='||:dept.deptno||'¶mform
=no’;
WEB.SHOW_DOCUMENT(vc_url,’_blank’);
END;
ThanksIf you are attempting to print a report from a when-button-pressed trigger from within a form, you do not have to explicitly specify the server (hostname) nor the port. You can just use what I've found referred to as a virtual path to the server as I have done here:
parm_string := '/reports/rwservlet?config=my_config&report=report_name'
||'&desformat=pdf&destype=cache'
||'¶mform=no&printjob=no'
||'&p_my_user_param1='||v_my_param1
||'&p_my_user_param2='||v_my_param2;
web.show_document(parm_string,'_blank');
You can specify a userid/password@connectstring within a named congifuration section of your formsweb.cfg file if necessary, e.g. my_config.
Hope this helps.
James K. -
To which Forms directory to put a text file to show using WEB.SHOW_DOCUMENT
Need to show a text file using WEB.SHOW_DOCUMENT.
In which Forms sub-directory should the text file reside and what is the syntax for the command?
Is it like WEB.SHOW_DOCUMENT('http://192.949.99.19:8890/forms/abc.txt','_blank');Hi, I did this
-- My OC4J URL when I run a form is this: http://192.168.11.103:8890/forms/frmservlet
-- I want to open abc.txt. I put abc.txt in dir E:\Ora_Dev_10g_R2\forms which is my Forms home
-- When I try WEB.SHOW_DOCUMENT('http://192.168.11.103:8890/forms/abc.txt','_blank') it gives
The page cannot be found -
Browser Time out in Reports (using WEB.SHOW_DOCUMENT to call reports)
When running a big report which takes a long time to run, it finishes on the report server but in the browser the screen is stuck at the parameter form, you don't see the report output. It's as if the browser has timedout. Is there a solution to this?
I am running reports using WEB.SHOW_DOCUMENT only - through a URL. This seems to be a huge drawback of using this method.Is the browser launching?
If it is have you tried a show source on the browser window?
Sometimes if you open an XML file in a browser you get a blank page but the XML is there. Something to do with the XML format I think. I'm no expert on XML just a behaviour I have observed. -
How can I maximize the window which opened using web.show_document() ?
My user complain, everytime they want to print the report it didn't
show maximize screen,
How can I maximize the browser or window which opened using web.show_document() ?
Thank youThank you for replaying,
I did search in forum, but I only go one about maximize window when calling
a report (web.show_document). the link :
Maximize the new opened window
Frank said to use "Javascript to the Forms", but no futher explanation whow
to do it ?
please help, I don;t know javascript.
Cabe, -
Opening a separate form using Web.show_documen not working as intended
My intent is to open a form in a totally different session from another form.
I want to open FORM B from a trigger in FORM A and I want both to be active simultaneously.
To achieve that I thought to use web.show_document in completely new borwser window from a trigger in FORM A.
web.show_document (FORM_B_LINK,'_blank');
But both forms still share same JRE session (according to Metalink Tech support.)
Now what is happening is that FORM B opens(only if I use Synchronize after web.show_document call ) but FORM B is not active whenever FORM A is doing something. So they both are not active together.
Please help me here how can I open two separate forms session.
BTW, I can not use OPEN_FORM or CALL_FORM for various reasons
Thanks in advance for your helpUnless you have other reasons that contradict this, I
cannot see anything that you can do with two browser
windows that you cannot do with using
OPEN_FORM(SESSION). That in effect creates two
database sessions that are independent of each other
and you should be able to do what you want.Hi Jan,
Actually its not database session I'm worried about it is FORM session that is worrying me. Both FORM A and FORM B can not execute some code at the same time as they share same forms session (as far as I know).
Let me explain my situation again. We have a PLL which is attached to lots of forms.
This pll has functionality to perform some on-demand internal jobs like executing a report or exporting block data to execl or html etc). Depending upon the Job it may take some from few seconds to several minutes to finish the job.
What I have to do add is the ability to monitor progress of the job and give our users ability to stop that job.
And I think I can not achieve that using OPEN_FORM. -
Unable to open the reports as url using web.show_document
Hi experts,
I am trying the access the oracle reports from oracle forms. my forms is running at port 9001 and my report is configured at port 9002.
While trying to open the report using web.show_document(), the web page opens with port 9001 and returns 404 error. But when i change the port number to 9002 in the url it opens the report sucessfully.
Please find the forms and reports link below:
http://10.180.218.158:9001/forms/frmservlet?config=kvb11g
http://10.180.218.158:9002/reports/rwservlet/getjobid97?server=rptsvr_mohadam-in_adam2unst
i tried changing the machine name to ip address in the forms.conf and reports_ohs.conf as suggested in the link below. but it dint work out.
url -
https://forums.oracle.com/thread/1105289
http://prasadmadhasi.com/2011/11/19/changing-presentation-services-port-number-in-obiee-11g/
my reports_install.properties is given below,
#Reports Install Properties
#Fri Sep 13 16:10:59 IST 2013
WLS_USER=weblogic
USE_REPORTS_BUILDER=true
OHS_COMPONENT_NAME=ohs1
REPORTS_MANAGED_WLS_PORT=9002
SERVER_NAME=RptSvr_MOHADAM-IN_adam2unst
REPORTS_MANAGED_WLS_HOST=10.180.218.158
FORMS_CONFIGURED=true
ORACLE_INSTANCE_NAME=adam2unst
REPORTS_APP_DEPLOYMENT_DIR=C\:\\Oracle\\Middleware\\user_projects\\domains\\kvbdomain\\servers\\WLS_REPORTS\\tmp\\_WL_user\\reports_11.1.2\\uxabaw
INPROCESS_SERVER_NAME=RptSvr_MOHADAM-IN_adam2unst
MANAGED_SERVER_NAME=WLS_REPORTS
OHS_PORT=8891
DOMAIN_HOME=C\:/Oracle/Middleware/user_projects/domains/kvbdomain
COMMON_COMPONENTS_HOME=C\:\\Oracle\\MIDDLE~1\\ORACLE~1
ORACLE_INSTANCE=C\:\\Oracle\\Middleware\\adam2inst
REPORTS_APP_CONFIGURATION_DIR=C\:\\Oracle\\Middleware\\user_projects\\domains\\kvbdomain\\config\\fmwconfig\\servers\\WLS_REPORTS\\applications\\reports_11.1.2\\configuration
OHS_HOST=MOHADAM-IN.in.oracle.com
DOMAIN_NAME=kvbdomain
ORACLE_HOME=C\:\\Oracle\\Middleware\\Oracle_FRMHome
USE_OID=false
REPORTS_APP_VERSION=11.1.2
USE_SSL_FOR_APP_LDAP=false
INSTALL_MODE=deployment
SSO_CONFIGURED=false
Looking forward for your help.
Regards,
SylHello,
this is the forum space
SQL Developer (Not for general SQL/PLSQL questions)
Please mark this thread as answered and post your question in Reports
Regards
Marcus -
Issue while generating report using web.show_document with https
Hi All,
I am facing some issue while seeing the report using web.show_document as shown below:
https://ucrmskr.apac.nsroot.net:10301/forms/html/001725032_gca.rtf_
In this case the report opens directly without asking for me to save or open or cancel option
whereas if I hit
http://scrmskr.apac.nsroot.net:7801/forms/html/001725032_gca.rtf_
it asks for save or open or cancel option
so that I can save the report to my machine and open in wordpad format
The report generated in the first case is not coming in proper format
Below are my forms.conf mappings:
# Name
# forms.conf - Forms component Apache directives configuration file.
# Purpose
# It should include the weblogic managed server (routing) directives for
# the servers where Forms applications are deployed and other miscellaneous
# Forms component OHS directives.
# Remarks
# This file is included with the OHS configuration under
# $OI/config/OHS/<OHS Node Name>/moduleconf sub-directory.
# virtual mapping for the /forms/html mapping.
RewriteEngine on
RewriteRule ^/forms/html/(..*) /workaroundhtml/$1 [PT]
AliasMatch ^/workaroundhtml/(..*) "/ucrmap1/weblogic/bea/ucrms/config/FormsComponent/forms/html/$1"
RewriteRule ^/ucrms/icons/(..*) "/workaroundicons/$1" [PT]
AliasMatch ^/workaroundicons/(..*) "/ucrmap1/weblogic/bea/ORA_PFRD/forms/java/$1"
RewriteRule ^/forms/help/(..*) "/workaroundhelp/$1" [PT]
AliasMatch ^/workaroundhelp/(..*) "/ucrmap1/ucrrgbg2/help/$1"
<Location /forms>
SetHandler weblogic-handler
WebLogicCluster kauh0079:9001
DynamicServerList OFF
</Location>
Please let me know what needs to be done additionally if we are trying to hit https because in the second case we were hitting http with similar mapping in diff environment and it was generating report successfully.
Regards,
HarishThanks for answering,
I changed the URL from
http://nbotlaguduru.dms.local/export/FMSLaborChargesalcs20060829132645.pdf
to
http://nbotlaguduru.dms.local:8889/export/FMSLaborChargesalcs20060829132645.pdf
and the same problem occured
the file is located on my local C drive in:
C:\lcs\export
seems as though I am missing something else as well
any ideas? -
Report Status using web.show_document
Hi all.
I am using the web.show_document for running my report - using distribution xml file and mail.
I want to insert a record in a table if the report generation succeeds.
From Oracle Documentation I can see that I cannot get the report status in the form when it is run using web.show_document.
And for distribution I cannot use run_report_object.
Any workaround for this?
Thanks in advance
Anu.Dear Mr. hisham,
Thanks For your Post,
Actually i have the same issue, but it want to kill a running report in the report server by clicking such a button that have already the jobID.
whithout opening the reportserver page so that no body see any other reports running.
like in this example:
Declare
L_URL Varchar2(1000);
Begin
L_URL := :apps_server||'/reports/rwservlet/Killjobid'||:JOB_ID||'?'||'server='||:report_server;
WEB.SHOW_DOCUMENT ('javascript:window.open('||l_URL||');self.close()','_blank') ;
End;
Is it posible to do that, If so how can do it. and do i have to do any settin someware on the server like formsweb.cfg or reportserver.cnf.
thanks in advance. -
Reports 9i Printing from Forms with WEB.SHOW_DOCUMENT
I want to print a Report from Forms via WEB.SHOW_DOCUMENT directly to the printer and it works fine.
But every time i print it from my web application a new browser-windows opens and shows a message "Printed successfully" or something like that. If I start the printjob again nothing happens - if I press the Browser-Refresh-Button in the new Browser-Windows with the Message ("Printed Successfully") it prints.
So now I have 2 questions:
a) How can I disable the "Printed successfully"-Message
b) What hava I to do that I not must press on the Refresh-Button to start the printing again
I hope I hava explained my problem clearly. 4
Here ist the complet WEB.SHOW_DOCUMENT-Command I fire in Forms when a Button is pressed:
WEB.SHOW_DOCUMENT('http://mymachine:8888/reports/rwservlet?report=testreport.rdf&destype=printer&desname=\\NTS32\VZ_D3&desformat=html&userid='|| sUser ||'/'|| sPW ||'@'|| sDB,'_blank');
Many thanx for your help!
Regards
MarcHello,
for the problem:
b) What hava I to do that I not must press on the Refresh-Button to start the printing again
may be it just a setting in your Browser ?
For Internet Explorer :
go to I.E General Options screen. click on settings button and choose
"Every visit to the page " option.
Regards -
Error opening report using WEB.SHOW_DOCUMENT
Hi
I have a report in pdf format that opens ok by itself. When I use WEB.SHOW_DOCUMENT in the when_mouse_click trigger on the item in the form the report doesnt display. Only an IE window with "The page cannot be displayed" message.
Here is the trigger code:
Web.show_document(http://nbotlaguduru.dms.local/export/||FMSLaborChargesalcs20060829132645.pdf)
where FMSLaborChargesalcs20060829132645.pdf is the name of the report I am trying to open.
Here is the URL that appears in the second window that opens:
http://nbotlaguduru.dms.local/export/FMSLaborChargesalcs20060829132645.pdf
this url generates the error message "The page cannot be displayed"
I am using Forms [32 Bit] Version 10.1.2.0.2 (Production)
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
Report Builder 10.1.2.0.2
ORACLE Server Release 10.1.0.4.2
and I running the forms and reports server on my local machine.
Any help would be greatly appreciated. ThanksThanks for answering,
I changed the URL from
http://nbotlaguduru.dms.local/export/FMSLaborChargesalcs20060829132645.pdf
to
http://nbotlaguduru.dms.local:8889/export/FMSLaborChargesalcs20060829132645.pdf
and the same problem occured
the file is located on my local C drive in:
C:\lcs\export
seems as though I am missing something else as well
any ideas? -
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.
YingI 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]
-
Passing parameter to Called form through Web.Show_document.
i am calling a form say 'form2.fmx' from 'form1.fmx' using web.show_document. the parameter is concatenated with the URL string properly but this parameter is not accessible in the called form.
Please Help
thanksi am running forms Of 10G developer suit. i want to call and pass a parameter
'emp_no'(employee no) to a form say 'form2.fmx' from the form say 'form1.fmx' on button
click. so i have created a parameter named "emp_no" in the object navigator of "form2.fmx".
in form1.fmx, i am using web.show_document(URL) function as given below.
web.show_document('http://111.111.111.11:8889/forms90/f90servlet?form=form2.fmx&emp_no=7156&userid=scott/tiger@mysid','_blank');
This function successfully call the "form2.fmx" but in this form the value of parameter
"emp_no" is null even when i have passed it in the URL (as shown in the above code line)
i.e; the value of emp_no is null.
Note :
7156 is the value of emp_no parameter.
111.111.111.11 is the supposed ip address. etc. -
how to call a form from WEB.SHOW_DOCUMENT
I would like to call a form using the WEB.SHOW_DOCUMENT the idea is from the menu that is attached to the form instead of use call_form use WEB.SHOW_DOCUMENT(...my_newform.fmx)
Is this possible?????Hi ,
I think yes...but under some circumstances....
In your formsweb.cfg file you should define a named configuration alias... such as:
[TEST]
workingDirectory=C:\TEST_DIR
form=C:\TEST_DIR\MY_NEWFORM.FMX
Then , after stopping , starting your OC4J instance..... you call that as (in a button , for example):
web.show_document('http:<your_server>:<port>/forms/frmservlet?config=[TEST]',_blank);
I have not tested it.....
Regards,
Simon -
Got a problem launching Forms from e-biz 11.5.10.2 using JRE 1.6.
Our setup :
E-biz: 11.5.10.2
Forms: 6i Patchset 19
DB: 10.2.0.3
JRE: 1.6.0_07 (e-biz is config to use this version)
on windows desktop clients:
JRE: 1.6.0_13
As a non-privileged user account on the workstation, users cannot launch the forms using the 1.6.0_13 JRE.
When a privilieged(Admin) user account logs in, the forms launch fine using 1.6.0_13.
We understand that IA enforces many policy settings in our environment, but can anyone identify which types of policy settings would break this access?
Thanks everyone!
GabeThanks for the docs! We've reviewed them, and are satisfied that the JRE family of 1.6 is working properly.
Our issue is that there are some windows security policies/ maybe group policies, that are restricting the launching of the forms using the newer 1.6.0_13 JRE. This is what we are after, and I would like to know if anyone else has faced similar issue.
Some more clarification:
if the workstation has the 1.6.0_07 JRE, and a non-privileged account logs in, the forms launch fine.
Once 1.6.0_13 is pushed (as our NetAdmin is requesting), the non-privileged account cannot launch forms. Instead, they get an active X request to install 1.6.0_07, which they do not have privilege to install.
Hope this helps.
Gabe
Maybe you are looking for
-
Report showing Invoice number, vendor,material and qty
Hi Guys Is there any report where we can take report for vendor, invoice number, material and qty. Regards
-
Is it possible to publish one site to mac site and another site to a school
I have an "About me" page which I wish students to have access to - but I don't want them to have access to the rest of my site - can I publish either just the "about me" page to a different school server or can I create a new site with just an about
-
Followup to Displaying Topic HTML File Name
A week ago I posted a question about whether it is possible to display the topic file name in the Web Address field. Rick responded that it was not possible, but gave me a good alternative with a Javascript that displays the file path in the RH topic
-
Hi Gurus, I have recently installed a Solution manager 4.0and ECC 6 systems. Also, the SLD has been centrally defined on Solution manager box on both the boxes. I have been able to retrieve/ view data(both java and abap) of SLD view landscape tab of
-
Visual Web Developern 2010 Express
I am trying to install the Web Platform Installer 5.0 so that I can download Visual Web Developer 2010 Express. It does not seem to be installing. It evidently is running, at least the task Manager says it is. I let it run all night, Probably a total