Hi all, I currently have a list view for employees a user adds to their firebase database. In this list they have the opportunity to edit certain information, such as the points and notes. Notes are stored as a string <list> and points an integer. The data they cannot update include things like the employees name, position and department.
When the user clicks the "Manage" button, the correct name, position and department displays. However, the notes and points do not. In the video when I open a row, the correct name etc displays, but the points are those of the item at the top of list. Not the one I clicked on. Then if I add a note on any row as shown in the video, it adds that note to the top row item. Furthermore, when adjusting the points as shown, I am unsure as to why it flickers through the different rows it updates? Also, when updating the points, it shifts the notes around also?
I will also attach some screenshots of how I have this set up, adding initial data for name, position, department, notes and points all works fine, it is only when I attempt to allow the user to update this data.
My Schema
How I am pulling in data
How I am getting empName
How I am getting empPoints
How I am displaying empPoints for the initial value
How I am updating empPoints from the CountController
How I am adding empNotes from the variable through the “Add” button
How I am retrieving empNotes from the Schema