Good day!
I am using the STD Framework, I have this datawindow, it queries data from the database including the bit datatype and I changed the style type of the bit field to checkbox. How to bypass this warning dialog box, since I don't have any intention of saving any data from the datawindow. I already unchecked the Allow Updates in the Rows -> Update Properties.
Thank you in advance!
I tried unchecking it in the painter but to no avail. I tried also at runtime and this error occurred.
Error C0158: The property 'ib_save_required' was found in class 'dw_1', but insufficient rights are available to access it.
I have no issues checking or unchecking this property in any DC at the "concrete" (working) level. Please make sure that you point the painter to that location to change that property setting.
That extended property is a "Protected" instance variable. So from the coding POV you would need to add the code to the DC itself. I would suggest using the "oe_postconstructor" event. On the DC then, your code would be ...
THIS ib_save_required = False
I'm getting the PB R2 "official" framework version ready this month (I have a beta on Source Forge already for the PB 2022 R2 release), but I think that I'll add a public "of_Set_SaveRequired()" method to the DC ancestor so that you can call that from any object class to make it more coding flexible. ;-)
Regards ... Chris