Hi there,
i set a filter on a a record and for each record i need to set a specific Boolean to true or false.
Now the problem is that there are many booleans! Is there a way to assigned variables dynamically?
Basically what i'm asking is: are there variable variable-names?
Background: the property ShowMandatory on a page field is set through variables on the Item Card. And as you know: The Item Card got many fields by default.
hello
what you would like to do would have been possible if the shomandatory property had accepted functions.
but the shomandatory property cannot validate an AL function.
greetings
DAniele
thx for your answer, but i think it wouldn't help me setting all the different variables in a more comfortable way:
each field has its own variable, because they can each have a different state in my scenario.
that's why i thought there might be a way of saying "isfield<variable>Mandatory := checkMandatoryState();".
Hi, There is a simple example in method 3 below, hope will give you some hints.
Using RecordRef Data Type, FieldRef Data Type and Field table.
Thanks.
ZHU
Maybe recordref is what you are looking for?
learn.microsoft.com/.../recordref-data-type
That lets you dynamically access any field in any table in BC.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156