Here I need to print item attributes value colour Red and depth and height
codeunit 50107 ParentChildItem
{
procedure MyProcedure()
var
ItemCard: Record Item;
ItemAttrinuteValue: Record "Item Attribute Value Selection"; begin
ItemCard.SetRange("No.", ItemAttrinuteValue."Inherited-From Key Value");
if ItemCard.FindSet() then repeat
ItemAttrinuteValue.SetRange("Inherited-From Key Value", ItemCard."No.");
if ItemAttrinuteValue."Attribute Name" = 'Colour' then Message('%1 Parent And Child Items',ItemAttrinuteValue."Attribute Name");
end;
until ItemCard.Next() = 0;
end;
}
This is my. Code my color depth and height is not printed in message what's wrong please help.