on 07-24-2006 3:34 PM
Hallo experts,
I use Adobe Forms in my Webdypro application.
In Form setPDFSourse set dynamically (read from SAP as byte[]) , I do not know the Context.
How can I save filled Adobe Form, because I must show the Form by next Step in anothe window?
Thank you very much!
Yes, differently PDF is not displayed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This sounds to me like a client-side problem whith adobe reader plugin in your browser. What is your reader version?
You can try the following to check if there is any content in the byte[]:
String s = wdContext.currentContextElement().getPdfData().length + "";
byte[] test = s.getBytes();
final IWDCachedWebResource resource =
WDWebResource.getWebResource(
test,
WDWebResourceType.TXT);
try {
final IWDWindow window =
wdComponentAPI.getWindowManager().createExternalWindow(
resource.getAbsoluteURL(),
"Window title",
false);
window.open();
} catch (Exception e) {
wdComponentAPI.getMessageManager().reportException(
new WDNonFatalException(e),
false);
}
Hallo Sebastian,
However, I have like this. Attribute fillPdf (type binary) is in my component controller´s context.
I save data with
wdContext.currentContextElement().setFillPdf(wdContext.currentContextElement().getPdfSource());
I write to show
final IWDCachedWebResource resource = WDWebRe-source.getWebResource(wdContext.currentContextElement().getFillPdf(), WDWebResourceType.PDF);
try {
final IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(
resource.getAbsoluteURL(), "Window title", false);
window.open();
} catch(Exception e) {
wdComponentAPI.getMessageManager().reportException(new WDNonFatalException(e), false);
}
Unfortunatelly, PDFForm is empty.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Raissa,
create a context attribute of type "binary" in your component controller´s context. Then create a mapping of this attribute to your two views. Assign the property pdfSource of the interactive form UI element to this context attribute in both views.
Hope that helps.
Regards
Sebastian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.