I have added code to disable and enable button through code by setting value to a Boolean field. But the button does not get disable even though the Boolean field is set to false. Code is added in OnAfterGetRecord page event and in the OnAction trigger of that button.
Following code is added.
IF TotalPurchQty = TotalRcvdQty THEN
Enable:=TRUE
ELSE
Enable:=FALSE;
*This post is locked for comments