Applies ToDynamics NAV 2009

This article applies to Microsoft Dynamics NAV for all countries and all language locales.

Symptoms

Assume that you apply hotfix 2558659 in the RoleTailored client (RTC) in Microsoft Dynamics NAV 2009. You set the Show As Column value to AREA in the Invt. Analysis by Dimensions page. When you run the Show Matrix function on the Invt. Analysis by Dimensions page, the Invt. Analys by Dim. Matrix page does not display AREA dimension values. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

2558659 Filters are not applied to the Matrix page (9209) after you apply a filter in the "Invt. Analysis by Dimension" page (7159) in the RoleTailored client in Microsoft Dynamics NAV 2009 This problem occurs in the following products:

  • Microsoft Dynamics NAV 2009 R2

  • Microsoft Dynamics NAV 2009 Service Pack 1 (SP1)

Resolution

Hotfix information

A supported hotfix is now available from Microsoft. However, it is only intended to correct the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Microsoft Dynamics NAV 2009 service pack or the next Microsoft Dynamics NAV version that contains this hotfix. Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Technical Support Professional for Microsoft Dynamics and related products determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Installation information

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure. However, they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. Note Before you install this hotfix, verify that all Microsoft Dynamics NAV client users are logged off the system. This includes Microsoft Dynamics NAV Application Server (NAS) services. You should be the only client user who is logged on when you implement this hotfix.To implement this hotfix, you must have a developer license.We recommend that the user account in the Windows Logins window or in the Database Logins window be assigned the "SUPER" role ID. If the user account cannot be assigned the "SUPER" role ID, you must verify that the user account has the following permissions:

  • The Modify permission for the object that you will be changing.

  • The Execute permission for the System Object ID 5210 object and for the System Object ID 9015 object.

Note You do not have to have rights to the data stores unless you have to perform data repair.

Code changes

Note Always test code fixes in a controlled environment before you apply the fixes to your production computers. To resolve this problem, use the following steps:

  1. Change the code in the DimToCaptions function in the Matrix Management Codeunit (9200) as follows:Existing code 1

    PROCEDURE DimToCaptions@9(VAR CaptionSet@1000 : ARRAY [32] OF Text[1024];VAR MatrixRecords@1007 : ARRAY [32] OF Record 367;DimensionCode@1001 : Text[30];FirstColumn@1002 : Text[1024];LastColumn@1003 : Text[1024];VAR NumberOfColumns@1006 : Integer;ShowColumnName@1008 : Boolean;VAR CaptionRange@1009 : Text[1024]);

    Replacement code 1

    PROCEDURE DimToCaptions@9(VAR CaptionSet@1000 : ARRAY [32] OF Text[1024];VAR MatrixRecords@1007 : ARRAY [32] OF Record 367;DimensionCode@1001 : Text[30];FirstColumn@1002 : Text[1024];LastColumn@1003 : Text[1024];VAR NumberOfColumns@1006 : Integer;ShowColumnName@1008 : Boolean;VAR CaptionRange@1009 : Text[1024];CopyTotaling@1170000000 : Boolean);

    Existing code 2

    ...i := i + 1;MatrixRecords[i].Code := DimensionValue.Code;MatrixRecords[i].Name := DimensionValue.Name;IF ShowColumnName THENCaptionSet[i] := DimensionValue.Name...

    Replacement code 2

    ...i := i + 1;MatrixRecords[i].Code := DimensionValue.Code;MatrixRecords[i].Name := DimensionValue.Name;// Add the following lines.IF CopyTotaling THENMatrixRecords[i].Totaling := DimensionValue.Totaling;// End of the added lines.IF ShowColumnName THENCaptionSet[i] := DimensionValue.Name...
  2. Change the code in the MATRIX_GenerateColumnCaptions function in the Budget page (113) and the _Budget form (9202) as follows:Existing code

    ...GLSetup."Global Dimension 1 Code":BEGINMatrixMgt.SetDimColumnSet(GLSetup."Global Dimension 1 Code",GlobalDim1Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Delete the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange);// End of the deleted line.END;GLSetup."Global Dimension 2 Code":BEGINMatrixMgt.SetDimColumnSet(GLSetup."Global Dimension 2 Code",GlobalDim2Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Delete the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange);// End of the deleted line.END;GLBudgetName."Budget Dimension 1 Code":BEGINMatrixMgt.SetDimColumnSet(GLBudgetName."Budget Dimension 1 Code",BudgetDim1Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Delete the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange);// End of the deleted line.END;GLBudgetName."Budget Dimension 2 Code":BEGINMatrixMgt.SetDimColumnSet(GLBudgetName."Budget Dimension 2 Code",BudgetDim2Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Delete the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange);// End of the deleted line.END;GLBudgetName."Budget Dimension 3 Code":BEGINMatrixMgt.SetDimColumnSet(GLBudgetName."Budget Dimension 3 Code",BudgetDim3Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Delete the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange);// End of the deleted line.END;GLBudgetName."Budget Dimension 4 Code":BEGINMatrixMgt.SetDimColumnSet(GLBudgetName."Budget Dimension 4 Code",BudgetDim4Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Delete the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange);// End of the deleted line.END;END;...

    Replacement code

    ...GLSetup."Global Dimension 1 Code":BEGINMatrixMgt.SetDimColumnSet(GLSetup."Global Dimension 1 Code",GlobalDim1Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Add the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange,FALSE);// End of the added line.END;GLSetup."Global Dimension 2 Code":BEGINMatrixMgt.SetDimColumnSet(GLSetup."Global Dimension 2 Code",GlobalDim2Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Add the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange,FALSE);// End of the added line.END;GLBudgetName."Budget Dimension 1 Code":BEGINMatrixMgt.SetDimColumnSet(GLBudgetName."Budget Dimension 1 Code",BudgetDim1Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Add the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange,FALSE);// End of the added line.END;GLBudgetName."Budget Dimension 2 Code":BEGINMatrixMgt.SetDimColumnSet(GLBudgetName."Budget Dimension 2 Code",BudgetDim2Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Add the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange,FALSE);// End of the added line.END;GLBudgetName."Budget Dimension 3 Code":BEGINMatrixMgt.SetDimColumnSet(GLBudgetName."Budget Dimension 3 Code",BudgetDim3Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Add the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange,FALSE);// End of the added line.END;GLBudgetName."Budget Dimension 4 Code":BEGINMatrixMgt.SetDimColumnSet(GLBudgetName."Budget Dimension 4 Code",BudgetDim4Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Add the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange,FALSE);// End of the added line.END;END;...
  3. Change the code in the Invt. Analysis by Dimensions page (7159) and the _Invt. Analysis by Dimensions form (9208) as follows:

    Add Global Variable of Datatype Option: MATRIX_Step@1170000000 : 'First,Previous,Same,Next';
  4. Change the code in the OnOpenPage page in the OnOpenForm form as follows:

    Remove Local Variable: MATRIX_Step@1000 : 'First,Previous,Same,Next';
  5. Change the code in the DateFilter - OnValidate page in the <Control36> - OnValidate form as follows:

    Remove Local Variable: MATRIX_Step@1102601001 : 'First,Previous,Same,Next';
  6. Change the code in the Dim2FilterOnAfterValidate page in the Dim2Filter - OnAfterValidate form as follows:Existing code

    ...CurrForm.UPDATE;...

    Replacement code

    ...// Add the following lines.ItemStatisticsBuffer.SETFILTER("Dimension 2 Filter",Dim2Filter);IF ColumnDimOption = ColumnDimOption::"Dimension 2" THENMATRIX_GenerateColumnCaptions(MATRIX_Step::First);// End of the added lines.CurrForm.UPDATE;...
  7. Change the code in the Dim1FilterOnAfterValidate page in the Dim1Filter - OnAfterValidate form as follows:Existing code

    ...CurrForm.UPDATE;...

    Replacement code

    ...// Add the following lines.ItemStatisticsBuffer.SETFILTER("Dimension 1 Filter",Dim1Filter);IF ColumnDimOption = ColumnDimOption::"Dimension 1" THENMATRIX_GenerateColumnCaptions(MATRIX_Step::First);// End of the added lines.CurrForm.UPDATE;...
  8. Change the code in the Dim3FilterOnAfterValidate page in the Dim3Filter - OnAfterValidate form as follows:Existing code

    ...CurrForm.UPDATE;...

    Replacement code

    ...// Add the following lines.ItemStatisticsBuffer.SETFILTER("Dimension 3 Filter",Dim3Filter);IF ColumnDimOption = ColumnDimOption::"Dimension 3" THENMATRIX_GenerateColumnCaptions(MATRIX_Step::First);// End of the added lines.CurrForm.UPDATE;...
  9. Change the code in the <ItemFilter> - ItemFilterOnAfterValidate page in the <Control38> - OnAfterValidate form as follows:Existing code

    ...ItemStatisticsBuffer.SETFILTER("Item Filter",ItemFilter);CurrForm.UPDATE(FALSE);...

    Replacement code

    ...ItemStatisticsBuffer.SETFILTER("Item Filter",ItemFilter);// Add the following lines.IF ColumnDimOption = ColumnDimOption::Item THENMATRIX_GenerateColumnCaptions(MATRIX_Step::First);// End of the added lines.CurrForm.UPDATE(FALSE);...
  10. Change the code in the <LocationFilter> - LocationFilterOnAfterValidate page in the <Control13> - OnAfterValidate form as follows:Existing code

    ...ItemStatisticsBuffer.SETFILTER("Location Filter",LocationFilter);CurrForm.UPDATE(FALSE);...

    Replacement code

    ...ItemStatisticsBuffer.SETFILTER("Location Filter",LocationFilter);// Add the following lines.IF ColumnDimOption = ColumnDimOption::Location THENMATRIX_GenerateColumnCaptions(MATRIX_Step::First);// End of the added lines.CurrForm.UPDATE(FALSE);...
  11. Change the code in the ShowColumnName - OnValidate page in the <Control4> - OnValidate form as follows:

    Remove Local Variable: MATRIX_Step@1000 : 'First,Previous,Same,Next';
  12. Change the code in the <Action1141> - OnAction page in the <Control1141> - OnPush form as follows:

    Remove Local Variable: MATRIX_Step@1001 : 'First,Previous,Same,Next';
  13. Change the code in the <Action1143> - OnAction page in the <Control1143> - OnPush form as follows:

    Remove Local Variable: MATRIX_Step@1001 : 'First,Previous,Same,Next';
  14. Change the code in the <PeriodType> - PeriodTypeOnAfterValidate page in the <Control1138> - OnAfterValidate form as follows:

    Remove Local Variable: MATRIX_Step@1001 : 'First,Previous,Next';
  15. Change the code in the MATRIX_GenerateColumnCaptions function as follows:Existing code

    ...CLEAR(MATRIX_CaptionSet);CurrentMatrixRecordOrdinal := 1;CLEAR(MATRIX_MatrixRecords);FirstColumn := '';LastColumn := '';IF ShowColumnName THEN ColumnCaptionValue := 2ELSE ColumnCaptionValue := 1;...Location.TABLECAPTION :BEGINCLEAR(MATRIX_CaptionSet);RecRef.GETTABLE(Location);RecRef.SETTABLE(Location);MatrixMgt.GenerateMatrixData(RecRef,MATRIX_SetWanted,ARRAYLEN(MATRIX_CaptionSet),1,MATRIX_PrimKeyFirstCaptionInCu,MATRIX_CaptionSet,MATRIX_CaptionRange,MATRIX_CurrentNoOfColumns);FOR i := 1 TO MATRIX_CurrentNoOfColumns DOMATRIX_MatrixRecords[i].Code := MATRIX_CaptionSet[i];IF ShowColumnName THENMatrixMgt.GenerateMatrixData(RecRef,MATRIX_SetWanted::Same,ARRAYLEN(MATRIX_CaptionSet),2,MATRIX_PrimKeyFirstCaptionInCu,MATRIX_CaptionSet,MATRIX_CaptionRange,MATRIX_CurrentNoOfColumns);END;Item.TABLECAPTION :BEGINCLEAR(MATRIX_CaptionSet);RecRef.GETTABLE(Item);RecRef.SETTABLE(Item);MatrixMgt.GenerateMatrixData(RecRef,MATRIX_SetWanted,ARRAYLEN(MATRIX_CaptionSet),1,...ItemAnalysisView."Dimension 1 Code":BEGINMatrixMgt.SetDimColumnSet(ItemAnalysisView."Dimension 1 Code",Dim1Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Delete the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange);// End of the deleted line.END;ItemAnalysisView."Dimension 2 Code" :BEGINMatrixMgt.SetDimColumnSet(ItemAnalysisView."Dimension 2 Code",Dim2Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Delete the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange);// End of the deleted line.END;ItemAnalysisView."Dimension 3 Code" :BEGINMatrixMgt.SetDimColumnSet(ItemAnalysisView."Dimension 3 Code",// Delete the following line.Dim2Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);// End of the deleted line.MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Delete the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange);// End of the deleted line.END;END;IF MATRIX_CurrentNoOfColumns > 0 THEN BEGINEND;...

    Replacement code

    ...CLEAR(MATRIX_CaptionSet);CurrentMatrixRecordOrdinal := 1;CLEAR(MATRIX_MatrixRecords);FirstColumn := '';LastColumn := '';// Add the following line.MATRIX_CurrentNoOfColumns := ARRAYLEN(MATRIX_CaptionSet);// End of the added line.IF ShowColumnName THEN ColumnCaptionValue := 2ELSE ColumnCaptionValue := 1;...Location.TABLECAPTION :BEGINCLEAR(MATRIX_CaptionSet);// Add the following line.Location.SETFILTER(Code,LocationFilter);// End of the added line.RecRef.GETTABLE(Location);RecRef.SETTABLE(Location);MatrixMgt.GenerateMatrixData(RecRef,MATRIX_SetWanted,ARRAYLEN(MATRIX_CaptionSet),1,MATRIX_PrimKeyFirstCaptionInCu,MATRIX_CaptionSet,MATRIX_CaptionRange,MATRIX_CurrentNoOfColumns);FOR i := 1 TO MATRIX_CurrentNoOfColumns DOMATRIX_MatrixRecords[i].Code := MATRIX_CaptionSet[i];IF ShowColumnName THENMatrixMgt.GenerateMatrixData(RecRef,MATRIX_SetWanted::Same,ARRAYLEN(MATRIX_CaptionSet),2,MATRIX_PrimKeyFirstCaptionInCu,MATRIX_CaptionSet,MATRIX_CaptionRange,MATRIX_CurrentNoOfColumns);END;Item.TABLECAPTION :BEGINCLEAR(MATRIX_CaptionSet);// Add the following line.Item.SETFILTER("No.",ItemFilter);// End of the added line.RecRef.GETTABLE(Item);RecRef.SETTABLE(Item);MatrixMgt.GenerateMatrixData(RecRef,MATRIX_SetWanted,ARRAYLEN(MATRIX_CaptionSet),1,...ItemAnalysisView."Dimension 1 Code":BEGINMatrixMgt.SetDimColumnSet(ItemAnalysisView."Dimension 1 Code",Dim1Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Add the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange,TRUE);// End of the added line.END;ItemAnalysisView."Dimension 2 Code" :BEGINMatrixMgt.SetDimColumnSet(ItemAnalysisView."Dimension 2 Code",Dim2Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Add the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange,TRUE);// End of the added line.END;ItemAnalysisView."Dimension 3 Code" :BEGINMatrixMgt.SetDimColumnSet(ItemAnalysisView."Dimension 3 Code",// Add the following line.Dim3Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);// End of the added line.MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Add the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange,TRUE);// End of the added line.END;END;IF MATRIX_CurrentNoOfColumns > 0 THEN BEGINEND;...
  16. Change the code in the MATRIX_GenerateColumnCaptions function in the Purchase Budget Overview page (7138) and the _Purch. Budget Overview form (9218) as follows:Existing code

    ...GLSetup."Global Dimension 1 Code":BEGINMatrixMgt.SetDimColumnSet(GLSetup."Global Dimension 1 Code",GlobalDim1Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Delete the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange);// End of the deleted line.END;GLSetup."Global Dimension 2 Code":BEGINMatrixMgt.SetDimColumnSet(GLSetup."Global Dimension 2 Code",GlobalDim2Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Delete the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange);// End of the deleted line.END;ItemBudgetName."Budget Dimension 1 Code":BEGINMatrixMgt.SetDimColumnSet(ItemBudgetName."Budget Dimension 1 Code",BudgetDim1Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Delete the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange);// End of the deleted line.END;ItemBudgetName."Budget Dimension 2 Code":BEGINMatrixMgt.SetDimColumnSet(ItemBudgetName."Budget Dimension 2 Code",BudgetDim2Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Delete the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange);// End of the deleted line.END;ItemBudgetName."Budget Dimension 3 Code":BEGINMatrixMgt.SetDimColumnSet(ItemBudgetName."Budget Dimension 3 Code",BudgetDim3Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Delete the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange);// End of the deleted line.END;END;FOR i := 1 TO 12 DOIF MATRIX_CaptionSet[i] = '' THENMATRIX_CaptionSet[i] := ' ';...

    Replacement code

    ...GLSetup."Global Dimension 1 Code":BEGINMatrixMgt.SetDimColumnSet(GLSetup."Global Dimension 1 Code",GlobalDim1Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Add the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange,FALSE);// End of the added line.END;GLSetup."Global Dimension 2 Code":BEGINMatrixMgt.SetDimColumnSet(GLSetup."Global Dimension 2 Code",GlobalDim2Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Add the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange,FALSE);// End of the added line.END;ItemBudgetName."Budget Dimension 1 Code":BEGINMatrixMgt.SetDimColumnSet(ItemBudgetName."Budget Dimension 1 Code",BudgetDim1Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Add the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange,FALSE);// End of the added line.END;ItemBudgetName."Budget Dimension 2 Code":BEGINMatrixMgt.SetDimColumnSet(ItemBudgetName."Budget Dimension 2 Code",BudgetDim2Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Add the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange,FALSE);// End of the added line.END;ItemBudgetName."Budget Dimension 3 Code":BEGINMatrixMgt.SetDimColumnSet(ItemBudgetName."Budget Dimension 3 Code",BudgetDim3Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Add the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange,FALSE);// End of the added line.END;END;FOR i := 1 TO 12 DOIF MATRIX_CaptionSet[i] = '' THENMATRIX_CaptionSet[i] := ' ';...
  17. Change the code in the MATRIX_GenerateColumnCaptions function in the Sales Budget Overview page (7139) and the _Sales Budget Overview form (9238) as follows:Existing code

    ...GLSetup."Global Dimension 1 Code":BEGINMatrixMgt.SetDimColumnSet(GLSetup."Global Dimension 1 Code",GlobalDim1Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Delete the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange);// End of the deleted line.END;GLSetup."Global Dimension 2 Code":BEGINMatrixMgt.SetDimColumnSet(GLSetup."Global Dimension 2 Code",GlobalDim2Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Delete the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange);// End of the deleted line.END;ItemBudgetName."Budget Dimension 1 Code":BEGINMatrixMgt.SetDimColumnSet(ItemBudgetName."Budget Dimension 1 Code",BudgetDim1Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Delete the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange);// End of the deleted line.END;ItemBudgetName."Budget Dimension 2 Code":BEGINMatrixMgt.SetDimColumnSet(ItemBudgetName."Budget Dimension 2 Code",BudgetDim2Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Delete the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange);// End of the deleted line.END;ItemBudgetName."Budget Dimension 3 Code":BEGINMatrixMgt.SetDimColumnSet(ItemBudgetName."Budget Dimension 3 Code",BudgetDim3Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Delete the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange);// End of the deleted line.END;END;FOR i := 1 TO 12 DOIF MATRIX_CaptionSet[i] = '' THENMATRIX_CaptionSet[i] := ' ';...

    Replacement code

    ...GLSetup."Global Dimension 1 Code":BEGINMatrixMgt.SetDimColumnSet(GLSetup."Global Dimension 1 Code",GlobalDim1Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Add the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange,FALSE);// End of the added line.END;GLSetup."Global Dimension 2 Code":BEGINMatrixMgt.SetDimColumnSet(GLSetup."Global Dimension 2 Code",GlobalDim2Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Add the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange,FALSE);// End of the added line.END;ItemBudgetName."Budget Dimension 1 Code":BEGINMatrixMgt.SetDimColumnSet(ItemBudgetName."Budget Dimension 1 Code",BudgetDim1Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Add the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange,FALSE);// End of the added line.END;ItemBudgetName."Budget Dimension 2 Code":BEGINMatrixMgt.SetDimColumnSet(ItemBudgetName."Budget Dimension 2 Code",BudgetDim2Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Add the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange,FALSE);// End of the added line.END;ItemBudgetName."Budget Dimension 3 Code":BEGINMatrixMgt.SetDimColumnSet(ItemBudgetName."Budget Dimension 3 Code",BudgetDim3Filter,MATRIX_SetWanted,MATRIX_PrimKeyFirstCaptionInCu,FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns);MatrixMgt.DimToCaptions(MATRIX_CaptionSet,MATRIX_MatrixRecords,ColumnDimCode,// Add the following line.FirstColumn,LastColumn,MATRIX_CurrentNoOfColumns,ShowColumnName,MATRIX_CaptionRange,FALSE);// End of the added line.END;END;FOR i := 1 TO 12 DOIF MATRIX_CaptionSet[i] = '' THENMATRIX_CaptionSet[i] := ' ';...

Prerequisites

You must have one of the following products installed to apply this hotfix:

  • Microsoft Dynamics NAV 2009 R2

  • Microsoft Dynamics NAV 2009 Service Pack 1

Additionally, you must have hotfix 2558659 installed to apply this hotfix.

Removal information

You cannot remove this hotfix.

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Usefor other considerations.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.