Creating SSRS Rerpot with DataContract Class using X++ in AX 2012 R2

Hi guys.

I’m Creating SSRS Report, that can filter/select Brand Name and Category.

this is existing report and this will be a enhancement…

Actually i already get the Category using this code.

[DataContractAttribute]
public class PSTDataContract
{
    ItemGroupId ItemCategory;
}

[
DataMemberAttribute(identifierStr(ItemCategory)),
SysOperationLabelAttribute('Category')
]
public ItemGroupId parmCategory(ItemGroupId _ItemCategory = ItemCategory)
{
    ItemCategory = _ItemCategory;
    return ItemCategory;
}

I’m getting the brand name like this in my report

while select EcoResProduct
                where vendPackingSlipTrans.ItemId == EcoResProduct.DisplayProductNumber
                join EcoResProductAttributeValue where EcoResProduct.RecId == EcoResProductAttributeValue.Product
                join EcoResValue where EcoResProductAttributeValue.Value == EcoResValue.RecId
            {
                ecoresValue = EcoResValue::find(ecoresProductAttributeValue.Value);
                tmpPST.AttributeValueText = EcoResValue.value();
                info(strFmt("%1",ecoresValue.value()));
            }

And now my problem is the BRAND NAME, i thought it will be the same approach like the CATEGORY, but the value() in Ecoresvalue is a method, and i don’t know how can i get it?

I want to get like this …

In AX(front-end)

Little help here please…

TIA

Do you want the Brand name in the look up ? What is the main table for Brand Name ?

I understood what you are asking : I answered here "dynamicsuser.net/…/478059