AL icon indicating copy to clipboard operation
AL copied to clipboard

Error compiling dynamic control expression for BigInteger in Enabled property

Open pri-kise opened this issue 6 months ago • 0 comments

Please include the following with each issue:

1. Describe the bug I receive the following error

Error compiling dynamic control expression: '0L <> "Entry No."' at index '0'. The error is: Not a valid number.

2. To Reproduce Steps to reproduce the behavior:

  1. Create an action on a page with a sourcetable that has field with a BigInteger
action(DoMagic)
{
    Caption = 'Magic;
    Enabled = 0L <> Rec."Entry No.";
    Image = Edit;
    ToolTip = 'Do Magic.';

    trigger OnAction()
    var
        Magic: Codeunit "PTE Magic";
    begin
        Magic.Perform(Rec);
    end;
}

3. Expected behavior A compile time error as long as this isn't supported. Better: Add Support for BigInteger Evaluations

4. Actual behavior Currently I receive an runtime error

Image

5. Versions:

  • AL Language: 15.0.1433841
  • Business Central: 25.5

Additional Notes

If change the code above to the following

action(DoMagic)
{
    Caption = 'Magic;
    Enabled = 0L <> Rec."Entry No.";
    Image = Edit;
    ToolTip = 'Do Magic.';

    trigger OnAction()
    var
        Magic: Codeunit "PTE Magic";
    begin
        Magic.Perform(Rec);
    end;
}

then I receive another error:

UnsupportedType

Image

Internal work item: AB#582331

pri-kise avatar Jul 01 '25 11:07 pri-kise