Thursday, October 18, 2018

Modify Standard Pages Control Using Extension in Business Central


Hello Friends,

Get ready for new future for development skills with Dynamics Products.
As you know, in Business Central we can't modify the base systems standard objects,
Only way to modify base is to create extended object and event subscription.

Suppose you want to modify standard page field property, than you need to create the page extension of standard page and can add, delete, modify fields and property and action of standard page.

AL Language provide us new functions Modify(), Addafter(), functions for modify standard pages.

Following are list of property for page field and action that we can modify using Modify() function in page extension.


pageextension 70144473 pageextension50001 extends "Sales Order"
{
    layout
    {
        modify("No.")
        {
            Visible = false;
            Caption
            CaptionClass
            CaptionML
            ClosingDates
            Description
            Enabled
            FreezeColumn
            HideValue
            Importance
            InstructionalText
            InstructionalTextML
            ODataEDMType
            OptionCaption
            OptionCaptionML
            QuickEntry
            ShowCaption
            Style
            StyleExpr
            ToolTip
            ToolTipML
            Width
        }
        addafter(General)
        {
            part(Complaint; "INT Complain Register Subform")
            {
            }
        }

    }
    actions
    {
        modify(Post)
        {
            Visible = false;
            ApplicationArea
            Caption
            CaptionML
            Description
            Enabled
            InFooterBar
            Promoted
            PromotedCategory
            PromotedIsBig
            PromotedOnly
            ShortcutKey
            ToolTip
            ToolTip
            ToolTipML
        }
    }
}


Hope it will help someone to understand the concept of development with AL Language using VS Code.

Please write a comment if you need more help,

Thank you for reading,
Keep Sharing....Keep Growing ......

4 comments:

  1. Hi,
    How I can modify a size of Description field from table Sales Lines Text[100] to 1600? Is there any way ?

    ReplyDelete
  2. New site is solid. A debt of gratitude is in order for the colossal exertion. UN38.3 standard

    ReplyDelete
  3. it's really cool blog. Linking is very useful thing.you have really helped News Update

    ReplyDelete