cancel
Showing results for 
Search instead for 
Did you mean: 

The addInstance Function don't work in the WDJ.

Former Member
0 Kudos

Hi, experts,

I meet a problem.

The action is:

1. I create a interactive form in a view in the WDJ(WebDynpro for Java) component.

2. I right click the interactive form and click the "Edit" item, and the Design View displayed.

3. I create a subform(named ItemSet) in the Design View with a text field.

4. I create an add button to add a new text field to the subform using 'AddInstance':

the code for the add button clicking:

DataSource.Page1.Formbody.Addressbox.instanceManager.addInstance(1); //the "addInstance" function don't displayed in the dropdownlist of the value help

xfa.form.recalculate(1);

5. When the add button is clicked in the Preview tab of the Adobe livecycle designer, a new text field display.

However, after I run the application, I click the add button, the add button don't work in the IE browser.

The Vesion of my OS: Windows 2003 server

The Version of my adobe designer: Adobe livecycle designer es 8.1.2.4246.1.597341.

The Version of my IE browser is IE6.0.

The adobe acrobat version is : Adobe Acrobat 7.0 Professional

Do you give me some hint for resolve the problem?

Best regards,

tao

Edited by: wang tao on Mar 24, 2010 11:51 AM

Accepted Solutions (1)

Accepted Solutions (1)

OttoGold
Active Contributor
0 Kudos

Hello,

first: I don´t know anything about the WDJ. But maybe, only maybe this is not related to WD but it is a form problem. Make sure your form is dynamic/ interactive, that is a good point to start, but... there are few conditions that have to be met to make this work. Check please if:

- the table level subform has content flowed, direction top to bottom (so it looks like a table)

- the table level subform must have the layout height set to auto-fit

- and the last but probably the MOST IMPORTANT: check if you have set initial count 1 for the row you want to duplicate and this row is visible, this is crucial!!

hope that helps, Otto

Former Member
0 Kudos

Hi, Otto,

Thanks a lot for your help.

The following is the properties of the Interactive form:

dataSource DataSource (the DataSource is binding a context node )

displayType activeX

enabled true

height 600px

id InteractiveForm

mode updateDataInPdf

pdfSource PDFResource ( the PDFResource is binding a context attribute )

readOnly false

So I think my interactive form is dynamic/ interactive.

I am sure the table level subform has content flowed, direction top to bottom, the following is configuration:

In the subform tab of the Object tab, I find the content is flowed, and flow Direction is top to bottom.

In the layout tab, I found that the layout height set to auto-fit initially.

In the binding tab of the object tab of the subform, I found the initial count is 1 and selected the repeat subform for each data Item.

However, I can run it correctly in the Preview PDF in the Adobe LiveCycle Designer.After I run the application, I click the add button, the add button don't work in the IE browser.

Do you give me some hint?

Former Member
0 Kudos

Hi, Otto & Chintan,

Thanks a lot for your help.

I download a pdf form from the http://www.adobe.com/devnet/livecycle/articles/AddingRemovingTableRows.pdf .

The table add a row after I click the add button in the pdf.

I import the pdf form into the adobe LiveCycle designer,in the Preview tab of the Adobe livecycle designer, the table add a row in the pdf.

However, after I run the application, I click the add button, the new row doesn't display in the adobe.---The same problem has occured.

Once I click 7 times, I find a message box pop up: "The maximum allowable number of rows is 7. You cannot add any more rows".

I don't know how to resolve the problem.

Do you give me some hint?

Best regards,

tao

chintan_virani
Active Contributor
0 Kudos

Another couple of things to try:-

1. Change the displayType property to native.

2. In wdDoModify add following code:-

((IWDInteractiveForm)view.getElement("<Your Form Name>")).setDynamicPDF(true);

Former Member
0 Kudos

Hi, Chintan,

Thanks a lot for your help.

The problem has been resolved under your help!

Thanks again!

Best regards,

tao

Answers (1)

Answers (1)

chintan_virani
Active Contributor
0 Kudos

Try out these steps once your LiveCycle Designer opens:-

1. Goto Edit --> Form Properties --> Defaults --> Make sure you have Preview type as Interactive Form and Default rendering as Adobe Dynamic Form.

2. Also go to Tools --> Options --> Document Handling --> Select Adobe Dynamic Forms

Former Member
0 Kudos

Hi, Chintan,

Thanks a lot for your help.

I download a pdf form from the Internet with a table. The table would add a row after I click the add button in the pdf.

I import the pdf form into the adobe LiveCycle designer,in the Preview tab of the Adobe livecycle designer, the table add a row in the pdf when I click the add button.

However, after I run the application, I click the add button, the add button don't work in the IE browser.---The same problem has occured.

Do you give me some hint?

Best regards,

tao