I have a use case in which user can click on "Add new row" icon and a new row shall be created at the end of table. The new row will have a prepopulated field for userSerial as max(USER_SERIAL_COLUMN)+1.
For the first time the row is getting created successfully. with proper data , say the field with value 49 (Suppose max(USER_SERIAL_COLUMN)=48).
If i again click on the icon, a new row is getting created but as the value was not submitted to DB , again the value is 49.
The column is not editable and is sorted as per some other field not userSerial.
How do i implement this?