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

problem with hidden/invisible table

Avatar

Avatar
Validate 1
Level 2
ibwaheemi
Level 2

Like

1 like

Total Posts

31 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
ibwaheemi
Level 2

Like

1 like

Total Posts

31 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
ibwaheemi
Level 2

21-12-2008

hi



i am trying to make invisible or hide a whole table in a dynamic form using a checkbox, i have this formcalc in the change event.



if (this.rawValue == 1)

then

Table1.presence = "visible";

else

Table1.presence = "hidden"

endif



Any ideas?

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 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

611 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

22-12-2008

Check the java console and see if you are getting any errors. Is the form saved as dynamic?

Avatar

Avatar
Validate 1
Level 3
xrum
Level 3

Likes

7 likes

Total Posts

89 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 3
xrum
Level 3

Likes

7 likes

Total Posts

89 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
xrum
Level 3

22-12-2008

i dont think you need "then" or "endif"



your code should look something like this:



if (this.rawValue == 1)

Table1.presence = "visible";

else

Table1.presence = "hidden"

Avatar

Avatar
Validate 1
Level 2
ibwaheemi
Level 2

Like

1 like

Total Posts

31 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
ibwaheemi
Level 2

Like

1 like

Total Posts

31 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
ibwaheemi
Level 2

22-12-2008

hi



thanks for reply



the pdf render format is dynamic at the moment it is a .xdp file.



there are no errors in the java box (ctrl J)



i do get a syntax error near token "'hidden'" on line 7



----

it is not essential that the visibility of the table be controlled by a check box. in fact it would be better if the table would autohide itself if no addInstance(1) were selected. but i dont know how to do that either

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 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

611 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

22-12-2008

So you do have javascript errors. The code should look like this:



if (this.rawValue == 1){

Table1.presence = "visible";

}else {

Table1.presence = "hidden"

}



Lets make it work with the checkbox 1st, then we can write a test for the addInstance (as you say).

Avatar

Avatar
Validate 1
Level 2
ibwaheemi
Level 2

Like

1 like

Total Posts

31 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
ibwaheemi
Level 2

Like

1 like

Total Posts

31 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
ibwaheemi
Level 2

22-12-2008

thanks paul code worked a treat thanks again for help