Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Row Selection to get drilldown table using as source a table came from a reactive #1030

Open
TMax66 opened this issue Nov 2, 2022 · 0 comments

Comments

@TMax66
Copy link

TMax66 commented Nov 2, 2022

Dear all,

I am trying to get , in a shiny app, a drilldown table after selecting rows from a table that I get through a reactive that responds to a user input

The example code at the https://rstudio.github.io/DT/shiny.html says to use the

input$tableId_rows_selected , but my tableId comes from something like

mytable <- reactive(df %>% filter(var == input$userinput))

so may DT table source of the drilldown table is:

output$mydtab <- DT::renderDataTable(mytable() )

So the code (input$mydtab_rows_selected) for the drilldown table from mydtab does not works.

I don't get any errors from the app, simply when I select rows from the source table it doesn't produce the drilldown table

Any suggestion?

Thanks a lot

Massimo

PS: I tried to search same problem on the web and in this forum, without success


By filing an issue to this repo, I promise that

  • [x ] I have fully read the issue guide at https://yihui.name/issue/.
  • [x ] I have provided the necessary information about my issue.
    • If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
    • If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('DT'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/DT').
    • If I have posted the same issue elsewhere, I have also mentioned it in this issue.
  • [ x] I have learned the Github Markdown syntax, and formatted my issue correctly.

I understand that my issue may be closed if I don't fulfill my promises.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant