AL
AL copied to clipboard
Error compiling dynamic control expression for BigInteger in Enabled property
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:
- 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
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
Internal work item: AB#582331