Good Day Developers,
I have a snippets as follows and i gotten eror isReadOnly is not a function.
Please advise,
-WRBANO is a standard field is currently can be Enabled/Disabled
-I wanted to skip populating value if the field is Disabled
Your advise and Assistance is much appreciated!
const TRDT = this.controller.GetValue('WWTRDT').replace(///g, "");
const REPN = this.controller.GetValue('WWREPN');
const BANO = TRDT + "-" + REPN;
const isWRBANOReadOnly = this.controller.isReadOnly('WRBANO'); // Check if WRBANO is read-only
// Only set the value of WRBANO if it is not read-only
if (!isWRBANOReadOnly) {
this.controller.SetValue('WRBANO', BANO);
}
Best Regards,
Raymodn