web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Page Scripting error in selecting ItemNo. on custom subpage in BC27

(5) ShareShare
ReportReport
Posted on by 10

We are using Page Scripting to build automated tests in Dynamics 365 Business Central (BC27 and BC28).

 

The same Page Script works correctly on standard pages such as Sales Order, but fails on our custom page  specifically when setting Item No. on a lines subpage.

Error:  i.filterAsYouType is not a function


The failure always occurs on a subpage (Part)

 
  •  

    The Item No. is selected from the lookup list


  •  

    Alt+Down or the lookup (…) button is used


  •  

    The value is not typed manually



  •  
Page Script Error.png
I have the same question (0)
  • Suggested answer
    Dhiren Nagar Profile Picture
    2,898 Super User 2026 Season 1 on at
    Hi,
     
    I've faced similar problem in all the pages where we are looking up a record and selecting it.
    You need to type in the value for these fields, for it to work.
  • Suggested answer
    Assisted by AI
    OussamaSabbouh Profile Picture
    12,878 Super User 2026 Season 1 on at
    Hello ,
     
     it happens because the Item No. field on your custom lines subpage is not using the standard lookup control. Page Scripting expects a normal TableRelation-based, type-to-filter lookup, but on custom pages this often breaks if the field is bound to a variable, uses custom OnLookup/OnAssistEdit logic, or manually opens a page. The lookup still opens for users, but the web client object doesn’t support filterAsYouType, so the test fails (especially on Parts/subpages). Fix by using a real table field with TableRelation and no custom lookup code, or adjust the script to type the value directly instead of using Alt+Down/ellipsis.
    Regards,
    Oussama 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,946 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,177 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 555 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans