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

Add New Action to Page Extension When Existing Page Currently Has No Actions

(0) ShareShare
ReportReport
Posted on by

I am looking to add an action to an existing page that currently does not contain any actions.

Since there are no actions on the page, AddAfter(), AddBefore(), AddFirst(), & AddLast() do not work because there is nothing to 'Anchor' to.

    actions
    {
         AddLast(Anchor)
            {
                rAction
             }
    }
I had read somewhere that you can use something like AddLast(Creation) - and Creation would be an anchor when you need to create your first action, but it doesn't work. Visual Studio lists it as an error.
How do you add add a new action on a page without actions?
This is for a BC14 installation and will be used in many localizations (DE,UK, ES, Ect). I beleive the runtime version is 3.2, or something like that.
Thanks!
I have the same question (0)
  • Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    What page (object no.) are you trying to add an action to?

  • VokesoJcl Profile Picture
    on at

    Page 9042 - Team Member Activities.  - althought the question is for any page that doesn't have existing actions. I don't know how to provide an 'Anchor' when there isn't anything already there.

    Thank You.

  • Truong Tan Chau Profile Picture
    10 on at
    pageextension id "Vendor Bank Account Card Ext" extends "Vendor Bank Account Card"
    {
        actions
        {
            addlast(Processing)
            {
                action("New Action")
                {
                    Caption = 'My New Action';
                    ApplicationArea = All;
                    Image = Action;

                    trigger OnAction()
                    begin
                        Message('This is my new action!');
                    end;
                }
            }
        }
    }


    In Visual Studio Code, I click Ctrl + Space and it give me the answer for this 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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans