on 07-18-2011 12:37 PM
Dear All,
I have a requirement in webdynpro to display pdf file located in a server.
Inside server All the pdf files are saved in a specified folder like employee pernr number as folder name
and the pdf file name as July-2011(Month-Year).
I will pass pernr,month and year values from my webdynpro screen.Based on these input fields the respective pdf file should be opened.
Please Suggest
Thanks,
Sudhir.
Hi,
Use an interactive Form.
In short:
1. After User input, read the corresponding PDF from Appserver into an Xstring variable and Bind it to Context. Do this with
OPEN DATASET <abc> FOR INOUT IN BINARY MODE.
READ DATASET<abc> INTO <xstring>.
CLOSE DATASET <abc>.
2. Bind the Xstring Context Element to the data-rpoperty of the UI-Element, set the UI-Element MIME-Type to 'PDF'.
The outcome is pretty much the same like the old iFrame-stuff.
Alternatively you can do it via Filedownload UI-Element.
You might want to play around with both UI-Elements and see which one suits you better. If you require more detailed help for certain steps, don't hesitate asking.
regards, Lukas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.