Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Answered

Opening a page with SetTableView for a filtered subset

Posted on by 573
Using the latest BC 365 SaaS version. I have a cue page that displays a tile for the current user's open purchase order count, among other things. I am filtering purchase orders that have the current user listed as the purchaser code, and iterating through the purchase lines to only capture those purchase orders that have remaining quantities to receive. Since that purchase line iteration is out of scope for basic purchase header filtering, I am inserting any matching records into a temporary purchase header table. The temporary purchase header table's record count correctly appears as the tile's document count. But when I drill down into this same temporary table to bring up the purchase order list, all hundreds of purchase orders appear. I'll include screen shots below.
 
Any suggestions as to what could be happening? Like I said, the document count based on this same temporary purchase header table is correct. There are 14 open PO's. Not the hundreds that appear when I drill down. That's what's puzzling me. :)
 
//
//
 
// 
Categories:
  • Verified answer
    Greg Kujawa Profile Picture
    Greg Kujawa 573 on at
    Opening a page with SetTableView for a filtered subset
    I didn't initially see the Completely Received boolean field in the purchase header. Especially good, since I understand that you cannot SetTableView on a temporary table, as I was originally trying. All good now!

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,339 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,177 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans