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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Can't filter On-Handlist form!

(1) ShareShare
ReportReport
Posted on by 493
I'm trying to filter on hand list form query using a specific warehouse ("DMM")
I'm using the event handler method of the InventSum datasource:
 
 
and here's the query after applying my range:
{Query  object a6c07f50: 
SELECT WITH FORCE_PLACEHOLDERS FIRSTFAST FORUPDATE INDEXISHINT SUM(PostedQty), SUM(PostedValue), 
SUM(PhysicalValue), SUM(Deducted), SUM(Registered), SUM(Received), SUM(Picked), SUM(ReservPhysical), 
SUM(ReservOrdered), SUM(OnOrder), SUM(Ordered), SUM(Arrived), SUM(QuotationReceipt), SUM(QuotationIssue), 
SUM(PhysicalInvent), SUM(AvailPhysical), SUM(AvailOrdered), SUM(PdsCWPostedQty), SUM(PdsCWDeducted), 
SUM(PdsCWRegistered), SUM(PdsCWReceived), SUM(PdsCWPicked), SUM(PdsCWReservPhysical), SUM(PdsCWReservOrdered), 
SUM(PdsCWOnOrder), SUM(PdsCWOrdered), SUM(PdsCWArrived), SUM(PdsCWQuotationReceipt), SUM(PdsCWQuotationIssue), 
SUM(PdsCWPhysicalInvent), SUM(PdsCWAvailPhysical), SUM(PdsCWAvailOrdered) 
FROM InventSum(InventSum) 
USING INDEX ClosedItemDimIdx GROUP BY InventSum.ItemId, InventDim.InventLocationId, InventDim.inventBatchId,
InventTable.NameAlias ORDER BY InventSum.ItemId ASC 

WHERE ((Closed = 0)) AND ((InventLocationId = N'DMM'))

JOIN FORUPDATE INDEXISHINT  FROM InventDim(InventDim) USING INDEX DimIdIdx 
ON InventSum.InventDimId = InventDim.inventDimId 

AND ((InventLocationId = N'DMM')) 

JOIN FORUPDATE  FROM InventTable(InventTable_DS) ON InventSum.ItemId = InventTable.ItemId}
 
But the form still not filtered!
 
Categories:
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    238,149 Most Valuable Professional on at
    You have a bug in your code. You wanted to add a range for InventDim.InventLocationId but you didn't. You've added a range for InventSum field that has the same ID as InventLocationId has in InventDim table. That's why your query contains no filter for InventDim.InventLocationId, but there is one for InventSum.InventDimension6.
     
    You need to call addRange(fieldNum(InventDim, InventLocationId)) on qbdsDim, not qbdsSum.
  • AbdullahAhmed_ Profile Picture
    493 on at
    Yes, thank you.. I updated the code and the range on inventDim is added now.
     
    But still no change in the result!

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

News and Announcements

Season of Giving Solutions is Here!

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
Abhilash Warrier Profile Picture

Abhilash Warrier 732 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 289 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans