Expand my Community achievements bar.

SOLVED

create new instance

Avatar

Level 2

hi this is naveen , i m using JavaScript in live Cycle Designer ES2 ver. 9

i m using a subform inside a subform inside form content

SubForm1._Subform2.CreateInstance(True)

it is not working for me....

          how can i create a object new instance in it..

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

The container that the subform is inside of, must be set to flowed in order to be able to set the subform to be repeatable (Object > Binding palette) and to enable the Object > Pagination palette. Generally the page is set to flowed and inside the page you will have positioned subforms for objects that do not grow (eg buttons, dates, textfields that do not expand in height, etc) and flowed subforms for objects that grow.

Yes, your file needs to be saved as a Dynamic XML file.

Hope that helps,

Niall

View solution in original post

6 Replies

Avatar

Level 9

Hello Naveen,

Have you made the parent subform as flowable ?? Before saving please check that you should save this in Dynamic format instead of static one .

Thanks.

Bibhu.

Avatar

Level 10

Hi,

The syntax is addInstance(true); (true with a lowercase t) or addInstance(1);

So if Subform2 is the repeating object (set to repeat in the Object > Binding palette) then this should work in the click event of a button:

SubForm1._Subform2.addInstance(true);

Hope that helps,

Niall

Avatar

Level 2

hi thanks for ur help,

but actually i had encountered my problem , i m not able to edit my subform's pagination palette it is disabled........

can u help me to know how can i enable it ?....

Avatar

Level 2

hi thanks , i m saving it in .pdf(adobe dynamic XML form)....is it alright????

Avatar

Correct answer by
Level 10

Hi,

The container that the subform is inside of, must be set to flowed in order to be able to set the subform to be repeatable (Object > Binding palette) and to enable the Object > Pagination palette. Generally the page is set to flowed and inside the page you will have positioned subforms for objects that do not grow (eg buttons, dates, textfields that do not expand in height, etc) and flowed subforms for objects that grow.

Yes, your file needs to be saved as a Dynamic XML file.

Hope that helps,

Niall