web
You’re offline. This is a read only version of the page.
close
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...
Suggested Answer

SETFILTER DATE

(0) ShareShare
ReportReport
Posted on by 10

hello I'm sorry for the inconvenience I hope you're okay I will try to explain to you a case in navision I have a flowfield field in the vendor card which calculates the evaluation of each vendor by each reception until everything is fine after a meeting with the client, he wants this field to display the vendor’s average per semester (1st semester of 01/01-->06/30)(2nd semester of 07/01-->12/31) but by example we are on 04/17/2022 the average grade that must be displayed is from the 2nd semester of the year 2021 roughly this average must display the average grade of the semester - 1. I added another date type field in the vendor table a flowfilter and I integrated it into the average rating field in the same table and in the page vendor I added a function scorevendor which will have a setfilter of the field but I don't know how to give it in the parameters especially I don't know how to write a code to calculate the score for semester-1 . I hope you understand my case. while waiting for your return, I wish you a good day

I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    What data is your score based on?

    Your vendors ability to deliver on time and on quantity?

    What is the datasource for your flowdfields?

  • matthias_rabus Profile Picture
    160 on at

    Can you show as a bit of your code? Especially the function ScoreVendor would be great.

    You can find a good example for Setfilter in the Docs:

    docs.microsoft.com/.../setfilter-function--record-

    Furthermore, I think you need to calculate the start and end date of your semester and then set these dates as your date filter

  • Suggested answer
    YUN ZHU Profile Picture
    95,739 Super User 2025 Season 2 on at

    Hi, You can use FlowFilter in FlowField, so that you can filter on dates.

    https://docs.microsoft.com/en-us/dynamics-nav/flowfilter-overview

    For example, in table 15 "G/L Account"

    pastedimage1650331779397v1.png

    But for such complex cases, I recommend creating a variable that updates the data in OnOpenPage (Page) Trigger or OnAfterGetRecord triggers.

    Hope this also helps.

    Thanks.

    ZHU

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

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,066

#2
YUN ZHU Profile Picture

YUN ZHU 658 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 595

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans