AL
AL copied to clipboard
Unable obsolete usercontrol
1. Describe the bug Usercontrol in Page or PageExtension cannot be obsoleted.
2. To Reproduce
-
Add any usercontrol to any page
-
Set its property ObsoleteState, ObsoleteTag or ObsoleteReason
-
An error occurs: The property 'ObsoleteState/Tag/Reason' cannot be used in this contextAL[AL0124]
usercontrol(BusinessChart; BusinessChart) { ObsoleteState = Pending; ObsoleteTag = '26.0'; ObsoleteReason = 'Not used anymore'; }
3. Expected behavior Property can be set and usercontrol will be able to be deleted in three versions. Comment: related controladdin can be obsoleted.
4. Actual behavior Compilation fails with error.
5. Versions:
- AL Language: 15.0.1433841
- Visual Studio Code: 1.99.3
- Business Central: 26.0.0.0
- List of Visual Studio Code extensions that you have installed: AL Language extension for Microsoft Dynamics 365 Business Central
- Operating System:
- [x] Windows
- [ ] Linux
- [ ] MacOS
Final Checklist
Please remember to do the following:
- [x] Search the issue repository to ensure you are reporting a new issue
- [x] Reproduce the issue after disabling all extensions except the AL Language extension
- [x] Simplify your code around the issue to better isolate the problem
Internal work item: AB#575336