Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

AL code to auto populate a field from one page to another having same table

(0) ShareShare
ReportReport
Posted on by 335

Hi All,

I have created a  field on Purchase Order List page to add a Description(to add the part  number with a PO number).

I have a requirement where I want this field I have created  i.e. "Description " that a user would enter in purchase Order page to be auto populated on purchase order list page .Both pages have the same table.

Can you please help me with the code.

Regards,

Rupali

  • Suggested answer
    Anks27 Profile Picture
    1,083 on at
    RE: AL code to auto populate a field from one page to another having same table

    Hello,

    I have gone through your question and analyze the issue and as per my understanding you need to add your custom field Description into Purchase Order List and this field is available on Purchase Order page right nowfor that we need to create one extension and add that field.

    below is the code to add this field.

    Purchase Order Page in​​​​​​​ Description field is already available:

    PO-Description1.png

    Purchase Order List Page in Description field is not available:

    PO-Description2.png

    You can use this code to add description field.

    • Before that you must need to add your dependency .app details in your extension after that you can see your custom field as per below example.

    PO-Description3.png

    Signed, Sealed and Delivered.

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

     

    Thanks & Regards,

    Ankit Shah(MCT-Microsoft Certified Trainer || Dynamics 365/Business Development Manager)

     

    Follow/Connect 101 on below

    LinkedIn:-   https://linkedin.com/in/dynamicpower101/

    Twitter:-     https://twitter.com/Dynamicpower101

    Facebook:- https://facebook.com/DynamicPower101/

    Telegram:- https://t.me/dynamicpower101

    Medium:-   https://medium.com/dynamicpower101

  • Suggested answer
    JAngle Profile Picture
    89 on at
    RE: AL code to auto populate a field from one page to another having same table

    Would it make more sense to have it as a table field and then just add the field to the separate pages? The editable property on the order page can be true and on the list page it can be false. Coding wise this would be a table extension and then a couple of page extensions. Resources from Dulio will do the trick as full overviews but these are more specific:

    docs.microsoft.com/.../devenv-table-ext-object

    docs.microsoft.com/.../devenv-page-ext-object

  • Suggested answer
    THE Italian Profile Picture
    on at
    RE: AL code to auto populate a field from one page to another having same table

    You might check these useful documentation resources

    docs.microsoft.com/.../

    docs.microsoft.com/.../devenv-dev-overview

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

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

#1
YUN ZHU Profile Picture

YUN ZHU 448 Super User 2025 Season 1

#2
Sagar Dangar, MCP Profile Picture

Sagar Dangar, MCP 358

#3
Mansi Soni Profile Picture

Mansi Soni 327

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans