Notifications
Announcements
No record found.
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.
Martin Dráb 451 Most Valuable Professional
André Arnaud de Cal... 428 Super User 2025 Season 2
BillurSamdancioglu 239 Most Valuable Professional