AL icon indicating copy to clipboard operation
AL copied to clipboard

Question: RunPageView missing FIELD expression for WHERE

Open megel opened this issue 8 years ago • 2 comments

Since I have updated to a newer version of my AL Language extension, I get this error:

[AL] The property expression is not valid. A CONST or FILTER expression is expected.

Where is the FIELD expression or how do I use the filter now?

Here is the code:

Action("Beer Category")
{
    // ...
    RunObject = page "My Card";
    RunPageView = order(ascending) where("Code" = field("My Code"));
}
Microsoft (R) AL Compiler version 0.17.19506
Copyright (C) Microsoft Corporation. All rights reserved

megel avatar Jun 08 '18 08:06 megel

Hi @megel, You have to define that in RunPageLink property of page from where you want to run this page, on RunPageView you can only define CONST of FILTER,
Ex : - RunPageLink = Code=FIELD(Code),"Parent Table ID"=field("Table Id");

rishiaurrishabh avatar Jun 08 '18 08:06 rishiaurrishabh

Ahh thanks a lot!

megel avatar Jun 08 '18 09:06 megel