Hi everyone,
I am trying to conditionally block a field based on the legal entity. I made an extension of the salestable form, and datasource class Salesline, method active.
It builds well, but does not work. I guess I am doing something wrong. I hope that somebody is able to help me out:
ExtensionOf(formStr(SalesTable))] public final class ELCWDSalesTableUS0008_Extension { [DataSource] class SalesLine { int active(boolean _mcrFormPartUpdateOnly = false) { int ret; next active(_mcrFormPartUpdateOnly); if(curExt()=="ENTNL") { SalesLine_ds.object(fieldNum(SalesLine, ShippingDateConfirmed)).allowedit(false); } return ret; } } }