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

delete row button in action builder

Avatar

Avatar
Level 1
iang62282276
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
iang62282276
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile
iang62282276
Level 1

10-10-2016

Hi,

I dont have any programming training and trying to build a form with the action builder which as gone rather easily.

However I cant figure out how to get the delete button of a row of a table to delete that row and not the top or bottom row.

Any help on how to do this?

Thanks

Accepted Solutions (0)

Answers (6)

Answers (6)

Avatar

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile
_Bruce_Robertson
MVP

11-10-2016

Hi,

The action builder doesn't seem smart enough to cope with your buttons being in a subform.  It will have generated some code with a line like;

this.resolveNode('tblOwnership._Row1').removeInstance(this.parent.index);

But what you actually need is

this.resolveNode('tblOwnership._Row1').removeInstance(this.parent.parent.index);

That is an extra .parent which allows for the subform.  Your best bet might be to go into the script editor, ignore the “//+ GENERATED - DO NOT EDIT” and edit the code to add the extra .parent.

Bruce

Avatar

Avatar
Level 1
iang62282276
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
iang62282276
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile
iang62282276
Level 1

11-10-2016

Here is my hierarchy

1041674_pastedImage_0.png

Avatar

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile
_Bruce_Robertson
MVP

11-10-2016

Hi,

I should be as simple as that, is it possible to share the form.   You can upload it to a file share site and post a link to it here.

If not, maybe a screen shot of the hierarchy view would help.

Bruce

Avatar

Avatar
Level 1
iang62282276
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
iang62282276
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile
iang62282276
Level 1

11-10-2016

Hi,

That is how I had it set up and it is not deleting, it works with last row and first row but not Row1 current instance

Avatar

Avatar
Level 1
iang62282276
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
iang62282276
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile
iang62282276
Level 1

11-10-2016

Hi,

That is how I had it set up and it is not deleting, it works with last row and first row but not Row1 current instance

Avatar

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile
_Bruce_Robertson
MVP

10-10-2016

Hi,

Assuming the delete button is in the row to be deleted you can setup an action to remove current instance.

Regards

Bruce

RemoveRowAction.PNG