Button clears entries in the floating field in each table created | Community
Skip to main content
Level 5
February 18, 2023
Solved

Button clears entries in the floating field in each table created

  • February 18, 2023
  • 1 reply
  • 1440 views

Good Day,

My form has a check-box and a radio button in the Master Page. They are set to global.  In one of the rows of my table, I have floating fields within it. The floating field is set to global as well.  When a box is checked or radio button is chosen, a "specific word" is entered in the floating field. Let's say the word entered is "Dog".   I also have a button that adds a table which also copies some of the entries within it.  This works perfectly.  "Dog" is copied as it should be.    I also have a button to clear entries from a specific table.  Here lies the issue:

When I click the button to clear entries from a specific table, it clears the word "Dog" from every table that were created.  I do not want that to happen.  I need for the word "Dog" to stay in all table rows created, including the table that is tied to the " erase specific entries button" when it is clicked.  I tried changing the binding but then the "Dog" is not copied when I click the "create similar" button.  Any help is greatly appreciated.  I'm on a time crunch to get this resolved ASAP.  This is what I have in the erase click button:

 

if (xfa.host.messageBox("You are about to erase all entries in this record. Do you want to proceed?", "Reset the form", 2,2) === 4){
xfa.host.messageBox("All entries have been removed");
xfa.host.resetData(CARDS.resolveNode("Table1[" + this.parent.parent.parent.index + "]").somExpression);
}
else {
xfa.host.messageBox("No entries have been removed");
}

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Vijay_Katoch

As per the description you mentioned above, the issue is due to global data binding.

Correct the binding, it should work.

1 reply

Vijay_Katoch
Community Advisor
Vijay_KatochCommunity AdvisorAccepted solution
Community Advisor
February 20, 2023

As per the description you mentioned above, the issue is due to global data binding.

Correct the binding, it should work.

Level 5
February 22, 2023

Good day,

Which bindings should I correct? The one in the master page?  I sent a link to you earlier so that you can see the issue.  Were you able to access it?

 

Vijay_Katoch
Community Advisor
Community Advisor
February 22, 2023

I didn't find any attchment.