================================================================================
ShowMandatory property with expressions
================================================================================

page 50100 "Test ShowMandatory"
{
    layout
    {
        area(content)
        {
            field("Test Field"; "Test Field")
            {
                ShowMandatory = TRUE;
            }
            field("Dynamic Field"; "Dynamic Field")
            {
                ShowMandatory = NOT IsSaaSProd;
            }
            field("Complex Field"; "Complex Field")
            {
                ShowMandatory = Rec.Required AND NOT Rec.Optional;
            }
        }
    }
}

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

(source_file
  (page_declaration
    (page_keyword)
    (integer)
    (quoted_identifier)
    (layout_section
      (layout_keyword)
      (area_section
        (area_keyword)
        (page_field
          (quoted_identifier)
          (quoted_identifier)
          (property
            (property_name)
            (boolean)))
        (page_field
          (quoted_identifier)
          (quoted_identifier)
          (property
            (property_name)
            (property_expression
              (unary_expression
                (identifier)))))
        (page_field
          (quoted_identifier)
          (quoted_identifier)
          (property
            (property_name)
            (property_expression
              (logical_expression
                (member_expression
                  (identifier)
                  (identifier))
                (unary_expression
                  (member_expression
                    (identifier)
                    (identifier)))))))))))
