Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Filter item no in sales price table that not start (AR-) Problem

Posted on by 4,548

Hi guys i want to filter sales price table filed item no as example

AR-AGG

AR-AGG1

AR-CEMENT

AR-SAND

SAND

CEMENT

AGG

I need only show only items not start  AR-

MEANING result what i need is

SAND

CEMENT

AGG

I make  filter but it not work why :

Item.No. WHERE (Item Category Code=FILTER(FG),No.=FILTER(<>AR*))

after this i display data only (fg items)  that show but items fg that start AR not showing

Filter i need make filter to fg items and that not start AR-

Can any one show to me how i make filter to above.

*This post is locked for comments

  • Verified answer
    Daniele Rebussi Profile Picture
    Daniele Rebussi 2,480 on at
    RE: Filter item no in sales price table that not start (AR-) Problem

    Moreover you can consider also adding a new custom field on sales price table to categorize records which start by AR* and using it for filtering purpose: it's not a best practice using hardcoded filters.

  • Suggested answer
    Daniele Rebussi Profile Picture
    Daniele Rebussi 2,480 on at
    RE: Filter item no in sales price table that not start (AR-) Problem

    If you are developing a report you can put the filters in OnePreDataItem trigger:

    SETRANGE("Item Category Code",'FG');

    SETFILTER("Item No.",'..AP|AT..');

    Just a note: I'm not sure regarding the second filter, since on certain version SETFILTER("Item No.",'<>AR*'); couldn't be working as expected

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans