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

Notifications

Announcements

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 140

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)
  • Suggested answer
    JAngle Profile Picture
    137 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;
    }

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

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

News and Announcements

Season of Giving Solutions is Here!

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 1,572

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 789 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 693 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans