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]
Similar Messages
-
JTree selection problem when using custom renderer and editor
Hello:
I created a JTree with custom renderer and editor.
The customization makes JCheckBox to be the component
responsible for editing and rendering.
The problem is that when I click on the node with the checkbox
the JTree selection model does not get updated.
Without customizations of the editor and renderer the MouseEvent would be fired and BasicTreeUI$MouseHandler.mousePressed() method would call
the selectPathForEvent() method which would be responsible for updating
the selection model. At the same time if I attach a mouse listener to the JTree (customized) I see the events when clicking on the nodes. It seems like the MouseEvent gets lost and somehow as a result of which the selection model does not get updated.
Am I missing something?
Thanks
AlexanderYou probably forgot to call super.getTreeCellRendererComponent(...) at the beginning of your getTreeCellRendererComponent(...) method in your custom renderer.
Or maybe in the getTreeCellEditorComponent(...) of the TreeCellEditor... -
Closing the browser windows created by web.show_document and javascript
From Forms I am issuing a http request using web.show_document and javascript:window.open(). The http request makes a remote procedure call to a coldfusion component on a JRun appserver. I want this rpc to fire in the background so that the current forms browser window remains as is.
The logic is as follows
l_rpcURL := 'http://....just a standard URL.....'; -- edited for this thread
l_jsURL := 'javascript:window.open("' || l_rpcURL || '","","fullscreen=no,titlebar=no,location=no,toolbar=no,menubar=no,status=no,resizable=no");self.close();';
WEB.SHOW_DOCUMENT (l_jsURL,'_blank');
The http request works fine but leaves a browser window behind. It's the one created by the javascript.window.open(). If I remove the self.close() from the javascript then I have two browser windows open, one from web.show_document and the other, as described previously, from the window.open().
Any idea how I can force closure of the window opened by the window.open() ?
ThanksHi,
did this occured afer installing service pack 2?
A work around is The only solution that is to create a close.html file and calling this file in the code: Web.show_document('http://server:port/close.html','_self');
<html>
<body onload="closeit()">
<script>
window.close();
</script>
</body>
</html>
Monica -
Hi all, I bought one iphone and 3 ipads, i set up all on one apple ID. Now i have a problem when using messages: when sending message from one device it appears again on screen from the other 3 devices. I need help on how to set up messages on each device separately and to start using messages app on each device independently. Thanks
search google for "iphone remove picture from contact"
-
I have problems when using the camera on my iPhone 4S (the same for my daughter with a iPhone4)
A veil around the blurred photo, a development impossible and completely unable to read the bar code or QR code. What to do?Sounds kind of stupid, but check to make sure that your iphone case cover is not blocking the edge of the camera lens. I had a silicone case on my 3S and when it got older, it started tot slip and the edges of my pictures were blurred.
-
I upgraded to Lion and then all video clips on for instance Youtube freeze every tenth second to buffer more data. I have a MacBook Pro and never had any problems when using Snow Leopard. Has Lion problems with this?
Ulf, SwedenUse the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps. -
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? -
To access pdf files from application server using web.show_document
Hello!
If my pdf file is copied in Oracle_home/forms90/java directory.Then using web.show_document i can access the pdf file.But I can't copy all the pdf files in /forms90/java directory.We have lacs of pdf files which I want to keep in my own directory.But my requirement is if my pdf file is in /home2/docs directory in (Linux application server) ie in my own directory where I store all the pdf files.Then web.show_document does not open the pdf file.It says page cannot be displayed.For that I think we have to configure the directory /home2/docs directory as a webserver.From otn I got something like forms90.conf file in application server where we have to set virtual directory mapping etc.If the pdf is in local machine then in orion-web.xml file we have to mention real path and save the file and shutdown oc4j instance and restart it again.I tried it.But it is not working.Can u give me step by step instructions to solve this problem.I found a few links in discussion forum.But is doesn't work out.My pdf file is in /home2/docs directory in Linux application server.Please treat it as urgent.
Regards
JayashreeHi Sandeepmsandy,
There is no available code sample for this scenario. You may write your own.
Step 1: Get pdf URL from sqlite database. Please refer to the following MSDN blog and see a code sample.
http://blogs.msdn.com/b/robertgreen/archive/2012/11/13/using-sqlite-in-windows-store-apps.aspx. Note, you need to retarget the project to 8.1 and then get two sqlite packages from NuGet before building this sample.
Step 2: Use some special classes to get file from serer.
HttpWebRequest can help download small pdf files. For more information to see
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/de96a61c-e089-4595-8349-612be5d23ee6/download-file-with-httpwebrequest?forum=winappswithcsharp. It’s easy for use, but if you want to download the larger or many files, it’s recommend to use
BackgroundTransfer namespace. The classes in this namespace provide a power way to transfer files in the background. See a code sample from MSND.
https://code.msdn.microsoft.com/windowsapps/Background-Transfer-Sample-d7833f61.
Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
the survey. -
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. -
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. -
We use IE9.
I enter in https://gwserver.
Compose New mail (in Plain Text mode) with body:
Line-1
Line-2
Line-3
And send this mail , for example to itself.
the received letter will look like:
Line-1Line-2Line-3
Someone has the same problem?
SergAre you guys still on the shipping code of GW 12? Novell had a fix for this within a couple weeks of GW 12 being released from what I remember. Open an SR and get the latest code.
Or simply tell your users to user HTML.
Todd Bowman
Todd Bowman
Senior Network Analyst
University of Minnesota Physicians
612-884-0744
[email protected]
>>>
From: MarkDissington<[email protected]>
To:novell.support.groupwise.2012.web-access
Date: 5/24/2012 6:46 AM
Subject: Re: Problem when using IE9
skoltogyan;2197344 Wrote:
> The solution is?
>
> Serg
I would guess don't use IE9 until a fix is released? :-)
M.
MarkDissington
MarkDissington's Profile: http://forums.novell.com/member.php?userid=27611
View this thread: http://forums.novell.com/showthread.php?t=455634 -
Hide Explorer window called using WEB.SHOW_DOCUMENT()
I've created a JSP which creates and saves a PDF into the database. I call this JSP using web.show_document as a result of which an explorer window is opened,which is not what I want. I want to use the JSP functionality in the background not making the user aware of this. I've tried the following :
WEB.SHOW_DOCUMENT('javascript:void(window.open("'||URL||'","","location=no,toolbar=no,menubar=no,status=no,resizable=yes"))','_blank');
But the PDF does not get saved into the database using this call.
Help would be appreciated...Does the pdf gets saved when you paste the same url into a browser-window "by hand" ?
If you don't want to show the url you could create a java-class which just opens a http-connection, import it using the Java-Importer and call it on the application-server -
Hello all, can somebody help me?
I have encountered a problem when using Flash Player
V9.0.115. Your help would be greatly appreciated.
The problem described as follows:
1. The flash file with sound works well before uploaded to
website. The audio lost when uploaded to the website(There is no
problem with the flash file size). I have uploaded the flash file
to website for you to test. Please go to
http://www.sameshow.com/democreator/create
a new site.swf and kindly check with it.
2. When we open the flash movie in IE with Flash player
V9.0.47 and previous versions (Flash9d.ocx), the flash movie with
sound works well.
3. When we upgrade the flash player to the latest version
V9.0.115 (Flash9e.ocx), the video works well, but the sound just
can play several seconds and then stop.
4. On Flash Player ocx V9.0.115. If we publish the flash
movie on web with 24fps, the sound just can work several seconds
and then stop, the problem is the same if we use the
TShockWaveFlash control to play the flash movie.
5. On Flash Player ocx V9.0.115. If we publish the flash
movie with 12fps, the sound works well but the quality is really
very poor. It seems that the sound plays shorter with more frames
per second. But the flash file works well with the Flash Player
V9.0.47 and previous versions (Flash9d.ocx).
Can somebody help me to figure it out? Thanks in advance!
Regards,
Sabrina
[email protected]Hello Darren, I really appreciate your response. My mail is
[email protected] I have uploaded the flash file to our
ftp,
http://www.sameshow.com/democreator/create
a new site.swf. And also I compressed the original file to a
zip file and uploaded to our ftp at
http://download.sameshow.com/aff/create.zip,
please kindly check! When we playing this flash file on FlashPlayer
V9.0.47 and previous, the audio works well. But the audio just can
play several seconds and then stop when I playing it on FlashPlayer
V9.0.115. The garbled audio makes us very upset. Your help would be
great appreciated!
Sabrina Fu
Maybe you are looking for
-
I want to know whether anybody has vested time in customizing Open PO concept which is nothing but Blanket Functionality instead of Amount & Price we need to manage against the quantity & Price and create releases for the PO. I know this is a unique
-
In ALV O/p , need Editable Checkbox for particular based on signal lights..
Hi, I have requiremnt liek this in my ALV There are 4 records in the output consisting of fields checkbox , traffic lights. here, 2 are Red and 2 are Green. now Green light checkboxes should be (Enabled mode)checked with Edit mode. Red light check
-
GetNameList function got called so many times
Hello.. I have a question. Could some one please answer me? Suppose, I have two web pages. First one has only a link. If you click it, it will send you to second page, which only has h:dataTable like this... <h:dataTable value="#{mybean.nameList}"> <
-
How to realize thread under web?
I want to realize Short Messaging Service under Web,it can send and receive message. I think there are two buffers,one is for send message,one for receive message. When I send message to send buffer,it can notify send buffer to deal this message.When
-
Hi SAP gurus, I have a requirement where in we have a DOS exe Program but Dont have source code of it. The Program takes some input values, Calculates and Gives the output result. We need that Program to be called from SAP so that we can pass the in