{"title":"CodeCop Warning AA0249","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/analyzers/codecop-aa0249/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/analyzers/codecop-aa0249, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/analyzers/codecop-aa0249","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"PageField trigger is unused due to a property value.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"CodeCop Warning AA0249","slug":"codecop-warning-aa0249","at":0,"chars":595},{"level":2,"title":"Description","slug":"description","at":78,"chars":68},{"level":2,"title":"How to fix this diagnostic?","slug":"how-to-fix-this-diagnostic","at":146,"chars":308},{"level":2,"title":"Related information","slug":"related-information","at":454,"chars":141}],"text":"# CodeCop Warning AA0249\nPageField trigger is unused due to a property value.\n## Description\nPageField trigger is unused due to a property value.\n## How to fix this diagnostic?\nThe warning may be triggered for the ../triggers-auto/pagefield/devenv-onlookup-pagefield-trigger while the page field isn't editable. In such cases, it's a best practice to replace the OnLookup trigger with the ../triggers-auto/pagefield/devenv-ondrilldown-pagefield-trigger.\n## Related information\nCodeCop analyzer<codecop>\nGetting started with AL<../devenv-get-started>\nDeveloping extensions<../devenv-dev-overview>"}