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

May I know what is the use of OnAssistEdit trigger.

(0) ShareShare
ReportReport
Posted on by 152

I am unable to find what is the use of page field trigger i.e: OnAssistEdit. if any one knows well about it. please share the knowledge.

I have the same question (0)
  • Verified answer
    tanya07 Profile Picture
    1,638 on at

    Hi,

    please follow the logic for field No. in the Job Card, as below :

    pastedimage1651490145428v1.png

    Thanks,

    Tanya Kharbanda

    Don't forget to help the community by verifying the answer if your question has been answered. It will let others know that the topic has a verified answer.

  • Suggested answer
    JAngle Profile Picture
    150 on at

    Example from the base app from the contact card page below. It largely depends on what UX you want. Lookups have a dropdown menu displayed. Whereas an assist edit opens a pre filtered chosen page:

    field(Name; Name)
    {
    ApplicationArea = All;
    AssistEdit = true;
    Importance = Promoted;
    ShowMandatory = true;
    ToolTip = 'Specifies the name of the contact. If the contact is a person, you can click the field to see the Name Details window.';

    trigger OnAssistEdit()
    var
    Contact: Record Contact;
    begin
    if "No." = '' then begin
    Insert(true);
    Commit;
    end;
    Contact := Rec;
    Contact.SetRecFilter;
    if Contact.Type = Contact.Type::Person then begin
    Clear(NameDetails);
    NameDetails.SetTableView(Contact);
    NameDetails.SetRecord(Contact);
    NameDetails.RunModal;
    end else begin
    Clear(CompanyDetails);
    CompanyDetails.SetTableView(Contact);
    CompanyDetails.SetRecord(Contact);
    CompanyDetails.RunModal;
    end;
    Rec := Contact;
    CurrPage.Update(false);
    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,821 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,122 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans