Notifications
Announcements
void setFieldAccess() { // Our condition boolean enabled = false; // Fields from two data sources TableA_ds.object(fieldNum(TableA, X)).allowEdit(enabled); TableB_ds.object(fieldNum(TableB, Y)).allowEdit(enabled); }
[ExtensionOf(formStr(Table1))] final class Table1Form_Extension { public boolean condition = !Table1.Field2; } [ExtensionOf(formDataSourceStr(Form1, Table1))] final class From1Table1DataSource_Extension { public int active() { int ret; ret = next active(); this.setField1Access(); return ret; } public void setField1Access() { this.object(fieldNum(Table1, Field1)).allowEdit(condition); } } [ExtensionOf(formDataSourceStr(Form1, Table2))] final class From1Table2DataSource_Extension { public int active() { int ret; ret = next active(); this.setFieldXAccess(); return ret; } public void setFieldXAccess() { this.object(fieldNum(Table2, FieldX)).allowEdit(condition); } }
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Abhilash Warrier 679 Super User 2025 Season 2
André Arnaud de Cal... 429 Super User 2025 Season 2
Martin Dráb 264 Most Valuable Professional