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

Deleting table row deletes data in header

Avatar

Avatar
Validate 1
Level 1
cristinam793370
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
cristinam793370
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
cristinam793370
Level 1

15-06-2017

I have an expandable table in my form with add row and delete row buttons. If a row is deleted from the table using the button, it also deletes the text entered on the Document Number field on the header. What could be causing this?

Thanks.

Header.PNGTable.PNG

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

270 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

270 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

19-06-2017

Hi Cristina,

The easiest thing might be to set the binding on the Document Number field.  By default fields on the master page have the binding set to none.  If you could set the binding on this field the value will be retained.

Regards

Bruce

Answers (5)

Answers (5)

Avatar

Avatar
Validate 1
Level 1
cristinam793370
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
cristinam793370
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
cristinam793370
Level 1

29-06-2017

Thanks for your reply but I've already solved the problem.

Avatar

Avatar
Validate 1
Level 1
cristinam793370
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
cristinam793370
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
cristinam793370
Level 1

29-06-2017

Thanks Bruce. That solved the problem.

Avatar

Avatar
Level 1
kynopsis
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
kynopsis
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
kynopsis
Level 1

28-06-2017

Hi Cristina,

I do not have access to your file because of my firewalls, so I can't help you directly in your code. I should also mentioned that I'm not a pro, but I do have a code that works to add or remove one row by clicking in one button AND only that new row, nothing else.

Maybe you will find it useful comparing my code and yours.

To ADD a row:

  1. Select the Bottom or Radio Button that will trigger the copy of this object to be multiplied.
  2. Inside the Scripts: Click event, you will place the code:

                 var newInst = _NAMEOFYOUROBJECT.addInstance(1);    

to DELETE the newly created row:

     3. Select the bottom, then Inside the Scripts: Click event   place:

          If ( _NAMEOFYOUROBJECT.count == 0 )

          {

                 xfa.hostmessage (“Nothing to delete.”, “”, 1);

          }

          else {

                _NAMEOFYOURBOJECT.removeInstance(1);

          }

//////// _NAMEOFYOUROBJECT  (yes, with the " _ " ) in your case will be the name of your row that you are multiplying in your table.

Avatar

Avatar
Validate 1
Level 1
cristinam793370
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
cristinam793370
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
cristinam793370
Level 1

19-06-2017

Hi Bruce,

Here is the link. If you can have a look it would be much appreciated.

AS-OPS-FRM-0003 Fault Report-C2 Master.pdf - Google Drive

Thanks.

Cristina.

Avatar

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

270 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

270 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

16-06-2017

Hi,

This sounds rather strange, should be a simple enough thing.  Maybe there's something strange with the binding of the Document Number field.

Maybe if we can see the form.  Can you upload it somewhere, like Google Docs, DropBox, etc and post a link here.

Regards

Bruce