Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

InventOnHandItemListPage get ProductSubType

(0) ShareShare
ReportReport
Posted on by 307

Hello All,

I need to show ProductSubType in Form InventOnHandItemListPage's Grid.

I try some methods, but no work, please help and thanks in advance.

try to get InventTable.productSubType() in Form  InventOnHandItemListPage, but get empty.

try add productSubtype2() method in InventTable, then in Form  InventOnHandItemListPage's Grid to show, but get empty.

public display EcoResProductSubtype productSubtype2()
{
InventTableExpanded inventTableExpanded;
EcoResProductSubtype pSubType;


select inventTableExpanded where inventTableExpanded.ItemId == this.ItemId;
pSubType = inventTableExpanded.ProductSubtype;

return pSubType;
}

try add  productSubtype() method in InventSum, then then in Form  InventOnHandItemListPage's Grid to show, but get empty.

public display EcoResProductSubtype productSubtype()
{
    InventTableExpanded         inventTableExpanded;
    EcoResProductSubtype        pSubType;


    select inventTableExpanded where inventTableExpanded.ItemId == this.ItemId;
    pSubType = inventTableExpanded.ProductSubtype;

    return pSubType;
}

//Jen 191128
public display EcoResProductSubtype productSubtype2()
{
    EcoResProduct               eProduct;
    EcoResProductSubtype        pSubType;


    select eProduct where eProduct.DisplayProductNumber == this.ItemId;
    pSubType = eProduct.productSubtype();

    return pSubType;
}

//Jen 191128
public display EcoResProductSubtype productSubtype3()
{
    InventTable                 iTable;
    EcoResProductSubtype        pSubType;


    select iTable where iTable.ItemId == this.ItemId;
    pSubType = iTable.productSubtype();

    return pSubType;
}

  • Verified answer
    Crispin John Augustine Profile Picture
    Crispin John Augustine 37,081 on at
    RE: InventOnHandItemListPage get ProductSubType

    You should be able to get it with just this simple code..

    display EcoResProductSubtype productSubtype()

    {

    return this.inventTable().productSubtype());

    }

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,317 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans