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...
Answered

Order No field not searchable and filterable

(0) ShareShare
ReportReport
Posted on by 4

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
I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at

    Hi,

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

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,105 Moderator on at

    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?

  • Verified answer
    YUN ZHU Profile Picture
    95,329 Super User 2025 Season 2 on at

    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

  • Bjoern Waninger Profile Picture
    4 on at

    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

  • Suggested answer
    pankaj.k Profile Picture
    994 on at

    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.

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 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans