
I added an Enum type field that has the Open and Blocked values and I want the fields not to be editable for all PurchesOrders with Blocked status.
You can use form's methods (dataSourceCount() and dataSource()) to iterate form data sources:
for (i = 1 ; i <= this.dataSourceCount(); i )
{
ds = this.dataSource(i);
}