Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Can't filter On-Handlist form!

(2) ShareShare
ReportReport
Posted on by 323
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:
  • AbdullahAhmed_ Profile Picture
    323 on at
    Can't filter On-Handlist form!
    Yes, thank you.. I updated the code and the range on inventDim is added now.
     
    But still no change in the result!
  • Suggested answer
    Martin Dráb Profile Picture
    232,881 Most Valuable Professional on at
    Can't filter On-Handlist form!
    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,141 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,881 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans