Attempting to make an inventory app in shiny r

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)
    }
    })

Are you aware of {DT}s global search feature? If not, try typing "Mazda" (case sensitive) in the upper right search field of the first table here:

https://rstudio.github.io/DT/007-search.html

After that the user could select a row and confirm via actionButton.

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.