Calling html file within web.show document as a report output
/* this is blank html file included javascript for disabling mouse right click working fine*/
WEB.SHOW_DOCUMENT ('http://prod.artisticmilliners.com:8000/files/file.html','_blank');
/* this is oracle report output within model frame working fine*/
WEB.SHOW_DOCUMENT ('javascript:void(window.open("'|| URL || '","","location=no,toolbar=no,menubar=no,status=no,"));self.close()','_self');
I want to add show report output with right mouse click disable. Pleae guide how can i do it?
Let me start by saying that disabling the right mouse will do nothing but frustrate users. It doesn't protect the page content from anything. There are various other ways to get the content from the page copied locally. And more importantly, this does not_ offer any kind of security.
Ok, so you have decided to do it anyway ;)
In order to make this happen, you would need to modify the report. I will assume that when you said "report" you meant Oracle Reports. Open the report file (.rdf) and edit the report's "Before Report Value".
The default value is:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=&Encoding">
</head>
<body dir=&Direction bgcolor="#ffffff">Change it to this:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=&Encoding">
</head>
<script language="javascript">
document.onmousedown=disableclick;
status="Right Click Disabled";
Function disableclick(e)
if(event.button==2)
alert(status);
return false;
</script>
<body oncontextmenu="return false" dir=&Direction bgcolor="#ffffff">Save the changes and retest.
Similar Messages
-
How to call HTML file from forms 6i
Please can any one told me how i can call HTML file placed in my computer in specific path from forms 6i
i tried web.show_Document('file path','_blank');
but it doesn't work with me i don't know why and it doesn't give me any error
thanksthanks you for your reply
but it still not working with me
i tried this
host('iexplore C:\PPF\UserManual\index.htm');
is it true, any advice -
How to call PDF file in Web Dynpro Appl?
How to call PDF file in Web Dynpro Appl?
Hi Gobinath,
1. Create a value attribute of type byte called pdfSource.
2. Insert an UI element called Interactive Form in your layout
3. Set the source property of this Interactive From UI element to the context pdfSource.
4. Insert a button which would open your pdf file.
public void onActionsubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionsubmit(ServerEvent)
IPrivate<viewname>.IContextElement contextElement = wdContext.currentContextElement();
byte[] bytes = contextElement.getPdfSource();
try
File file = new File("C:
temp
example.pdf");
FileOutputStream os = new FileOutputStream(file);
os.write(bytes);
os.close();
catch (IOException e)
// do something
e.printStackTrace();
//@@end
Warm Regards,
Murtuza -
Can I embed a PDF file within a Pages document?
I am working with Pages '09 and would like to embed a rather long PDF document file into my Pages text. I want the reader to be able to click on the PDF file and have it open so that the reader can gather more information on the subject without making the actual Pages document text any longer. I don't want the PDF file to be an external link that sends the reader away from the document -- I want to know if I can embed the PDF file WITHIN the pages document and have it open only when clicked. I don't think I can do this. Thanks.
Small Town Gal.I found my answer within archived discussions - convert the file to a PDF and then embed the PDF file as an attachment. Thanks.
Barbara Smits -
How to load external storage html file in web view
hi all,
how to load external storage html file in web view, please help me
" ms-appdata://local/index.html" not working
veerasuthan veerakesanIt need be read as string. Then load the string by Webview.NavigateToString.
Sample as below
string htmlstring = string.Empty;
try
var htmlfile = await Windows.Storage.ApplicationData.Current.LocalFolder.OpenStreamForReadAsync("a.html");
using (System.IO.StreamReader streamReader = new System.IO.StreamReader(htmlfile))
htmlstring = streamReader.ReadToEnd();
webview.NavigateToString(htmlstring);
catch(Exception ex)
Debug.WriteLine(ex.ToString());
在現實生活中,你和誰在一起的確很重要,甚至能改變你的成長軌跡,決定你的人生成敗。 和什麼樣的人在一起,就會有什麼樣的人生。 和勤奮的人在一起,你不會懶惰; 和積極的人在一起,你不會消沈; 與智者同行,你會不同凡響; 與高人為伍,你能登上巔峰。 -
How to call DOC file using web.show_documents
Hi friends ,
If I use the built-ins web.show_documents for open the *.doc file
I am getting the following error
ORA-06550: line 5, column 2:
PLS-00201: identifier 'README.DOC' must be declared
ORA-06550: line 5, column 2:
PL/SQL: Statement ignored
DAD name: WebDB
PROCEDURE : readme.doc
URL : http://132.148.160.3:80/WebDB/readme.doc?
PARAMETERS :
===========
ENVIRONMENT:
============
SERVER_PORT=80
SERVER_SOFTWARE=Oracle WebDb Listener 2.1
SERVER_NAME=132.148.160.3
GATEWAY_INTERFACE=CGI/1.1
SERVER_PROTOCOL=HTTP/1.0
REMOTE_HOST=132.148.160.251
REMOTE_ADDR=132.148.160.251
REQUEST_METHOD=GET
QUERY_STRING=
SCRIPT_NAME=
PATH_INFO=/WebDB/readme.doc
HTTP_ACCEPT=*/*
HTTP_ACCEPT_LANGUAGE=en-us
HTTP_ACCEPT_ENCODING=gzip, deflate
HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)
HTTP_HOST=132.148.160.3
HTTP_CONNECTION=Keep-Alive
Please advice How to call Doc file in web.
Thanx
nullThe syntax to execute web.show_document:
web.show_document('http://server_ip_or_server_name/virtual_path/filename.doc')
The virtual path has been defined in Apache (if you run on web with Apache) or has been defined in Internet Inoformation Server (if you are runing with Internet Information Server.)
null -
Web show document timeout for large data in file
Hi,
I'm using Oracle Application Server 10.1.2.0.2 as a middleware and we launch an excel file using web.show_document. The problem that i'm facing is that if the data in the excel file is too large (I'm unable to quantify large!) the browser is unable to show the document. I have tried to increase the timeout in the Apache settings, but still the problem persists. Has anybody faced such a problem with web.show_document?OK, then you should get a thread dump of WLS just after your DBA confirms that all the heavy lifting for a given transaction is done, to see what WLS thinks it needs to be doing. Actually, I would open a support case and get instructions how to turn on JTA logging, so we'll see step-by-step, timestamp-by-timestamp the progress of the transaction.
-
Call .html file in ABAP report (se38)
Hi,
My question is, is it possible to call and execute an html file in a report?
For example, you have 2 containers in the report, 1 is for the html part and the 2nd for some ALV table (which is not the problem in this discussion).
The HTML part is a separate .html file on the server which works with a few .js files called in it.
I've done some research but couldn't find anywhere how read the HTML file in a report, and to work just like it does in a browser.
All I found was how to create a javascript from a report (only some simple examples like show a string..), or how to create an HTML file from a report and execute it in se38, but instead I need to know how to read an HTML in the report and place it in a container (which is a little more complex because of all the javascripts that it calls within).
Can anybody help me with this?
Thanks!I saw this program but I couldn't figure out where is this called from: document_url = 'HTMLFrame1.htm' on line 100.
To be more precise i need to call this HTML file which is on the server, and i need it to be executed in the container of the report, alongside with the javascript files it calls within:
<!doctype html>
<html>
<head>
<title>Essential Studio for JavaScript : Radial Gauge - Default</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" charset="utf-8">
<link href="bootstrap.min.css" rel="stylesheet">
<link href="ej.widgets.all.min.css" rel="stylesheet" />
<link href="default.css" rel="stylesheet" />
<link href="default-responsive.css" rel="stylesheet" />
<script src="jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="jquery.easing.1.3.min.js" type="text/javascript"></script>
<script src="excanvas.min.js" type="text/javascript"></script>
<script src="ej.web.all.min.js" type="text/javascript"></script>
<script src="properties.js" type="text/javascript"></script>
</head>
<body>
<div class="content-container-fluid">
<div class="row">
<div class="cols-sample-area" align="center">
<div id="circularframe">
<div id="CoreCircularGauge">TEXT
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(function () {
$("#CoreCircularGauge").ejCircularGauge({
backgroundColor: "transparent", width: 500, load: "loadGaugeTheme",
scales: [{
showRanges: true,
startAngle: 122, sweepAngle: 296, radius: 130, showScaleBar: true, size: 1, maximum: 120, majorIntervalValue: 20, minorIntervalValue: 10,
border: {
width: 0.5,
pointers: [{
value: 100,
showBackNeedle: true,
backNeedleLength: 20,
length: 95,
width: 7,
pointerCap: { radius: 12 }
ticks: [{
type: "major",
distanceFromScale: 2,
height: 16,
width: 1, color: "#8c8c8c"
}, { type: "minor", height: 8, width: 1, distanceFromScale: 2, color: "#8c8c8c" }],
labels: [{
color: "#8c8c8c"
ranges: [{
distanceFromScale: -30,
startValue: 0,
endValue: 70
distanceFromScale: -30,
startValue: 70,
endValue: 110,
backgroundColor: "#fc0606",
border: { color: "#fc0606" }
distanceFromScale: -30,
startValue: 110,
endValue: 120,
backgroundColor: "#f5b43f",
border: { color: "#f5b43f" }
</script>
</body>
</html> -
How call PDF file in Web dynpro screen?
i have one labal,one input box and one search button also...Just i clk search button mns...that PDK file will come..for printing purpose...
How i will call that PDF file? please give details...hi...this is my error...
Failed to process request. Please contact your system administrator.
[Hide]
Error Summary
While processing the current request, an exception occured which could not be handled by the application or the framework.
If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
Root Cause
The initial exception that caused the request to fail, was:
com.sap.tc.webdynpro.services.sal.deployment.api.WDDeploymentException: Failed to get deployable object part for application 'webdynpro.pdf' of deployable object 'local/LoginProject1'.
at com.sap.tc.webdynpro.serverimpl.core.deployment.AbstractDeployableObject.getApplication(AbstractDeployableObject.java:158)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.getApplicationDeployableObjectPart(RequestManager.java:381)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.initTask(RequestManager.java:317)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:143)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
... 17 more
See full exception chain for details.
System Environment
Client
Web Dynpro Client Type HTML Client
Server
Web Dynpro Runtime Vendor: SAP, build ID: 7.0009.20060804145649.0000 (release=645_VAL_REL, buildtime=2006-08-05:15:08:24[UTC], changelist=413534, host=pwdfm101), build date: Mon Oct 30 16:29:02 IST 2006
J2EE Engine No information available
Java VM Java HotSpot(TM) Server VM, version:1.4.2_09-b05, vendor: Sun Microsystems Inc.
Operating system Windows XP, version: 5.1, architecture: x86
Session & Other
Session Locale en_US
Time of Failure Thu Sep 27 16:48:55 IST 2007 (Java Time: 1190891935798)
Web Dynpro Code Generation Infos
Detailed Error Information
Detailed Exception Chain
com.sap.tc.webdynpro.services.sal.core.DispatcherException: The requested deployable object 'local/LoginProject1' and application 'webdynpro.pdf' are not deployed on the server. Please check the used URL for typos.
at com.sap.tc.webdynpro.clientserver.session.RequestManager.getApplicationDeployableObjectPart(RequestManager.java:383)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.initTask(RequestManager.java:317)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:143)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: com.sap.tc.webdynpro.services.sal.deployment.api.WDDeploymentException: Failed to get deployable object part for application 'webdynpro.pdf' of deployable object 'local/LoginProject1'.
at com.sap.tc.webdynpro.serverimpl.core.deployment.AbstractDeployableObject.getApplication(AbstractDeployableObject.java:158)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.getApplicationDeployableObjectPart(RequestManager.java:381)
... 20 more -
Render HTML file within portal page
I have uploaded an html file into a content folder as a file item type. I have a portal page with tabs and other content. I added a tab for this html file. I would like the user to click on the tab and have the html file rendered within the associated region.
Any ideas on how to do this?
Mike KleimanG'day,
Heres a much cut down version of a package I built to do
just that, based on a posting by Jerry Silver some time ago.
(I used to do the URL thing but found it fidley and unstable --
it dies if you move folders around)
Enjoy
Kal.
-- Provides the following procedures for displaying portal content:
-- html_file(P_FILE_ITEM_ID): display HTML content of the file "in place".
-- The idea of these procedures is that they can be called by custom type items.
-- NB: create the following as portal30
create or replace package display is
procedure html_file (p_folder_id in number,
p_file_itemid in number,
p_site_id in number,
p_deref_image_paths in number default 0);
end display;
create or replace package body display is
| procedure html_file (p_folder_id in number, |
| p_file_itemid in number, |
| p_site_id in number) |
| |
| Prints the contents of the file type item identified by |
| P_FILE_ITEMID, P_FOLDER_ID, and P_SITE_ID to the browser via |
| calls to the HTP package. |
`--------------------------------------------------------------------*/
procedure html_file (p_folder_id in number,
p_file_itemid in number,
p_site_id in number) is
source_html varchar2(32678);
filename varchar2(100);
blob_content blob;
raw_content raw(32767);
file_to_big exception;
begin
-- get the unique file name (can't pass this from a "File" type item)
select filename into filename
from portal30.wwsbr_all_items
where id = p_file_itemid;
-- should we pass path id?
blob_content := wwdoc_api.get_document_blob_content(p_name => filename);
if (dbms_lob.getlength(blob_content) > SIZE_OF_CHUNK) then
raise file_to_big;
end if;
raw_content := dbms_lob.substr (blob_content,32767);
source_html := utl_raw.cast_to_varchar2 (raw_content);
-- snip before opening BODY tag in first chunk
source_html := util.snip_between(p_source => source_html,
p_begin => '<body',
p_end => null);
-- closing '>' may be on another line
source_html := util.snip_between(p_source => source_html,
p_begin => '>',
p_end => null);
-- snip after closing BODY tag in last chunk
source_html := util.snip_between(p_source => source_html,
p_begin => null,
p_end => '</body>');
htp.print(source_html); -- this requires varchar2 type
exception
when file_to_big then
htp.p('File size exceeds 32K and hence cannot be displayed.');
htp.p('Consider spliting this file.');
when NO_DATA_FOUND then
htp.p('Document not found or access denied');
when others then
htp.p(sqlerrm);
end html_file;
end display; -
How to display local HTML file in web-view?
Hello everyone,
we have no problem with showing of remote HTML content from server in box on page in web view. But how we can show such a content when included in HTMLResources? In guide is just "Display a local HTML file in an in-app browser", which works wihout problem, but we don't want to show this HTML content in in-app viewer, it should be part of page.
Thanks
MartinNow i'm confused. In guide is this:
To use local HTML files, click the folder icon and specify the local HTML file. The HTML file (such as index.html) should appear in a folder that includes any images or scripts used in the HTML file.
But no info where such a local HTML file should reside. If this file is in HTMLResources, it is ignored. -
Output an HTML file as a printable document
Hi,
in my application, I generate and display an html file which
is supposed to be printed as a single document. I don't want the
page number, date, link, title to be shown on the print out.
how do I control them not to be shown?
as an example, application creates a portfolio of a person
and displays on the screen on a new window with no file or status
bars. it needs to be printed without any extra info such as page
number, title...
thanks in advance.Shida wrote:
it needs to be printed without any extra info such as page
number, title...
You go to each and every user of your application and open
their printer
preferences dialog box and change the options for this. Then
of course
many ornery users such as myself will change them back to the
way I want
it to print.
These are user controlled options in the client's system. I
was once,
years ago, aware of a Microsoft Active X applet that proposed
to give
web applications some control of these features for users of
a Microsoft
browser on a Microsoft operating system. Other then this
limited use
case, there is little that can be done. -
Changing a html file to a word document
hi there i have just purchased a new imac and installed microsoft office 2011 home and student.
I have made a cv on a web site which then asks you to save as a word document, the problem been is that it downloads the file as a html file so i cannot make changes to it. any ideas on how to convert it from the website to a word document. cheersWhy would you want to see the file as a page in ms word?
And could it be that MSW97 does not support html in the way that it could display the file as a page? -
Executing an HTML file within java program
I want my java code to be able to open/execute an HTML file that I have. How do you do this?
Thanks.You can display html in a java app, but it is not so simple to run a browser. What you want to look up is the WebBrowser class. Here is an excerpt from some code of mine that displays a url in the browser app in a panel, but there's some chaff in my code you would not be interested in (I'm using a card layout). You're better off loocing up org.jdesktop.jdic.browser which contains the WebBrowser class /**
* Reveal the container with the browser display. The browser display is
* currently hidded using a CardLayout, so it is a simple matter to swap
* displays; however, we put off actually loading the web page until the
* first time the display is revealed.
* @return true if the URL could be resolved and the given web page
* displayed.
public boolean showBrowser(
java.net.URL pURL )
// See if the web page component has not initialized.
if ( pWebBrowser == null )
pWebBrowser = new WebBrowser();
pBrowserPane.setViewportView( pWebBrowser );
if ( aLastURLVisited == null || ! aLastURLVisited.equals( pURL ) )
pWebBrowser.refresh();
pWebBrowser.setURL( pURL );
aLastURLVisited = pURL;
pDualLayout.show( pDualPanel, BROWSER_PANEL );
return true;
} -
Can't select local html files with web object in captivate 8
I can select pdf's via browse, but it I want to add local html files I have to type the path in manually. I'm guessing this is just a bug, I should be able to choose web pages for the web object even if they are local right?
Fireworks is a graphics editor that can export code; it is not an HTML/code editor.
If you have exported HTML from Fireworks, you ought to be able to re-import that, but I would think most people who use Fireworks exported code would just modify their Fireworks document and re-export. (Fireworks' code is not robust and it is only intended for mockups and prototypes. Fireworks is not intended for developing and maintaining live Web sites; Dreamweaver is.)
If your developer used Dreamweaver, then I really don't expect that Fireworks would be able to import that, nor any code that isn't in exactly the format that it can export. If you know your developer used Fireworks, then you need to look for .png files. Fireworks uses an enhanced version of the PNG format for its native document format.
If you are making small adjustments to your site, then you might be better off working in Dreamweaver. If you're doing a site re-design, then Fireworks is an excellent tool for laying out your design and producing your graphics, but you will, at some point, need to move over to Dreamweaver for coding.
Maybe you are looking for
-
STO with freight--to beloaded on material at GR--Critical
Hi, Scenario:Cross company stock transport Goods are transfered from plants A to B. PO in B with freight condition FRB1 is to be created. Goods issued against this PO. Goods are received in th B plant. B comes to know the EXACT freight costs ( cleari
-
Committed Qty by Vendor - Report
Hi Guys, Do we have standard report to Check - " Committed Qty by Vendor " Regards, Jackie
-
My CD drive doesn't burn anymore
when i attempt to burn a cd i get the following message, "The attempt to burn a disc failed. The device failed to calibrate the laser power level for this media" What should i do about that? im not really sure where to begin, could it be something to
-
How can I use normal JSP-Scripting in Studio Creator pages ?
Hello, if I try to integrate for example <jsp:scriptlet> for(int i=0; i < 10; i++) { out.println("Txt: " + i); </jsp:scriptlet> in my JSP Page it dosn't wok because the IDE complains that the jsp-document isn't wellformed due to the < sign. If you re
-
Hi, I am Meena. I am doing a project using NetBeans and MS-Access. Now I need to combine three tables. I take all the values from table3 and check with table2,table1 and get the result. Can you tell me some lines about this? That will helpful me to d