Design to store user information in session storage in react

Community Driven Extensions Project
Post Reply
Wood58
Posts: 1
Joined: 17 Feb 2021, 08:17

17 Feb 2021, 08:20

Wanted to ask if the following design is okay based on my requirements:

Brief Description of my requirements:

I have a requirement to gather some info from the user and then the user attaches a file and hits the upload button to upload a file. When a user hits the upload button, I want to pass the gathered user info to the web service behind the upload button.

Here are my thoughts:

I am planning to have a table in react - most likely a data table that will have something like this.

Is this confirmed? Type your comments in the text area below Action
Select Yes or No from dropdown list // Your comments goes here Attach File
So I am planning to use material UI dropdown list component for the cell where it says Select Yes or No from dropdown list and textbox/textarea for the user to type their comments.

That Attach File is a prime React FileUpload advanced component. So when I click on it and user hits the upload button , I want to pass whatever user selected in first cell (Yes or No) and the comments entered by the user. I am planning to store the dropdown select option in sessionstorage.

I am wondering, can I have their comments stored in session storage as well as they type?

What are your thoughts on the overall design based on the requirements above? Please feel free to share any better alternative if you could think of. Let me know if I can answer any questions.

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

17 Feb 2021, 14:50

Wrong Forum. You want the PrimeReact Forum: viewforum.php?f=57
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests