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

hiding specific cells within of every row in a repeating row table on the exit button click

Avatar

Avatar
Boost 1
Level 1
llee440
Level 1

Likes

2 likes

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
llee440
Level 1

Likes

2 likes

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
llee440
Level 1

13-02-2014

I have been struggling with how to approach hiding editing fields within specific cells of every row in the  table on the exit button click.

Dows the row have to be resolved? i any help is appreciated. 

//  Main.Links2.Tbl.Row1.Edit = this is the Hierachy

//  Main.Links2.Tbl.Row1.DEdit= this is the Hierachy

 

form1.Main.b.Exit::click - (JavaScript, client)

{

// Edit Buttons sf (b)

form1.Main.b.NoteOpen.presence = "visible";

form1.Main.b.Exit.presence = "invisible";

//  Protecting the field so it isn't included in tabbing.

form1.Main.Links2.Tbl.access = "protected";

form1.Main.Links2.Tbl.Row1.Edit.presence = "invisible";                 //////////////////////   I want this field in every row invisible

form1.Main.Links2.Tbl.Row1.DEdit.presence = "invisible";              /////////////////////   I want this field in every row invisible

}

//xfa.host.setFocus("form1.Main.Links.Tbl.Title.Cell1");

Replies

Avatar

Avatar
Validate 1
Level 5
dcidev
Level 5

Likes

30 likes

Total Posts

448 posts

Correct Reply

77 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 5
dcidev
Level 5

Likes

30 likes

Total Posts

448 posts

Correct Reply

77 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
dcidev
Level 5

13-02-2014

Assuming all your rows are named 'Row1':

for (var i=0;i<form1.Main.Links2.Tbl.Row1.all.length;i++){

     form1.Main.Links2.Tbl.Row1.all.item(i).Edit.presence="invisible";

     form1.Main.Links2.Tbl.Row1.all.item(i).DEdit.presence="invisible";

}

Kyle

Avatar

Avatar
Boost 1
Level 1
llee440
Level 1

Likes

2 likes

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
llee440
Level 1

Likes

2 likes

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
llee440
Level 1

13-02-2014

thanks, but it still only hides the first row of invisible fields.

//  I copied and pasted this into the button.  

//  its location on the Hierarchy = form1.Main.b.Exit

//  Main.Links2.Tbl.Row1.Edit = this is the Hierachy

//  Main.Links2.Tbl.Row1.DEdit= this is the Hierachy

for (var i=0;i<form1.Main.Links2.Tbl.Row1.all.length;i++)

{

     form1.Main.Links2.Tbl.Row1.all.item(i).Edit.presence="invisible";

     form1.Main.Links2.Tbl.Row1.all.item(i).DEdit.presence="invisible";

}

Avatar

Avatar
Validate 1
Level 5
dcidev
Level 5

Likes

30 likes

Total Posts

448 posts

Correct Reply

77 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 5
dcidev
Level 5

Likes

30 likes

Total Posts

448 posts

Correct Reply

77 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
dcidev
Level 5

13-02-2014

Make sure your rows are named Row1 or Row1 is your repeatable row.

Kyle