{"title":"Codeunit 1315 Chart Management, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/1315-chart-management/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":1315,"name":"Chart Management","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/1315-chart-management/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/1315-chart-management/source/","path":"src/Layers/W1/BaseApp/System/GenericChart/ChartManagement.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"codeunit:763":{"name":"Aged Acc. Receivable","url":"https://jonas-paprotka.de/ref/codeunit/763-aged-acc-receivable/"},"codeunit:764":{"name":"Aged Acc. Payable","url":"https://jonas-paprotka.de/ref/codeunit/764-aged-acc-payable/"},"codeunit:762":{"name":"Acc. Sched. Chart Management","url":"https://jonas-paprotka.de/ref/codeunit/762-acc-sched-chart-management/"},"codeunit:1316":{"name":"Top Ten Customers Chart Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1316-top-ten-customers-chart-mgt/"},"codeunit:1326":{"name":"Top Five Customers Chart Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1326-top-five-customers-chart-mgt/"},"codeunit:1317":{"name":"Aged Inventory Chart Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1317-aged-inventory-chart-mgt/"},"codeunit:1319":{"name":"Sales by Cust. Grp. Chart Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1319-sales-by-cust-grp-chart-mgt/"},"table:487":{"name":"Business Chart User Setup","url":"https://jonas-paprotka.de/ref/table/487-business-chart-user-setup/"},"table:762":{"name":"Account Schedules Chart Setup","url":"https://jonas-paprotka.de/ref/table/762-account-schedules-chart-setup/"},"table:485":{"name":"Business Chart Buffer","url":"https://jonas-paprotka.de/ref/table/485-business-chart-buffer/"},"table:1319":{"name":"Sales by Cust. Grp.Chart Setup","url":"https://jonas-paprotka.de/ref/table/1319-sales-by-cust-grp-chart-setup/"},"table:1311":{"name":"Last Used Chart","url":"https://jonas-paprotka.de/ref/table/1311-last-used-chart/"},"table:1310":{"name":"Chart Definition","url":"https://jonas-paprotka.de/ref/table/1310-chart-definition/"}},"procs":[{"name":"AddinReady","line":47,"kind":"procedure","params":2,"steps":[[65,"call","SetDefaultPeriodLength",2],[66,"call","UpdateChart",3]]},{"name":"ChartDescription","line":69,"kind":"procedure","params":1,"steps":[[75,"event","OnBeforeChartDescription",1],[89,"ext","codeunit",763,"Description",1],[91,"ext","codeunit",764,"Description",1]]},{"name":"DataPointClicked","line":112,"kind":"procedure","params":2,"steps":[[117,"event","OnBeforeDataPointClicked",1],[123,"ext","codeunit",762,"DrillDown",2],[125,"ext","codeunit",1316,"DrillDown",1],[127,"ext","codeunit",1326,"DrillDown",1],[129,"ext","codeunit",1317,"DrillDown",1],[131,"ext","codeunit",1319,"DrillDown",1],[133,"ext","codeunit",763,"DrillDownByGroup",2],[135,"ext","codeunit",764,"DrillDownByGroup",2]]},{"name":"PopulateChartDefinitionTable","line":139,"kind":"procedure","params":0,"steps":[[141,"call","InsertChartDefinition",2],[142,"call","InsertChartDefinition",2],[143,"call","InsertChartDefinition",2],[144,"call","InsertChartDefinition",2],[145,"call","InsertChartDefinition",2],[146,"call","InsertChartDefinition",2],[147,"call","InsertChartDefinition",2],[148,"call","InsertChartDefinition",2],[150,"event","OnAfterPopulateChartDefinitionTable",0]]},{"name":"SelectChart","line":153,"kind":"procedure","params":2,"steps":[[159,"call","PopulateChartDefinitionTable",0],[167,"call","SetDefaultPeriodLength",2],[168,"call","UpdateChart",3]]},{"name":"SetDefaultPeriodLength","line":172,"kind":"procedure","params":2,"steps":[[178,"call","SetPeriodLength",4],[181,"ext","table",487,"InitSetupCU",1],[182,"call","SetPeriodLength",4],[186,"ext","table",487,"InitSetupCU",1],[187,"call","SetPeriodLength",4],[192,"call","SetPeriodLength",4]]},{"name":"SetPeriodLength","line":197,"kind":"procedure","params":4,"steps":[[203,"event","OnBeforeSetPeriodLength",1],[211,"ext","table",762,"SetPeriodLength",1],[214,"call","GetBaseDate",2],[219,"ext","table",485,"GetPeriodLength",0],[220,"call","GetBaseDate",2],[222,"validate",762,"Start Date"],[223,"write",762,"Modify",1],[227,"ext","table",1319,"SetPeriodLength",1]]},{"name":"UpdateChartSafe","line":233,"kind":"procedure","params":4,"steps":[[236,"event","OnUpdateChartSafe",0]]},{"name":"UpdateChart","line":245,"kind":"procedure","params":3,"steps":[[250,"event","OnBeforeUpdateChart",1],[257,"ext","codeunit",762,"GetSetupRecordset",3],[258,"ext","codeunit",762,"UpdateData",3],[261,"ext","codeunit",1317,"UpdateChart",1],[264,"ext","table",1319,"SetPeriod",1],[265,"ext","codeunit",1319,"UpdateChart",1],[270,"ext","codeunit",763,"UpdateDataPerGroup",2],[271,"ext","codeunit",763,"SaveSettings",1],[276,"ext","codeunit",764,"UpdateData",2],[277,"ext","codeunit",764,"SaveSettings",1],[280,"ext","codeunit",1326,"UpdateChart",1],[282,"ext","codeunit",1316,"UpdateChart",1],[284,"call","UpdateLastUsedChart",1]]},{"name":"UpdateNextPrevious","line":287,"kind":"procedure","params":1,"steps":[[293,"event","OnBeforeUpdateNextPrevious",1]]},{"name":"UpdateStatusText","line":302,"kind":"procedure","params":3,"steps":[[309,"event","OnBeforeUpdateStatusText",1]]},{"name":"UpdateLastUsedChart","line":334,"kind":"procedure","access":"local","params":1,"steps":[[340,"validate",1311,"Code Unit ID"],[341,"validate",1311,"Chart Name"],[342,"write",1311,"Modify"],[345,"validate",1311,"UID"],[346,"validate",1311,"Code Unit ID"],[347,"validate",1311,"Chart Name"],[348,"write",1311,"Insert"]]},{"name":"InsertChartDefinition","line":352,"kind":"procedure","access":"local","params":2,"steps":[[359,"call","EnableChart",1],[360,"write",1310,"Insert"]]},{"name":"EnableChart","line":364,"kind":"procedure","params":1,"steps":[[367,"ext","table",1310,"IsSetupComplete",1]]},{"name":"GetBaseDate","line":390,"kind":"procedure","access":"local","params":2,"steps":[[404,"ext","table",485,"GetPeriodFromMapColumn",3],[409,"call","GetPeriodLength",0]]},{"name":"ScheduleTopCustomerListRefreshTask","line":423,"kind":"procedure","params":0,"steps":[[427,"call","TopCustomerListUpdatedRecently",1]]},{"name":"HandleUpdateChartSafe","line":455,"kind":"procedure","access":"local","params":3,"steps":[[457,"call","UpdateChart",3]]}]}