Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

How to add a "Reload" button to my page action bar?

(0) ShareShare
ReportReport
Posted on by 25

I created a simple page in AL presenting data from a source table. By default, the action bar comes with button to create / search / edit / delete records:

pastedimage1678406354401v1.png

I would like to add an additional "Reload" button to this bar, like exists on the Web Services page:

pastedimage1678406482946v2.png

This will be faster than reloading the entire browser tab. How can this be achieved?

  • Suggested answer
    Govinda Kumar Profile Picture
    Govinda Kumar 2,203 Super User 2024 Season 1 on at
    RE: How to add a "Reload" button to my page action bar?

    Hi Ibu,

    Try adding FindFirst() in your reload action.

    You can just write it as
    pastedimage1678692586134v1.png

    It will automatically move you to the first record of the grid.

    Regards.

  • Ibu Profile Picture
    Ibu 25 on at
    RE: How to add a "Reload" button to my page action bar?

    Several months using Business Central and I did not know F5 behaved this way! :) Still, I prefer having an explicit button as I suspect other users might also be unaware. 

    Thanks for putting me on the right path. The following code also "promotes" the action button to be rendered directly in the bar.

    Would you know how I can also make the list view container scroll all the way to the top? As it currently stands, whether I use this action button or F5, new items appear outside of the view port and manual scrolling to the top is required to notice the effects of the refresh.

    pastedimage1678469239974v1.png

    pastedimage1678469403325v2.png

  • Verified answer
    Govinda Kumar Profile Picture
    Govinda Kumar 2,203 Super User 2024 Season 1 on at
    RE: How to add a "Reload" button to my page action bar?

    Hi Ibu,

    For the Web service page, there is custom Reload action added

    pastedimage1678459789827v2.png
    pastedimage1678459721643v1.png

    like Nitin said... you can just press F5 and it will automatically reload the grid without refreshing the entire page..


    Regards

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: How to add a "Reload" button to my page action bar?

    Hi,

    Just be on that page and Press F5 key it will refresh that page only not the entire browser tab

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: How to add a "Reload" button to my page action bar?

    Hello,

    We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist. If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    www.dynamicsuser.net/.../14

    I will open this up to the community in case they have something to add.

    Thanks.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans