I am attempting to have a user in put information and print out the data in a cell based on if that information matches criteria in the same row. I want this to be activated by an actionButton in shiny.
Can anyone help??
I don't know if I'd doing it completely wrong or just a few parts are off....
This is the first information in my sidebarPanel for the ui
textInput(
"barcode", h3("Scan location barcode: ")
),
actionButton("search","Search"),
br(),
h3("Confirm this is your item. "),
textOutput("display_row"),
This is the code for the server portion
scan<-eventReactive(input$search,{input$barcode})
output$display_row <-
renderText({if(scan()==cagedf_copy$Location){
paste(cagedf_copy$Item.Name)
}
})