Επεξεργασία

Κοινή χρήση μέσω


PromotedIsBig Property

Version: Available or changed with runtime version 1.0.

Sets the action to appear before other promoted actions in the action bar, regardless of its position in the AL code of the page.

Applies to

  • Page Action

Syntax

PromotedIsBig = true;

Property Value

true display the action before other actions in the action bar; otherwise, false. The default is false.

Remarks

Note

With Business Central 2022 release wave 2, the way that you promote actions on pages or page extensions has changed. Promoting actions is defined in a specific section of the page definition and contains a reference to the action. For more information, see Promoted Actions.

If there is more than one action that has the PromotedIsBig property set to true, then the actions will appear before other actions, in the order that they are defined in AL.

For more information about promoting actions, see Promoted Actions.

Note

In the Dynamics NAV Client connected to Business Central, this property behaves differently. Setting the property to true will display a bigger icon than normal in the client. It will not reposition the action.

Example

The following code snippet adds the Sales Invoice and the Sales Quote actions to a page, and promotes them to the category named New. In AL, the Sales Invoice action is defined after the Sales Quote action. But because the PromotedIsBig property on the Sales Invoice action is true , it will appear before the Sales Quote action in the user interface.

actions
    {
        area(Creation)
        {
            action("Sales Quote")
            {
                Promoted = true;
                PromotedCategory = New;
                PromotedOnly = true;
                Image = NewSalesQuote;
                ApplicationArea = All;
            }
            action("Sales Invoice")
            {
                Promoted = true;
                PromotedCategory = New;
                Image = SalesInvoice;
                PromotedIsBig = true;
                ApplicationArea = All;
            }
        }
    }

Promoted Property
Promoted Actions
Actions Overview