Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

Opening a page with SetTableView for a filtered subset

Posted on by 620
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 620 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!

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans