Hello Experts,
Please assist me to overcome on enabling/disabling the field on form.
we have requirement Customer account = filter by Customer Account Id -(Only enabled when Order type filter is set to All, Sales order, sales return order).
I have created active() method to do this but when i am marking to yes, customer account is still showing disable.
please see the below code.
public int active()
{
int ret;
ret = super();
if(OrdersTable.All && OrdersTable.SalesOrder && OrdersTable.SalesReturnOrder == NoYes::Yes)
{
OrdersTable_ds.object(fieldNum(OrdersTable, CustAccount)).allowEdit(true);
}
else
{
OrdersTable_ds.object(fieldNum(OrdersTable, CustAccount)).allowEdit(false);
}
return ret;
}
below is screenshot.

*This post is locked for comments
I have the same question (0)