Problems displaying PDF in Portal EP7 - only able to display HTML form
Hi,
Anyone knows how to force showing of PDF based form instead of HTML form in the portal? We're currently on EP7 SPS10.
We have tested ADS in backend, meaning that travelforms show up as PDF there and we can control what to show with a switch in a table. But it doesn't seem to be picked up in the portal. Regardless of whether we set the parameter sap.xss.tra.UsePDF or not (both in the iview property Application Parameters and/or in the resource "EMPLOYEE_TRAVE_TRIP_FORM_PDF" of service "EMPLOYEE_TRAVEL_TRIPFORM") it still displays the HTML form.
Has anyone experienced this before? We're having a hard time figuring out where and how to enable PDF forms. Any help is greatly appreciated!
Thanks,
Hans Petter Bjørn
Hans,
We have the same problem.Did you figure out how to do this? Any info would be extremely helpful.
Thanks
Ronnie
Similar Messages
-
I am trying to use a interactive form and it says "see below" This is a IRS form and has worked before.
is there a tech support phone number?
Please wait...
If this message is not eventually replaced by the proper contents of the document, your PDF
viewer may not be able to display this type of document.
You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by
visiting http://www.adobe.com/go/reader_download.
For more assistance with Adobe Reader visit http://www.adobe.com/go/acrreader.
Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. Mac is a trademark
of Apple Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the U.S. and other countriesThat means you are looking at the form online with a browser that uses its own (incompatible) PDF viewer, not the Adobe Reader plugin.
Either
download the form to your local disk and fill it from there
use a browser that employs the Adobe Reader plugin
configure your browser to use the Adobe Reader plugin: http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html -
PDF viewer may not be able to display this type of document.
I am trying to down load an HMRC file ChV1 which I believe is interactive (my layman's description - I have to fill it in) but I get the message ...
"If this message is not eventually replaced by the proper contents of the document, your PDF
viewer may not be able to display this type of document. , etc.,
I am using Windows 7 and Google Chrome
But I have the latest version - Adobe Reader Version 11.0.10. Can anyone help, please?
MartinIt may be that the "PDF form" is an XFA form created by LiveCycle Designer. These forms are wrapped in PDF and to view/use one must use Acrobat or Adobe Reader.
BUT -- today one can use browsers that provide their own built-in PDF reader that cannot 'service' XFA forms.
Google Chrome is one of those browsers. So, don't bother with trying to view/use/do any thing to - with PDFs when using Chrome.
Save the PDF to your computer's HDD.
Now, open the PDF with Adobe Reader XI (fully updated of course). Process the form.
Be well... -
Hi all,
I have a problem when I display a PDF in SAP Portal. This application shows me a form, developed in smartforms, in new windows in SAP Portal. In QA I donu2019t have a problem only in PRD. My problem is that this PDF doesnu2019t open directly, appears a pop up asking me to save it.
Why in QA this pop up doesnu2019t appear but in PRD appears.
There is some configuration in SAP Portal for this????
Anybody can help me???
Regards,
MarceloMarcelo,
1. Try disabling the pop up blocker if any on your production system.
2. Compare the pdf properties on both systems.
Open a pdf file, go to edit-> preferences and compare it on both the systems.
Hope this helps.
Cheers,
Sandeep Tudumu -
Display PDF file in the Apex query report using HTML Expression
Hi Folks,
I have PDFs stored in BLOB columns along with FILE_ID column in the database.
I want to display these to the APEX user on the page at runtime.
I have created a SQL Query report page to display FILE_ID column.
I am using HTML Expression property of the FILE_ID column to pull the image from the table using PROC_DISPLAY_DOCUMENT procedure.
I typed folowing code int the HTML Expression text area of the FILE_ID column of the report page :
<img src="#OWNER#.proc_display_document?p_id=#file_id#"/>
I am using following Procedure code:
create or replace procedure "PROC_DISPLAY_DOCUMENT"(p_id number) as
s_mime_type varchar2(48);
n_length number;
s_filename varchar2(400);
lob_image blob;
Begin
select MIME_TYPE,dbms_lob.getlength(blob_content),file_name,blob_content
into s_mime_type,n_length,s_filename,lob_image
from tbl_upload_file
where file_id = p_id;
owa_util.mime_header(nvl(s_mime_type, 'application/octet' ),false);
--set the size so the browser knows how much it will be downloading
htp.p( 'content-length: '|| n_length );
--The file name will be used by the browser if the users does a "save as"
htp.p( 'content-Disposition: filename="' || s_filename ||'"');
owa_util.http_header_close;
--Download the BLOB
wpg_docload.download_file( lob_image );
exception
WHEN NO_DATA_FOUND THEN
RAISE_APPLICATION_ERROR(-202121,'Record matching screenfield filename not found, PROC_DISPLAY_DOCUMENT.');
end;
--This is very Important
--grant execute on PROC_DISPLAY_DOCUMENT to public;
This code does not work and report does not display PDF image.
Any help to troubleshoot this code will be appreciated.
Thank you in advance.
JayaHi Dimitri,
I hope you can see HTML Expression code now. Thank You for responding.
I have PDFs stored in BLOB columns along with FILE_ID column in the database.
I want to display these to the APEX user on the page at runtime.
I have created a SQL Query report page to display FILE_ID column.
I am using HTML Expression property of the FILE_ID column to pull the image from the table using PROC_DISPLAY_DOCUMENT procedure.
I typed folowing code int the HTML Expression text area of the FILE_ID column of the report page :
[!-- img src="#OWNER#.proc_display_document?p_id=#file_id#" ]
I am using following Procedure code:
create or replace procedure "PROC_DISPLAY_DOCUMENT"(p_id number) **
mimetype varchar2(48);
n_length number;
s_filename varchar2(400);
lob_image blob;
Begin
select MIME_TYPE,dbms_lob.getlength(blob_content),file_name,blob_content
into s_mime_type,n_length,s_filename,lob_image
from tbl_upload_file
where file_id = p_id;
owa_util.mime_header(nvl(s_mime_type, 'application/octet' ),false);
--set the size so the browser knows how much it will be downloading
htp.p( 'content-length: '|| n_length );
--The file name will be used by the browser if the users does a "save as"
htp.p( 'content-Disposition: filename="' || s_filename ||'"');
owa_util.http_header_close;
--Download the BLOB
wpg_docload.download_file( lob_image );
exception
WHEN NO_DATA_FOUND THEN
RAISE_APPLICATION_ERROR(-202121,'Record matching screenfield filename not found, PROC_DISPLAY_DOCUMENT.');
end;
--This is very Important
--grant execute on PROC_DISPLAY_DOCUMENT to public;
This code does not work and report does not display PDF image.
Any help to troubleshoot this code will be appreciated.
Thank you in advance.
Jaya -
Passing parameters from webdynpro to rfc and displaying pdf in portal
Hi,
I am creating a webdynpro application where in I am using the following code for catching the current user who has logged into the portal.
try{
IWDClientUser user = WDClientUser.getCurrentUser();
if(user.isAnonymousUser()){
//User is anonymous .. do something...
}else{
//user is authenticated..do something
}catch(WDUMException e){
//do something...
I am calling a rfc, how do I pass the username to the rfc?
This rfc will retrieve some data from R/3 and covert the data into pdf format.
How do I display this pdf document in the portal?
Thanks in advance,
JayeshHi Jayesh,
The rfc you are using should have a imput parameter that takes the user id as a parameter. When you import the rfc in webdynpro you will get an input class for the rfc. The parameter will either be in the input class itself or in a seperate structure which should also have a class separetely.
For example the rfc name is GET_USER_DETAILS
The input class will something like
INPUT_GET_USER_DETAILS
There will also be an ouput class like
OUTPUT_GET_USER_DETAILS
If there is a structure there will be class for that structure like
STUSER
If the parameter is in the INPUT CLASS then
after you initialize the class you can assign it to the input object
For Example
INPUT_GET_USER_DETAILS inp = new INPUT_GET_USER_DETAILS
inp.setUserID(userid)
If it is in the structure then
STUSER st = new STUSER
st.setUserID(userid)
Then assign the structure object to the input object
inp.setStUser(st)
About the PDF document.
When you create a PDF form you will create a label or an text field in the form.
The label or the text field will be mapped to the context of the view.
You can assign the username to the context variable which will be reflected in the pdf document.
Hope this helps
Regards
Prakash -
Has anyone else had this problem? I have the latest version.
See Configure browser to use the Adobe PDF plug-in
-
How to display Selected data from TextInput only should be displayed in DataGrid
Hi ,
I have lot of data on to my Datarid displayed with the help of An ArrayCollection as dataprovider .
I want to use filtering Functionality of ArrayList .
I have a TextInput and when the suer enters some text , then i want only related data shpould only be displayed on to the DataGrid .
I have tried this , but i have struck up
This is my ArrayCollection
<mx:ArrayCollection id="arraycoll">
<mx:Object>
<mx:name>Ravi</mx:name>
<mx:pass>Keyboard</mx:pass>
</mx:Object>
<mx:Object>
<mx:name>Kiran</mx:name>
<mx:pass>Keyboard</mx:pass>
</mx:Object>
<mx:ArrayCollection>
This is my DataGrid
<mx:DataGrid dataProvider="{arraycoll}" x="329" y="199" width="300" height="300" visible="true" >
public function SearchData():void
arraycoll.filterFunction = doFilter;
private function doFilter(item:Object):Boolean {
var searchString:String = myTextIp.text.toLowerCase();
// Need logic here
<mx:TextInput id="myTextIp" name="SeacrhName" change="SearchData()">
For example if the user presses Ra on to TextInput then i want to display only as Ravi on to DataGrid .
Please help .Hi,
Try this
private function doFilter(item:Object):Boolean
var searchString:String = myTextIp.text.toLowerCase();
if (item.name.search(searchString) == 0)
return true;
else
return false -
Problem in opening 'Find Service Request' and 'Create Service Request' HTML forms
Hi,
I am working on creating some date for EBS Service, and I am unable to open 'Find Service Request' and 'Create Service Request' HTML forms.
I keep getting the error message :
Oracle error - 20001: ORA-20001: APP-FND-02902: Multi-Org profile option is required. Please set either MO: Security Profile or MO: Operating Unit profile option. has been detected in MO_GLOBAL_INIT.
I have min knowledge of EBS set up and configuration. We just use EBS as a source system for our ETLs. Please suggest any workaround to get resolve the issue.
Thanks,
KishoreNavigate to System Administrator responsibility > Profile > System. Search for the profile MO: Operating Unit and under responsibility field, put in the responsibility name you are using for creating the service request, click OK and enter the desired operating unit value in the next window. It pulls up all operating units defined and you can chose the desired one.
Thanks
Shree -
Problem view PDF Form in Chrome
Hi all,
I have a short-lived process to return the PDF to the client.
With IE and Firefox, it works fine, i.e I can view the PDF in the browser.
With Chrome, I see this message:
Please wait...
If this message is not eventually replaced by the proper contents of the document, your PDF
viewer may not be able to display this type of document.
You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by
visiting http://www.adobe.com/products/acrobat/readstep2.html.
For more assistance with Adobe Reader visit http://www.adobe.com/support/products/
acrreader.html.
Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. Mac is a trademark
of Apple Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the U.S. and other
countries.
In one machine with Adobe Reader 9.4.0, I can view it in Chrome.
In other machines with Adobe Reader 9.4.1 and Adobe Reader X I cannot view it in Chrome.
Which can be the cause of the problem?
Sample pdf: http://launchpadlibrarian.net/52021969/ch2-online.pdf
Thank you and regards,
AnhChrome just reealased and update so now by default it uses its own PDF viewer.
To disbale it
Tools>Options>Under the Bonnet>Content Settings>Plug-ins>Disbale individual plug-ins
Scroll down and you will see Chrome PDF Viewer
Click Disable
Kind Regards
Kev -
How can I display PDF files in my browser. SARS reqire it for e-filing?
Previous error message was working with Explorer. This came up working with Firefox
I did upgrade and it was found that the latest version was installed.
Please wait...
If this message is not eventually replaced by the proper contents of the document, your PDF
viewer may not be able to display this type of document.
You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by
visiting http://www.adobe.com/products/acrobat/readstep2.html.
For more assistance with Adobe Reader visit http://www.adobe.com/support/products/
acrreader.html.
Regards
Allen Versteeg -
Unable to login to portal and any links in index.html page
Hi,
I am not able to login to portal. Only able to login to System information link.
Whenever I try to login to other links, I have been taken to User input screen. After I enter the username and password, I am getting response as if Page is refreshed.
Only log geting updated is default trace during this action.
Few Error messages from default trace file during this action:
#1.5 #00188B34FD3300590000002E000065BC0004620157F23D55#1233657817007#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#sap.com/tcwddispwda#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#J2EE_GUEST#0##n/a##8310f2f3f1df11dda01a00188b34fd33#SAPEngine_Application_Thread[impl:3]_11##0#0#Error#1#/System/Server/WebRequests#Plain###application [webdynpro/dispatcher] Cannot send an HTTP error response [500 Application error occurred during request processing. (details: java.lang.NullPointerException: null)].
The error is: com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: An attempt to write after the stream had been closed.
Exception id: [00188B34FD3300590000002C000065BC0004620157F23ADA]#
#1.5 #00188B34FD33006500000035000065BC00046201585A3EDE#1233657823820#com.sap.engine.services.security.authentication.logonapplication#sap.com/com.sap.security.core.admin#com.sap.engine.services.security.authentication.logonapplication.doLogon#J2EE_GUEST#0##n/a##8722f8c0f1df11dd933700188b34fd33#SAPEngine_Application_Thread[impl:3]_4##0#0#Error##Java###doLogon failed
[EXCEPTION]
#1#com.sap.security.core.logon.imp.UMELoginException
at com.sap.security.core.logon.imp.SAPJ2EEAuthenticator.logon(SAPJ2EEAuthenticator.java:949)
at com.sap.security.core.logonadmin.ServletAccessToLogic.logon(ServletAccessToLogic.java:208)
at com.sap.security.core.sapmimp.logon.SAPMLogonLogic.doLogon(SAPMLogonLogic.java:914)
at com.sap.security.core.sapmimp.logon.SAPMLogonLogic.uidPasswordLogon(SAPMLogonLogic.java:578)
at com.sap.security.core.sapmimp.logon.SAPMLogonLogic.executeRequest(SAPMLogonLogic.java:158)
at com.sap.security.core.sapmimp.logon.SAPMLogonServlet.doPost(SAPMLogonServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
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)
Regards,
Nallasivam.DHi,
have already read this thread:
it´s nearly the same problem.
Have you checked if the java guest account is enabled? Please check note 1231650.
Best Regards,
Jens -
Problem in displaying smartform as pdf in portal
Hi all,
We created a smartform and we are displaying as a pdf in portal.Everything is fine and pdf is coming.But there is arabic data in the form .
Some of the arabic data is coming perfectly.
But some data is coming in Japanese or chinese and some data is coming like
F,D'! 9(/'D1-EF (F 5'D- 'D3JA 叉â
Department 'D%/'1) 'D9'E) DDEH'1/ 'D(41J).
Please let me know what could be the problem.
Thanks and Regards,
Rajeshhi Rajesh.....
Could you explain me how 2 display SMARTFORM as PDF in portal..... please.....
I have the requirement as follows.....
By pressing a button the smartform must be generated.....
SO what must be the RFC o/p from ABAP.... I am ABAPER basically
and what the portal guys must do.....
pleaseeee -
Problem with pdf display downloaded from application server
Hi all,
I have a problem with displaying pdf downloaded from application server (saved in BINARY MODE).
I am getting the pdf output of adobe form in FPFORMOUTPUT-PDF as rawstring back to my program and then converting that rawstring into binary form using the function module SCMS_BINARY_TO_STRING.
Now, when I export the data to presentation server directly using cl_gui_frontend_services=>gui_download, the pdf is downloaded properly.
However, when I save the data to application server file by looping at the internal table obtained from SCMS_XSTRING_TO_BINARY and using TRANSFER, and subsequently downloading the file in "unconverted format" from AL11 to my desktop, I am getting a "blank" pdf file (with the same number of pages as the one downloaded using gui_download).
I have tried different encodings during download but in those cases i get corrupted pdf message. only the default option of INTIAL value seems to work.
I am forced to believe that there is a problem in my code which saves the data to app server but I cant find any solution that is logical. Any solution to this would be greatly appreciated.
Regards,
Sasi
Edited by: Sasi Upadrasta on Sep 29, 2010 7:55 PMused a program to read the file from appl server and then downloading it to desktop.
-
Problem displaying PDF stored in BLOB column
Hello everyone.
I've been trying to follow this tutorial http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::p11_question_id:232814159006 on displaying PDFs stored in BLOB columns. This is being performed on Apex 4.2, with my DB running 11g. I've got my procedure, which I'll post below:
create or replace procedure "PDF" (p_id IN gvo_documents.doc_id%type)
is
l_lob blob;
l_amt number default 30;
l_off number default 1;
l_raw raw(4096);
begin
select contents into l_lob
from gvo_documents
where doc_id = p_id;
-- make sure to change this for your type!
owa_util.mime_header( 'application/pdf' );
begin
loop
dbms_lob.read( l_lob, l_amt, l_off, l_raw );
htp.prn( utl_raw.cast_to_varchar2( l_raw ) );
l_off := l_off+l_amt;
l_amt := 4096;
end loop;
exception
when no_data_found then
NULL;
end;
end;
I am trying to run this through a PL/SQL dynamic region and while I don't receive any error's, the content displayed is a huge mess of garbled text and odd characters. I've tried to run this procedure on numerous other document types, including word files and jpeg images, all with the necessary changes in my procedure, and regardless of what I use, I still get a large mess of strange characters. Does anyone have any information or ideas about why this is happening?If I understand correctly, your requirements needs to be broken down into two problems:
1) click link that pops up a window displaying a new APEX page
2) an APEX page the displays the document, not downloads it.
I haven't done #1 (yet).
However, you may be able to generate a URL that points to the new page as part of the SELECT statement for the Report.
This has a related question, but no answer yet:
open pdf in popup browser window
The key is target="_blank" for the anchor tag.
To generate the URL, you should use the APEX_UTIL.prepare_URL() function.
If that doesn't work, a Dynamic Action that does some magical JavaScript stuff may be needed.
For #2, I lost the URL that showed how to display a PDF as part of a "form" page.
From what I remember:
Start with a blank page with one blank HTML region (all the Items go in the HTML region)
Add an Item for the PK/Doc_ID
part I forgot Create a Data Manipulation Process
- Automated Row Fetch
- On Load - After Header
- (stuff for your table/view)
part I forgot Create an (I believe) "File Browser" item type. For Settings:
- Storage Type "BLOB column specified in Item Source" (and place the column name of the BLOB there)
- MIME Type Column: (column name) -- since you have multiple types, this is a MUST HAVE
- Filename Column: (column name) -- I highly recommend you have this.
- Content Disposition == INLINE <-- this is the kicker
Also, you will need a Browser Plugin for each of the MIME Types (otherwise, the browser may try to 'download' the file)
Browsers can handle Image types internally. Adobe's plugin can handle PDFs. I don't know about Word/Excel.
Again, I don't remember the exact details, but that should cover most of it.
MK
Maybe you are looking for
-
JTree Display keeps Repainting and Missing Information
I have a JTree that has objects for each node. When I try to send regular Text in the toString of the object, I have no issues with the display of the Tree. When I send HTML, the screen has issues with the repaint?? I expand the Tree and some of the
-
Deploying libraries and projects...
Hello All We have problem trying to make a distribution on a compiled library. The application that we had consist of many projects. We separate the service objects and the objects in different projects, because we need to reference a service object
-
Hi Friends, i need to extract the data from table S546 in R3 into SAP BW 7.3. Could you anyone send me how to extract the data from S546 to BW 7.3. Regards sri
-
Standard (application-based) firewall with one additional port open?
Lion and Snow Leopard both have application based firewalls. I want to allow access to a Minecraft server on port 25565 but I don't want to allow all of Java. How can I open one port in addition to leaving the standard firewall in place?
-
Flash plugin stops playing when hidden or on different tab.
I've noticed (a few months ago, actually) that in most browsers I use to test my application (Firefox, chrome and explorer) the flash plug in, while playing it's content, will stop, or freeze, when the actual plug in playback window is out of the