Can someone tell me how to update the database with the information in the selected/current tab?
Let say I have a table called “Person” with the proprieties (type, name, age and sex).
Let say I have 2 tabs called “Student” and “Teacher” with text fields (name, age and sex).
How to update the table in the database with the information entered in the selected/current tab?
I tried to use State to store the information in the state property when user select the tab but it does not work when the information are entered after the tab selection.
Thanks in advance.