web
You’re offline. This is a read only version of the page.
close
Skip to main content
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 132

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
    115 on at
    RE: May I know what is the use of OnAssistEdit trigger.

    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
    RE: May I know what is the use of OnAssistEdit trigger.

    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

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,666

#2
Sumit Singh Profile Picture

Sumit Singh 2,885

#3
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 2,293

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans