Update DB using Jlist gives Primary Key Duplication error.
posted 2 years ago
In my program i have item management window. It has Jlist component to add Multiple bag sizes. Since its a multi value attribute, i placed in a separate table with item code.
I managed to write the program to update database thru text fields except Jlist.
There is Primary key Duplicate error at Jlist update code.
When i try to update item adding or removing bagsizes to Jlist it gives Primary key duplication error.
This is sample format how date stored in bagsizes tables.
Code for Update Action and method at the controller class given below.