Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check whether the new line is created but not saved yet

Which FormDataSource method to use to determine that the record is not saved yet?

i.e.

enter image description here

I mean when my grid line is in this situation I want my mennuItemButton to throw the error.

Thanks...

like image 869
AYETY Avatar asked Dec 10 '25 05:12

AYETY


1 Answers

You can check the RecId == 0, but in your case it would be simpler to set the NeedsRecord attribute of the menu item. This will disable the button if there is no active record.

like image 200
Jan B. Kjeldsen Avatar answered Dec 12 '25 09:12

Jan B. Kjeldsen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!