cancel
Showing results for 
Search instead for 
Did you mean: 

Button click event is not working

Former Member
0 Kudos

Hi All,

I have a button and table in my Interactive Form(NWDS 2.0.18 & ALD 7.0).

When I click the button it adds new row in the table.

This functionality is working fine in the PDF preview tab but when I

deploy and run the application it doesn't.

Please help me to solve this issue.

Thanks

Sundar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sundar,

yes, this version support dynamic forms. In Adobe products, dynamic forms are supported from version 7.

In Adobe LiveCycle Designer 7.1 (maybe in 7.0 too) you can discover whether your adobe form was created as dynamic. Open your pdf file in LiveCycle Designer, menu File -> Form Properties -> tab Compatibility, Form Type. There must be Acrobat 7.x <b>Dynamic</b> PDF Form File.

Which version of Adobe Reader do you use (you need version 7 or newer)?

Do you have enabled JavaScript in Adobe Reader? menu Edit -> Preferences -> tab JavaScript

Add a button into your adobe form. In click event write JavaSript, run at Client:

app.alert("Viewer Type is "+app.viewerType+"nVersion is "+app.viewerVersion);

Does it work?

Regards

Michal

Former Member
0 Kudos

Hi Michal,

I have added a button and the code as you said.

It's started working now.

I'm able to create rows dynamically by clicking a button.

Thanks for your great and timely help.

Thanks

Sundar

Answers (4)

Answers (4)

Former Member
0 Kudos

Problem solved.

Former Member
0 Kudos

Hi Sundar,

the best solution is ask your system administrator.

You can find version of ADS:

1. http://<server>:<port>; , System Information, all components, AdobeDocumentServices.

http://<server>:<port>; is J2EE engine where the Adobe document services are installed.

2.http://<server>:<port>/AdobeDocumentServices/Config

Page 16 in ConfigADS_NW2004s_SPS10.pdf

3. Report FP_PDF_TEST_00

Regards

Michal

Former Member
0 Kudos

Hi Michal

The following is the ADS version,

Component Name Version

AdobeDocumentServices 705.20060414080730.290845

AdobeDocumentServicesEjbClientLibrary 705.20060407121920.289077

Is this version support dynamic PDF?

Thanks

Sundar

Former Member
0 Kudos

Hi Sundar,

yes, it is the ID of InterActiveForm UI element.

Which version of ADS do you have (SP)? Maybe your ADS doesn't support dynamic adobe forms. Here is a note 938748 but it isn't exactly for your case.

Michal

Former Member
0 Kudos

Hi Michal,

How to find the ADS SP version?

Thanks

Sundar

Former Member
0 Kudos

Hi Sundar,

your adobe form must be generates as dynamic. In method wdDoModifyView there must be code:

  if(firstTime) {
    IWDInteractiveForm iForm = (IWDInteractiveForm)view.getElement("YOUR_FORM");
    iForm.setDynamicPDF(true);
  }

Regards

Michal

Former Member
0 Kudos

Hi Michal,

Thanks for your quick reply.

I have added this code in wdDoModifyView,

if(firstTime) {

IWDInteractiveForm iForm = (IWDInteractiveForm)view.getElement("InteractiveForm1");

iForm.setDynamicPDF(true);

}

InteractiveForm1 - is the ID of InterActiveForm UI element. Is that correct.

It doesn't help.

Thanks

Sundar