Monday, November 5, 2018

How to fetch product Name using X++

EcoResProductName                       productName;
EcoResColor                             EcoResColor;
EcoResProductMaster                     EcoResProductMaster;
EcoResProductMasterColor                EcoResProductMasterColor;
EcoResProductMasterDimensionValue       EcoResProductMasterDimensionValue;
EcoResProductMasterDimValueTranslation  EcoResProductMasterDimValueTranslation;


select firstonly ProductMasterDimensionValue, Name  from EcoResProductMasterDimValueTranslation
        join RecId from EcoResProductMasterDimensionValue
             where EcoResProductMasterDimValueTranslation.ProductMasterDimensionValue   == EcoResProductMasterDimensionValue.RecId
        join RecId from EcoResProductMasterColor
            where EcoResProductMasterDimensionValue.RecId == EcoResProductMasterColor.RecId
        join RecId from EcoResColor
            where EcoResColor.RecId == EcoResProductMasterColor.Color
        join RecId from EcoResProductMaster
            where EcoResProductMasterColor.ColorProductMaster == EcoResProductMaster.RecId
            && EcoResProductMaster.DisplayProductNumber == lineEntity.ItemNumber;

        lineEntity.MCSTranslatedColorName = EcoResProductMasterDimValueTranslation.Name;

No comments:

Post a Comment

How to enable the dimension fields based on the Item selected on the form.

[Form] public class KMTShipFromWarehouses extends FormRun {     InventDimCtrl_Frm_EditDimensions        inventDimFormSetup;     /// &l...