Hi everyone,
I have created a form and added some checkboxes in the d365fo dev environment and added a code in the active method of the form data source to disable checkboxes in my form based on the value of another checkbox field from another form (ecoresproductvariantspercompany). The code is running perfectly on the development VM but when I deployed it on SandBOx and Production the code is not working for disabling the checkbox field. Here is my code
public int active()
{
int ret;
FairFormTable fft;
fft = FairFormTable_ds.getFirst(true);
EcoResDistinctProductVariant ecoResDistinctProductVariant;
while select ecoResDistinctProductVariant
WHERE (fft.ItemId == ecoresdistinctproductvariant.displayProductNumber)
{
FairFormTable_ds.object(fieldNum(FairFormTable,VerifyConflictMaterials)).enabled(ecoResDistinctProductVariant.Conflict_Materials);
FairFormTable_ds.object(fieldNum(FairFormTable,VerifyCountryOfOrigin)).enabled(ecoResDistinctProductVariant.Country_Of_Origin);
FairFormTable_ds.object(fieldNum(FairFormTable,VerifyRequestCoC)).enabled(ecoResDistinctProductVariant.Request_CoC);
FairFormTable_ds.object(fieldNum(FairFormTable,VerifyMaterialsDeclaration)).enabled(ecoResDistinctProductVariant.Material_Declaration);
FairFormTable_ds.object(fieldNum(FairFormTable,VerifyHazardousSubstances)).enabled(ecoResDistinctProductVariant.Hazardous_Substances);
FairFormTable_ds.object(fieldNum(FairFormTable,FairVerified)).enabled(ecoResDistinctProductVariant.VendFairNeeded);
break;
}
ret = super();
return ret;
}
kindly give your suggestions to overcome this problem. Thanks,
Moeez Nawaz