Skip to main content

Notifications

Announcements

No record found.

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

Order No field not searchable and filterable

(0) ShareShare
ReportReport
Posted on by 12

Following Situation:

I created a pageextension to make the Order Number field (ID 65) of table Purch. Rcpt. Line (121) visible on the Get Receipt Lines page (5709)

pageextension 50000 "My Get Receipt Lines" extends "Get Receipt Lines"
{
    layout
    {
        moveafter("Document No."; OrderNo)
    }
}
 
In BC I create a new purchase invoice and open the Get Receipt Lines page from there.
I do get all receipts for that vendor, but i am not able to search for the Order Number in the search field
pastedimage1671625330611v1.png
The field is also not filterable.
pastedimage1671625388766v2.png
Any ideas, why this happens?
Using Version 21.2. (SaaS)
Thanks a lot
Björn
  • Suggested answer
    pankaj.k Profile Picture
    pankaj.k 962 on at
    RE: Order No field not searchable and filterable

    Hi Bjoern Waninger

    We can't search with Variables, you need to add field on the page as per Yun Zhu that will helps you for Search with Order Number.

  • Bjoern Waninger Profile Picture
    Bjoern Waninger 12 on at
    RE: Order No field not searchable and filterable

    Thank you all for your replies. That helped me figure out my blockade :-)

    My intention was to use field 65, but did not see, that Get Receipt Lines page has a variable OrderNo (which I used), that is loading the field value.

    Not exactly sure, why Microsoft did it like that and is not directly taking the field from the Record.

    pastedimage1671702709688v1.png

  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 74,115 Super User 2024 Season 2 on at
    RE: Order No field not searchable and filterable

    Hi, You can display the fields below. This field can be sorted.

    pastedimage1671672801586v1.png

    pastedimage1671672880758v2.png

    pastedimage1671673026249v4.png

    pastedimage1671673019443v3.png

    Hope this helps as well.

    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Order No field not searchable and filterable

    Nitin is right.

    You need to try another approach where you display the order no. as a table field instead of a variable to make it searchable.

    Maybe you can try to create a flowfield instead?

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Order No field not searchable and filterable

    Hi,

    seems that you are using variable on page if yes then you can not search or filter on page variable 

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans