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 :
Business Central forum

Entering data into lookup

(0) ShareShare
ReportReport
Posted on by 700

Could anyone please suggest how can we enter data into lookup table. I have created a lookup but it is not allowing to enter data in it. How to enable this functionality !

Categories:
  • Suggested answer
    Avinash B Profile Picture
    1,455 on at

    Hi

    You must create a page of type "List" for the table which you have mentioned in the table relation.

    DrillDownPageId and LookupPageId are included in Table Properties and mention the page name you developed.

    pastedimage1567073985770v1.png

    By this way, you can enter the data to the table that will appear in LookUp.

    Please mark as Verified if the suggestion solves your problem.

    Regards,

    Avinash B

  • Dynamics 365 Business Central Profile Picture
    700 on at

    What all will be the fields in that page ?

  • Dynamics 365 Business Central Profile Picture
    700 on at

    Below is the code. Can you provide proper editing places

    page 50125 MyLookupPage

    {

       PageType = List;

       ApplicationArea = All;

       UsageCategory = Administration;

       SourceTable = MyLookupTable;

       layout

       {

           area(Content)

           {

               group(GroupName)

               {

                   field(Name; NameSource)

                   {

                       ApplicationArea = All;

                   }

               }

           }

       }

       actions

       {

           area(Processing)

           {

               action(ActionName)

               {

                   ApplicationArea = All;

                   trigger OnAction()

                   begin

                   end;

               }

           }

       }

       var

           myInt: Integer;

    }

  • Suggested answer
    Avinash B Profile Picture
    1,455 on at

    Hi

    You can add the fields from the table like mandatory fields that have to fill. For example, if the table has Code and Description fields then the page looks like below.

    page 50125 MyLookupPage

    {

      PageType = List;

      ApplicationArea = All; // Add this property if u want the page to be appeared in search

      UsageCategory = Administration; // Add this property if u want the page to be appeared in search

      SourceTable = MyLookupTable;

      layout

      {

          area(Content)

          {

              repeater(General) // repeater - data shows as list

              {

                  field(Code;Code)

                  {

                      ApplicationArea = All;

                  }

                  field(Description;Description)

                  {

                      ApplicationArea = All;

                  }

              }

          }

      }

         var

          myInt: Integer;

    }

    And on the respective table properties

    DrillDownPageId = MyLookupPage;

    LookupPageId = MyLookupPage;

    Help community by marking the answer as Yes if it solves your problem.

    Regards,

    Avinash B

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans