================================================================================
Page extension with modify layout modifications
================================================================================

pageextension 123 "Test Extension" extends "Test Page"
{
    layout
    {
        modify(Status)
        {
            Visible = true;
        }
        
        modify("Amount")
        {
            Visible = false;
            Editable = not IsAdmin;
        }
        
        addafter("No.")
        {
            field(CustomField; CustomValue)
            {
                Caption = 'Custom Field';
            }
        }
    }
}

--------------------------------------------------------------------------------

(source_file
  (pageextension_declaration
    (pageextension_keyword)
    object_id: (integer)
    object_name: (quoted_identifier)
    (extends_keyword)
    base_object: (quoted_identifier)
    (layout_section
      (layout_keyword)
      (modify_modification
        target: (identifier)
        (property
          name: (property_name)
          value: (boolean)))
      (modify_modification
        target: (quoted_identifier)
        (property
          name: (property_name)
          value: (boolean))
        (property
          name: (property_name)
          value: (property_expression
            (unary_expression
              operand: (identifier)))))
      (addafter_modification
        target: (quoted_identifier)
        (page_field
          name: (identifier)
          source: (identifier)
          (property
            name: (property_name)
            value: (string_literal)))))))
