DillonHammill / DataEditR

An Interactive R Package for Viewing, Entering Filtering and Editing Data
https://dillonhammill.github.io/DataEditR/
384 stars 40 forks source link

FIlter rows multiple times #43

Open ShinyFabio opened 2 years ago

ShinyFabio commented 2 years ago

Hi, I use your package inside a shinyApp but the problem exists also with the data_edit() function so I'll write an example based on that function.

So after launched the function with my data, I have a problem with the filtering on rows. What I did is applying a filter on rows (i.e. EXP_ID equal to 101) and then clicking on the Close button. Everything works fine. Now imagine that I made a mistake and I want to change the filtered EXP_ID to 105. So I open again the filter module, and inside "Levels" 101 is still there. I click on the levels but I can't see the other levels of my original data (even if I remove 101). I think the problem is that the choices of the levels selectInput is based on the edited data. However I've found a workaround: I changed the column (instead of EXP_ID I put something else) so the levels resets, then I select again the EXP_ID column and now I can choose again between all the levels. I don't know why I have to do this, but it works though is not an elegant solution especially in a ShinyApp.