Highlighted

Addinstance and change of presence

Avatar

28-07-2008

I have a subform which is invisible then when I click a button it becomes visible and within this subform is an add button.

for (var i = 1; i < 2; i++)

_ItemLine.addInstance(1);

However the new ItemLine is invisible, its there because the following subforms move down but its invisible even though the first ItemLine is visible.

I've tried lots of things but nothing works, Any ideas??

Arnie

Replies

Highlighted

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
pguerett

29-07-2008

Is the subform that contains the itemLine visisble? You must make sure that all container subforms are visible.
Highlighted

Avatar

29-07-2008

Hi Paul, itemLine is an invisible form on the page1 which is made visible when I click the Next button (which is within Header on page1.) Within the itemLine is the Add button to add an extra itemLine. The first is visible (created by the Next button)but any which are created by the addInstance are invisible which is the problem.
Highlighted

Avatar

29-07-2008

FIXED!! I set itemLine as visible then in initialize on page1 I set it to hidden - works a treat - thanks for your help