Skip to main content

Notifications

Announcements

No record found.

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

Add drop-down to external document no

Posted on by 75

Screenshot_5F00_20230519_2D00_175937.jpg

As I get drop-down for order number, can I get drop-down for external document no?

Note - As order no I am passing it as primary key in my table 

This is my code:

trigger OnAction()

var varFilterPageBuilder: FilterPageBuilder;

Enquiries: Record Enquiries;

FilterExpr: text;

recEnquiries: Record Enquiries;

Past3Months: Date;

varDefaultView: Text;

varDateItem: Text[30];

cdu_FilterTokens: Codeunit "Filter Tokens";

begin

varFilterPageBuilder.AddTable('Enquiries', Database::Enquiries); // varFilterPageBuilder.AddField('Enquiries', Rec.No);

varFilterPageBuilder.AddField('Enquiries', Rec.Description); //External Document No

varFilterPageBuilder.AddField('Enquiries', Rec."Ship-to Post Code"); //Ship to Post Code

varFilterPageBuilder.AddField('Enquiries', Rec.Postcode); //Postcode

varFilterPageBuilder.AddField('Enquiries', Rec.No); //Order No varFilterPageBuilder.PageCaption := 'Enquiries Filter Page'; if varFilterPageBuilder.RunModal() then begin Enquiries.SetFilter(DateCreated, DateCreate);

if Enquiries.FindSet() then begin Enquiries.SetView(varFilterPageBuilder.GetView('Enquiries')); CurrPage.SetTableView(Enquiries); end; end; end;

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans