see below data grid table if i click on new button it shows popup page id shows 6 , then i click on cancel button. and again click on add button then id increase by 1 and shows 7 but if i dont add 6 no data then it needs to show 6 again not 7. if i refresh page when popup is open then same issue happen . how to resolve?
As per your screenshot, it seems like you have used AutoNumber as a datatype for ID attribute. That’s why it is behaving like this, even if your not saving the object also, the value of id will be incremented by 1 becuase it is Autonumber. So to avoid this,you have to change the datatype of ID attribute to integer.