Guest User

Untitled

a guest
Jun 9th, 2017
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. User_Validation <- reactiveValues()
  2.  
  3. observeEvent(input$LogInButton, {
  4. User_Validation$account <- grep(input$Account, User_Information()$UserName)
  5. if (length(User_Validation$account) > 0) {
  6. User_Validation$password <- input$passkey ==
  7. User_Information()[User_Validation$account, Password]
  8. } else {
  9. output$WarningMessage <- renderText({
  10. "Invalid account"
  11. })
  12. }
  13. })
  14.  
  15. observeEvent(input$LogInButton, {
  16. if (User_Validation$password == TRUE) {
  17. output$DashBoard_Info <- renderUI({
  18. fluidRow(
  19. box(title = "Commodity_Sales_Ranking",
  20. tableOutput("Commodity_Ranking")),
  21. box(title = "Revenue_by_Month",
  22. plotlyOutput("Monthly_Revenue"))
  23. )
  24. fluidRow(
  25. box(title = "Replenishing_Rate_by_Month",
  26. plotlyOutput("Replenishing_Rate")),
  27. box(title = "Customer_Age_Piechart",
  28. plotlyOutput("Age_Piechart"))
  29. )
  30. })
  31. }
  32. })
Advertisement
Add Comment
Please, Sign In to add comment