Announcements
Why are you creating a separate request field for this? Since the Report Layout section on the request page is distinct from your custom fields, it is not possible to programmatically change the layout using AL code directly.
In Business Central, the layout selection on the report request page cannot dynamically control the layout used for rendering the report based on a custom option field.
However, you can work around this limitation by either using multiple reports or guiding the user to select the layout manually from the Report Layout Selection page before running the report.
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156