on 06-20-2008 8:27 AM
Hi all,
I would like to generate a PDF at runtime into a new non modal external window.
This PDF is stored into a view and bind to my context.
Best regards,
Tony
Hi,
May be of use for you https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0cc41cb-9576-2b10-99a6-ab90ef28...
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
I have another problem.
When I click my button, my pdf seems empty. I have to click a second time to see him filled.
How I can simulate the click on the button in the wdDoInit ?
Regards
Tony
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tony,
What do u exactly mean by generating the PDF at runtime? U have to design the pdf & put that in a view. put that view in a window & use it. In case u don't want to design the PDF in webdynpro, then u can use smartform developed in ABAP . Use that as the resource for generating the PDF in webdynpro.
For any further clarification, please do revert back.
regards
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Insert InteractiveForm into view's layout. Create attribute value in Context with type binary.
Assign PDF value to attribute value and bind the InteractiveForm's pdfSource.
byte[] pdfbyte = wdContext.currentNewOutputElement().getPdf();
final IWDCachedWebResource resource = WDWebResource.getWebResource(pdfbyte, WDWebResourceType.PDF);
resource.setResourceName("TestPDF.pdf");
//pop up
String url = resource.getAbsoluteURL();
IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"value");
window.show();
Regards,
Eric
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tony,
Please refer this, may helpfull.
http://help.sap.com/saphelp_nw04s/helpdata/en/dc/f1783fe3263042e10000000a114084/frameset.htm
Regards,
Eric
1) Put an Interactiveform UI element.
2) you will get URL of the file form Resource
3) create window using URL
refer this [blog|/people/amit.rai4/blog/2008/02/01/demystifying-attachments-with-sap-interactive-forms]
good luck
nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.