Let's assume a rhandsontable which default content depends on a selectInput. The table is editable. Using "vanilla" coding (as illustrated below), if users edit the content of the table, then change the selection of the selectInput field, all their edits are lost.
In the example below, the table can take 2 different default contents. These default content only have one row is common ('Row1').
I am trying to find a way to preserve custom edits made in the Value column when (prior to?) the table content resets. The content of the Value column would ideally be preserved for Type's that match between the previous and new content.
The commented section represents my attempt at achieving this goal. However, uncommenting it someone breaks the reactivity chain.
Revisiting my post and the problem in general, I found the solution by actually correcting some mistakes in the original code. The code posted below works fine.
Hi,
Let's assume a rhandsontable which default content depends on a selectInput. The table is editable. Using "vanilla" coding (as illustrated below), if users edit the content of the table, then change the selection of the selectInput field, all their edits are lost.
In the example below, the table can take 2 different default contents. These default content only have one row is common ('Row1').
I am trying to find a way to preserve custom edits made in the Value column when (prior to?) the table content resets. The content of the Value column would ideally be preserved for Type's that match between the previous and new content.
The commented section represents my attempt at achieving this goal. However, uncommenting it someone breaks the reactivity chain.
Thanks in advance for your help
The text was updated successfully, but these errors were encountered: