Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

29-07-2008

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

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.

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