Hi all, I have created new form with dimension.when I select the item,based on item group the dimension fields should be enabled and mandatory.I used below codes.It is not working.It shows All dimension fields are noneditable.Can any one give me the suggestion?
inventDimFormSetup = InventDimCtrl_Frm_ItemBarcode::newFromForm(element);
case InventDimFormDesignUpdate::FieldChange :
inventTable = InventTable::find(ItemReqLine.ItemId);
inventDimFormSetup.formActiveSetup(inventTable.DimGroupId);
inventDim.clearNotSelectedDim(inventDimFormSetup.parmDimParmEnabled());
element.setWMSLocationIdEnabled(inventTable.DimGroupId);
inventDimFormSetup.formSetControls(true);
inventDimFormSetup.updateControls();
break;