Dimensions

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;

hi saju,

Based on Item… particular dimension should enable r disable? rite…

regards,

KGS

yes.Can u give me solution.

Any one suuest me plz.

Why you are using this InventDimCtrl_Frm_ItemBarcode? Please elaborate…

There is an another way to achieve this, Have a look at \Forms\InventTable\Methods\setItemDimEnabled

Thanks for your reply.I will try this.How to make the fields mandatory.