on 11-23-2007 2:19 PM
Hi,
I have a dynamic PDF with adobe javascript " addInstance (1) ". In the preview of Adobe Lifecycle the PDF works like it should. However when I deploy the PDF in Developer studio the button is working anymore. It looks like the PDF isnt dynamic after deployment.
I have tried to add the following code , but it isnt working:
IWDInteractiveForm iForm1 = (IWDInteractiveForm)view.getElement("InteractiveForm1");
iForm1.setDynamicPDF(true);
Also, the properties of the PDF is set to Interactief Form, and XDP preview format is Dynamic PDF.
Does anyone know what the problem is?
Thank in advance.
Thaibinh
-
Application details:
Acrobat Reader 7.0.9 and higher
Adobe Live cycle 7.1
Developer studio S 7.0.13
AdobeControl version 6.3018.0.1
Type browser Internet Explorer 6.0
Operation system Linux
Type of interact form ACF
Netweaver 2004s
-
Hi Harman,
Am i inserting the code at the correct spot?
//@@begin javadoc:wdDoModifyView
/**
Hook method called to modify a view just before rendering.
This method conceptually belongs to the view itself, not to the
controller (cf. MVC pattern).
It is made static to discourage a way of programming that
routinely stores references to UI elements in instance fields
for access by the view controller's event handlers, and so on.
The Web Dynpro programming model recommends that UI elements can
only be accessed by code executed within the call to this hook method.
*
@param wdThis Generated private interface of the view's controller, as
provided by Web Dynpro. Provides access to the view controller's
outgoing controller usages, etc.
@param wdContext Generated interface of the view's context, as provided
by Web Dynpro. Provides access to the view's data.
@param view The view's generic API, as provided by Web Dynpro.
Provides access to UI elements.
@param firstTime Indicates whether the hook is called for the first time
during the lifetime of the view.
*/
//@@end
public static void wdDoModifyView(IPrivateInfosessieenqueteView wdThis, IPrivateInfosessieenqueteView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
{
//@@begin wdDoModifyView
if (firstTime) {
IWDInteractiveForm iForm1 = (IWDInteractiveForm)view.getElement("InteractiveForm");
iForm1.setDynamicPDF(true);
//@@end
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Harman,
Thank you for the tips, however it isnt working yet.
But I do see that I have some difference comparing with your advices.
1) I am using Adobe Reader 8.1. --> Ok.
2) Make sure that the Table that you are adding the Instance to is wrapped in a subform with Flow layout. --> OK
3) I have the following code in the Click event of my button:
Table1.Row1.instanceManager.addInstance(1);
--> I have the code _extramaatregel.addInstance(1);
extramaatregel is the name of the subform. I dont have a table in the subform extramaatregel. Do i have to make a table in the subform?
4) For troubleshooting purposes, try to place some alert messages to make sure the button event is getting triggered:
xfa.host.messageBox("Button is clicked ", "Warning", 3); --> very useful tip thanks.
5) if (firsttime) {
IWDInteractiveForm iForm1 = (IWDInteractiveForm)view.getElement("InteractiveForm");
iForm1.setDynamicPDF(true);
--> OK
If it isnt a problem, can you send me the PDF (or the PDF part with the button and subform)?
Thaibinh
email: t.truong@ideo-nl.com
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
*I have just emailed you our sample PDF form.
<b>About including table withing the subform:</b> You don't have to include a table within the subform; 2 nested subforms should also work fine. I just found that including a table within a subform (with flow layout) worked better. It was easy to set the layout this way.
regards,
harman
HI Patrick,
I have the same scenario in my Java NWDS project, and its working.
Not sure where you problem is, but here are few hints.
1) I am using Adobe Reader 8.1.
2) Make sure that the Table that you are adding the Instance to is wrapped in a subform with Flow layout.
3)
I have the following code in the Click event of my button:
Table1.Row1.instanceManager.addInstance(1);
4) For troubleshooting purposes, try to place some alert messages to make sure the button event is getting triggered:
xfa.host.messageBox("Button is clicked ", "Warning", 3);
5) The following piece of code is a must in the wdDoModifyView method:
IWDInteractiveForm iForm1 = (IWDInteractiveForm)view.getElement("InteractiveForm1");
iForm1.setDynamicPDF(true);
Hope this helps,
Regards,
Harman
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 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.