web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

InventSum - blank InventDimID x++

(3) ShareShare
ReportReport
Posted on by 152
i need to caclaute some value basis on dimensions from inventsum but all values are blank why is this happening, 
 [SysClientCacheDataMethodAttribute(true)]
 public display Real MinimumStock()
 {
     ReqItemTable    reqItemTable;
     InventDim       inventDimReq,inventDimOnHand;
     InventSum   inventsum;
     str I = this.InventSiteId;
     str G =  this.InventLocationId;
     select * from reqItemTable where reqItemTable.ItemId == this.ItemId
         join inventDimOnHand where reqItemTable.CovInventDimId == inventDimOnHand.inventDimId
         && inventDimOnHand.InventSiteId == this.InventSiteId
         &&  inventDimOnHand.InventLocationId == this.InventLocationId;
     return reqItemTable.MinInventOnhand;
 }
 
Categories:
I have the same question (0)
  • Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at
    If you mean why inventSum is empty, it's because you've never put any value to it. It seems you intended using it in the query but you haven't done it yet.
     
    Your current code can be simplified to this:
    [SysClientCacheDataMethodAttribute(true)]
    public display real minimumStock()
    {
        ReqItemTable    reqItemTable;
        InventDim       inventDimOnHand;
        
        select reqItemTable
            where reqItemTable.ItemId == this.ItemId
            join inventDimOnHand
                where inventDimOnHand.InventDimId == reqItemTable.CovInventDimId
                   && inventDimOnHand.InventSiteId == this.InventSiteId
                   && inventDimOnHand.InventLocationId == this.InventLocationId;
    
        return reqItemTable.MinInventOnhand;
    }

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 449 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans