AL icon indicating copy to clipboard operation
AL copied to clipboard

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

Open stijn9830 opened this issue 6 years ago • 2 comments

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:

  • AL Language: 5.0.254558
  • Business Central: BC

stijn9830 avatar Apr 09 '20 09:04 stijn9830

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

nicolassaleron avatar Apr 09 '20 11:04 nicolassaleron

My bad. Thanks for the quick feedback

stijn9830 avatar Apr 09 '20 11:04 stijn9830