Skip to main content

Notifications

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

[SOLVED] Action from page extension is not showing

Posted on by 53
Hi everyone. I am new to Business Central and AL programming. I am now learning and following the learning path provided by Microsoft.
 
I have a Demo Page as follow:
 
 
And my DemoPageExt:
 
I want my second action to be placed after the first action so I use addafter(FirstAction). However, the second action is not showing on my Demo Page:
 
 
 
Application version: 24.4.22295.22393
Runtime: 13.1
 
What have I done wrong???  I have spend hours reading tutorials on actions and page extension and still wasn't able to solve the issues.
I am slowly losing my sanity. Please help, thank!!!!!!!
  • kayc529 Profile Picture
    kayc529 53 on at
    Action from page extension is not showing
    Thank you all for the response! My problem is solved.
  • Verified answer
    Khushbu Rajvi. Profile Picture
    Khushbu Rajvi. 3,952 on at
    Action from page extension is not showing
    If there is nothing running in the action, such as a trigger or a run object property, the action will not be displayed. add onaction trigger.
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 71,953 Super User 2024 Season 2 on at
    Action from page extension is not showing
    The reason is simple. If there is nothing running in the action, such as a trigger or runobject property, the action will not be displayed.
    This is the behavior since NAV. You can add a message like the first action, and you can see it.
     
    Hope this helps.
    Thanks.
    ZHU
  • Suggested answer
    Sami Ullah Profile Picture
    Sami Ullah 284 on at
    Action from page extension is not showing
    Hi,

    Try this, you were missing actionref.
     
    pageextension 60106 DemoPageExt extends DemoPage
    {
        actions
        {
            addafter(FirstAction)
            {
                action(SecondAction)
                {
                    Caption = 'Second Action';
                    ApplicationArea = All;
                    Image = CalendarMachine;
                    ToolTip = 'This is my second action';
                }
            }
    
    
            addlast(Promoted)
            {
                actionref(SecondAction_Promoted; SecondAction)
                {
                }
            }
    
        }
    }

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 Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,912 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,355 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans