Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Currpage.settableview not working in onaftergetrecord trigger when switching between pages

(1) ShareShare
ReportReport
Posted on by
I have this custom functionality added on warehouse pick sub-form level in OnAfterGetRecord trigger to filter the lines in sub-form and display only those line whose bin No. is assigned to the current user. I am performing this filtering base on a boolean field on the header level such that if the field is true then filter the lines and vice versa. The trigger and the filtering is working perfectly fine but when I switch pages and use the back arrow to navigate to the previous pick then the trigger somehow isn't executed and the pick sub-form displays no lines even when there are lines present in the table. Now I have figured the only line causing this weird scenario is the Currpage.settableview which if I comment out and then navigate through the pages, the actual lines in the sub-form would show without the filtering since the filtered table view wont be set. The issue here is the trigger not executing properly due this one line when pages are switched so kindly help me figure a work around this one.
//
//
//
//
//

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans