Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Issue: Extending Payment Journal using extension

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, 

I'm trying to extend business central "Payment Journal" page using extension. All I want to do is add an action item to the page. But it does not show my action button on the ribbon. Below is my code and would be great if you can help with this. (If I have on open trigger it get fired without an issue too)

(I do have developer license and its uploaded to docker running instance)

pageextension 50000 MyPageExtension extends "Payment Journal"
{
    layout
    {
        // Add changes to page layout here
    }

    actions
    {
        addbefore("P&osting")
        {

            group(mygroup)
            {
                Visible = true;

                action(myaction)
                {
                    Visible = true;
                    ApplicationArea = Basic;
                    Promoted = true;
                    PromotedCategory = Category4;
                    trigger OnAction()
                    begin
                        Message('Working well');
                    end;
                }

            }

        }
    }

    var
        myInt: Integer;
}

*This post is locked for comments

  • Suggested answer
    AJAnsari Profile Picture
    AJAnsari 5,754 on at
    RE: Issue: Extending Payment Journal using extension

    Hi Dushan,

    I originally had some issues adding action items to pages as well. Take a look at these code samples from my GitHub repo (I've been playing around with AL in my free time and putting my code on GitHub:

    On List page:

    github.com/.../ItemListPage.al

    On Card page:

    github.com/.../ItemCardPage.al

    I hope this helps. If my response has answered your question, please verify by clicking Yes next to "Did this answer your question?"

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans