{"title":"Table 9650 Custom Report Layout, extension points 29","url":"https://jonas-paprotka.de/ref/table/9650-custom-report-layout/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":"table","id":9650,"name":"Custom Report Layout","app":"Base Application","url":"https://jonas-paprotka.de/ref/table/9650-custom-report-layout/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/table/9650-custom-report-layout/source/","path":"src/Layers/W1/BaseApp/Foundation/Reporting/CustomReportLayout.Table.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":{"table:9650":{"name":"Custom Report Layout","url":"https://jonas-paprotka.de/ref/table/9650-custom-report-layout/"},"codeunit:4100":{"name":"Temp Blob","url":"https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/"},"codeunit:9651":{"name":"Document Report Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/9651-document-report-mgt/"},"page:9651":{"name":"Report Layout Lookup","url":"https://jonas-paprotka.de/ref/page/9651-report-layout-lookup/"},"codeunit:419":{"name":"File Management","url":"https://jonas-paprotka.de/ref/codeunit/419-file-management/"},"table:9651":{"name":"Report Layout Selection","url":"https://jonas-paprotka.de/ref/table/9651-report-layout-selection/"},"page:9650":{"name":"Custom Report Layouts","url":"https://jonas-paprotka.de/ref/page/9650-custom-report-layouts/"}},"procs":[{"name":"OnInsert","line":136,"kind":"trigger","steps":[[140,"call","GetDefaultCode",1],[141,"call","SetUpdated",0]]},{"name":"OnModify","line":144,"kind":"trigger","steps":[[147,"call","SetUpdated",0]]},{"name":"InitBuiltInLayout","line":178,"kind":"procedure","params":2,"steps":[[193,"call","GetDefaultCode",1],[194,"write",9650,"Insert",1],[199,"call","LoadInternalWordLayout",2],[200,"ext","codeunit",4100,"CreateOutStream",1],[201,"ext","codeunit",9651,"NewWordLayout",2],[205,"ext","table",9650,"SetLayoutBlob",1],[208,"call","LoadInternalRdlcLayout",2],[209,"ext","table",9650,"SetLayoutBlob",1],[211,"event","OnInitBuiltInLayout",0],[214,"ext","table",9650,"SetDefaultCustomXmlPart",0],[215,"ext","table",9650,"SetLayoutLastUpdated",0]]},{"name":"LoadInternalWordLayout","line":226,"kind":"procedure","access":"local","params":2,"steps":[[237,"ext","codeunit",4100,"CreateOutStream",1]]},{"name":"LoadInternalRdlcLayout","line":248,"kind":"procedure","access":"local","params":2,"steps":[[259,"ext","codeunit",4100,"CreateOutStream",1]]},{"name":"CopyBuiltInReportLayout","line":264,"kind":"procedure","params":0,"steps":[[275,"ext","page",9651,"SetReportID",1],[278,"ext","page",9651,"SelectedAddWordLayot",0],[279,"call","InitBuiltInLayout",2],[279,"ext","page",9651,"SelectedReportID",0],[280,"ext","page",9651,"SelectedAddRdlcLayot",0],[281,"call","InitBuiltInLayout",2],[281,"ext","page",9651,"SelectedReportID",0],[283,"ext","page",9651,"SelectedAddWordLayot",0],[283,"ext","page",9651,"SelectedAddRdlcLayot",0],[284,"ext","page",9651,"InitCustomTypeLayouts",0]]},{"name":"CopyReportLayout","line":289,"kind":"procedure","params":0,"steps":[[301,"call","GetDefaultCode",1],[303,"event","OnCopyRecordOnBeforeInsertLayout",0],[304,"write",9650,"Insert",1],[307,"ext","table",9650,"GetLayoutBlob",1],[308,"call","SetLayoutBlob",1],[311,"call","HasCustomXmlPart",0],[312,"call","SetDefaultCustomXmlPart",0]]},{"name":"ImportReportLayout","line":317,"kind":"procedure","params":1,"steps":[[328,"call","CanBeModified",0],[344,"event","OnImportLayoutSetFileFilter",0],[345,"ext","codeunit",419,"BLOBImportWithFilter",5],[349,"call","ImportLayoutBlob",2],[349,"ext","codeunit",419,"GetExtension",1]]},{"name":"ImportLayoutBlob","line":353,"kind":"procedure","params":2,"steps":[[365,"ext","codeunit",4100,"CreateOutStream",1],[366,"call","GetWordXmlPart",1],[372,"ext","codeunit",4100,"CreateInStream",1],[373,"ext","codeunit",9651,"TryUpdateWordLayout",4],[377,"ext","codeunit",9651,"ValidateWordLayout",4],[383,"ext","codeunit",4100,"CreateInStream",2],[384,"ext","codeunit",9651,"TryUpdateRdlcLayout",6],[388,"event","OnImportLayoutBlob",0],[390,"call","SetLayoutBlob",1],[394,"call","SetDefaultCustomXmlPart",0],[395,"write",9650,"Modify",1],[396,"call","SetLayoutLastUpdated",0]]},{"name":"ExportReportLayout","line":403,"kind":"procedure","params":2,"steps":[[408,"event","OnBeforeExportReportLayout",0],[413,"call","UpdateReportLayout",2],[415,"call","GetLayoutBlob",1],[416,"ext","codeunit",4100,"HasValue",0],[420,"call","GetFileExtension",0],[422,"ext","codeunit",419,"BLOBExport",3]]},{"name":"ValidateLayout","line":426,"kind":"procedure","params":2,"steps":[[434,"call","GetLayoutBlob",1],[435,"ext","codeunit",4100,"HasValue",0],[438,"ext","codeunit",4100,"CreateInStream",1],[442,"ext","codeunit",9651,"ValidateWordLayout",4],[444,"call","TryValidateRdlcReport",1]]},{"name":"UpdateReportLayout","line":459,"kind":"procedure","params":2,"steps":[[465,"event","OnBeforeUpdateLayout",1],[469,"call","TryUpdateLayout",1],[473,"call","ValidateLayout",2]]},{"name":"TryUpdateLayout","line":487,"kind":"procedure","params":1,"steps":[[498,"call","TestCustomXmlPart",0],[500,"call","GetWordXmlPart",1],[501,"call","GetCustomXmlPart",0],[507,"call","GetLayoutBlob",1],[508,"ext","codeunit",4100,"HasValue",0],[510,"ext","codeunit",4100,"CreateInStream",1],[515,"ext","codeunit",4100,"CreateOutStream",1],[516,"ext","codeunit",9651,"TryUpdateWordLayout",4],[520,"ext","codeunit",4100,"CreateOutStream",2],[521,"ext","codeunit",9651,"TryUpdateRdlcLayout",6],[526,"call","SetCustomXmlPart",1],[528,"ext","codeunit",4100,"HasValue",0],[529,"call","SetLayoutBlob",1],[531,"call","SetLayoutLastUpdated",0]]},{"name":"GetWordXML","line":536,"kind":"procedure","access":"local","params":1,"steps":[[541,"ext","codeunit",4100,"CreateOutStream",2]]},{"name":"ExportSchema","line":546,"kind":"procedure","params":2,"steps":[[553,"event","OnBeforeExportSchema",1],[562,"call","GetWordXML",1],[563,"ext","codeunit",4100,"HasValue",0],[564,"ext","codeunit",419,"BLOBExport",3]]},{"name":"GetFileExtension","line":567,"kind":"procedure","params":0,"steps":[[575,"event","OnGetFileExtension",0]]},{"name":"RunCustomReport","line":588,"kind":"procedure","params":0,"steps":[[595,"ext","table",9651,"SetTempLayoutSelected",1],[597,"ext","table",9651,"ClearTempLayoutSelected",0]]},{"name":"ApplyUpgrade","line":601,"kind":"procedure","params":3,"steps":[[610,"call","GetLayoutBlob",1],[611,"ext","codeunit",4100,"HasValue",0],[623,"ext","codeunit",4100,"CreateInStream",1],[624,"ext","codeunit",4100,"CreateOutStream",1],[628,"ext","codeunit",4100,"CreateInStream",2],[629,"ext","codeunit",4100,"CreateOutStream",2],[637,"call","SetDefaultCustomXmlPart",0],[640,"ext","codeunit",4100,"HasValue",0],[641,"call","SetLayoutBlob",1]]},{"name":"LookupLayoutOK","line":676,"kind":"procedure","params":1,"steps":[[678,"call","FilterOnReport",1],[679,"event","OnLookupLayoutOKOnBeforePageRun",0],[681,"run","page",9650]]},{"name":"CanBeModified","line":702,"kind":"procedure","params":0,"steps":[[707,"event","OnBeforeCanBeModified",1],[717,"call","CopyReportLayout",0]]},{"name":"NewExtensionLayout","line":722,"kind":"procedure","params":2,"steps":[[733,"call","HandleW10Layout",3]]},{"name":"HandleW10Layout","line":737,"kind":"procedure","access":"local","params":3,"steps":[[761,"write",9650,"Insert"]]},{"name":"HasLayout","line":764,"kind":"procedure","params":0,"steps":[[767,"call","HasBuiltInLayout",0],[768,"call","HasNonBuiltInLayout",0]]},{"name":"HasCustomXmlPart","line":771,"kind":"procedure","params":0,"steps":[[774,"call","HasBuiltInCustomXmlPart",0],[775,"call","HasNonBuiltInCustomXmlPart",0]]},{"name":"GetLayout","line":778,"kind":"procedure","params":0,"steps":[[781,"call","GetBuiltInLayout",0],[782,"call","GetNonBuiltInLayout",0]]},{"name":"GetCustomXmlPart","line":785,"kind":"procedure","params":0,"steps":[[788,"call","GetBuiltInCustomXmlPart",0],[789,"call","GetNonBuiltInCustomXmlPart",0]]},{"name":"GetLayoutBlob","line":792,"kind":"procedure","params":1,"steps":[[797,"ext","codeunit",4100,"FromRecord",2],[800,"ext","codeunit",4100,"HasValue",0],[802,"ext","codeunit",4100,"FromRecord",2]]},{"name":"ClearLayout","line":806,"kind":"procedure","params":0,"steps":[[810,"call","SetNonBuiltInLayout",0]]},{"name":"ClearCustomXmlPart","line":813,"kind":"procedure","params":0,"steps":[[817,"call","SetNonBuiltInCustomXmlPart",0]]},{"name":"SetLayout","line":863,"kind":"procedure","params":1,"steps":[[867,"call","SetNonBuiltInLayout",1]]},{"name":"SetCustomXmlPart","line":870,"kind":"procedure","params":1,"steps":[[874,"call","SetNonBuiltInCustomXmlPart",1]]},{"name":"SetDefaultCustomXmlPart","line":877,"kind":"procedure","params":0,"steps":[[879,"call","SetCustomXmlPart",1],[879,"call","GetWordXmlPart",1]]},{"name":"SetLayoutBlob","line":882,"kind":"procedure","params":1,"steps":[[889,"ext","codeunit",4100,"HasValue",0],[891,"ext","codeunit",4100,"ToRecordRef",2],[894,"call","CanModify",0],[895,"write",9650,"Modify"]]},{"name":"GetNonBuiltInLayout","line":932,"kind":"procedure","access":"local","params":0,"steps":[[947,"event","OnGetNonBuiltInLayout",0]]},{"name":"SetNonBuiltInLayout","line":1010,"kind":"procedure","access":"local","params":1,"steps":[[1024,"call","CanModify",0],[1025,"write",9650,"Modify"]]},{"name":"SetNonBuiltInCustomXmlPart","line":1028,"kind":"procedure","access":"local","params":1,"steps":[[1038,"call","CanModify",0],[1039,"write",9650,"Modify"]]},{"name":"SetLayoutLastUpdated","line":1042,"kind":"procedure","access":"internal","params":0,"steps":[[1046,"call","CanModify",0],[1047,"write",9650,"Modify"]]}]}