Announcements
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
Hi,
Is the version of your dev environment same as your Production and Sandbox?
No, I didn't get any error messages.
HI,
Did you get any error message?
André Arnaud de Cal...
294,095
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator