Announcements
No record found.
Is there a way to to modify Mandatory property to No for an existing field in a extended table?
The property is disabled:
*This post is locked for comments
You can not modify some properties on extensions. You may have to handle it through code if you don’t want to overlayered base table
Do you have an example how to handle Mandatory propriety from the code?
datesource_ds.object(fieldNum(datesource, RefItemId)).mandatory(false);// or true. You can do that on form event
Need your help.
Added form event(Initialized) and set mandatory property to false :
But, on saving the record, the system shows a warning:
What else can I do to mark the field as non-mandatory?
You have done everything correct , there is nothing wrong in it . But one more thing I forgot to mention , if the property is mandatory at table level then its going to be difficult to change . If you really want to make it non mandatory I don't see any other option than changing it at table level
Move your code to OnActivated.
Move your code to OnActivated event handler.
It doesn't work.
The property is changed on form data source, but the error is returned by the table(on saving data to table).
any solution ?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CP04-islander 39
Michel ROY 14
imran ul haq 8