microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
723 stars 241 forks source link

Tree view pages The property 'IndentationControls' cannot be used in this contextAL(AL0124) #5792

Closed stijn9830 closed 4 years ago

stijn9830 commented 4 years ago

Describe the bug When creating a new page, which I want to use as tree page, I Get The property 'IndentationControls' cannot be used in this contextAL(AL0124)

To Reproduce

This gives an error whitout any explication

page 95000 "PBL Contact List" { ApplicationArea = All; UsageCategory = Lists; SourceTable = Contact; Caption = 'Valcredo Contacts'; CardPageID = "Contact Card"; PageType = List; IndentationControls = "No.";

The property 'IndentationControls' cannot be used in this contextAL(AL0124)

Expected behavior

Screenshots If applicable, add screenshots to help explain your problem. image

5. Versions:

nicolassaleron commented 4 years ago

Hi, The property has to be set on the repeater control, not on the page directly.

See: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-indentationcontrols-property

stijn9830 commented 4 years ago

My bad. Thanks for the quick feedback