Friday, February 7, 2014

An extra empty row gets added while saving grid data

Whenever I try saving data in the grid with same record at level 0 and level 1, an extra row gets added in the database having only the key field of level 0 as values in it. All other column fields in the including the key field of grid are empty.

If level 1 field is mandatory, an error message will throw like 'field is mandatory'.

Resolution:
The answer is simple. First, Component Processor saved Level1 and then moved to save level0. It had the same record and hence tried entering again. To avoid this, you can use a read only field on Level0. This way, no SAVE will be fired on Level0, avoiding this problem.