Change the code in the Controls in the Cost Budget per Period Matrix form (36883) as follows:
Existing code 1IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field1.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
OnDrillDown=BEGIN
MATRIX_OnDrillDown(1);
END;
}
{ 1051;Label ;0 ;0 ;0 ;0 ;ParentControl=1015;
Replacement code 1IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field1.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
// Add the following lines.
OnValidate=BEGIN
UpdateAmount(1);
END;
// End of the added lines.
OnDrillDown=BEGIN
MATRIX_OnDrillDown(1);
END;
}
{ 1051;Label ;0 ;0 ;0 ;0 ;ParentControl=1015;
Existing code 2IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field2.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
OnDrillDown=BEGIN
MATRIX_OnDrillDown(2);
END;
}
{ 1052;Label ;0 ;0 ;0 ;0 ;ParentControl=1016;
Replacement code 2IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field2.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
// Add the following lines.
OnValidate=BEGIN
UpdateAmount(2);
END;
// End of the added lines.
OnDrillDown=BEGIN
MATRIX_OnDrillDown(2);
END;
}
{ 1052;Label ;0 ;0 ;0 ;0 ;ParentControl=1016;
Existing code 3IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field3.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
OnDrillDown=BEGIN
MATRIX_OnDrillDown(3);
END;
}
{ 1053;Label ;0 ;0 ;0 ;0 ;ParentControl=1017;
Replacement code 3IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field3.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
// Add the following lines.
OnValidate=BEGIN
UpdateAmount(3);
END;
// End of the added lines.
OnDrillDown=BEGIN
MATRIX_OnDrillDown(3);
END;
}
{ 1053;Label ;0 ;0 ;0 ;0 ;ParentControl=1017;
Existing code 4IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field4.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
OnDrillDown=BEGIN
MATRIX_OnDrillDown(4);
END;
}
{ 1054;Label ;0 ;0 ;0 ;0 ;ParentControl=1018;
Replacement code 4IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field4.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
// Add the following lines.
OnValidate=BEGIN
UpdateAmount(4);
END;
// End of the added lines.
OnDrillDown=BEGIN
MATRIX_OnDrillDown(4);
END;
}
{ 1054;Label ;0 ;0 ;0 ;0 ;ParentControl=1018;
Existing code 5IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field5.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
OnDrillDown=BEGIN
MATRIX_OnDrillDown(5);
END;
}
{ 1055;Label ;0 ;0 ;0 ;0 ;ParentControl=1019;
Replacement code 5IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field5.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
// Add the following lines.
OnValidate=BEGIN
UpdateAmount(5);
END;
// End of the added lines.
OnDrillDown=BEGIN
MATRIX_OnDrillDown(5);
END;
}
{ 1055;Label ;0 ;0 ;0 ;0 ;ParentControl=1019;
Existing code 6IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field6.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
OnDrillDown=BEGIN
MATRIX_OnDrillDown(6);
END;
}
{ 1056;Label ;0 ;0 ;0 ;0 ;ParentControl=1020;
Replacement code 6IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field6.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
// Add the following lines.
OnValidate=BEGIN
UpdateAmount(6);
END;
// End of the added lines.
OnDrillDown=BEGIN
MATRIX_OnDrillDown(6);
END;
}
{ 1056;Label ;0 ;0 ;0 ;0 ;ParentControl=1020;
Existing code 7IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field7.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
OnDrillDown=BEGIN
MATRIX_OnDrillDown(7);
END;
}
{ 1057;Label ;0 ;0 ;0 ;0 ;ParentControl=1021;
Replacement code 7IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field7.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
// Add the following lines.
OnValidate=BEGIN
UpdateAmount(7);
END;
// End of the added lines.
OnDrillDown=BEGIN
MATRIX_OnDrillDown(7);
END;
}
{ 1057;Label ;0 ;0 ;0 ;0 ;ParentControl=1021;
Existing code 8IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field8.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
OnDrillDown=BEGIN
MATRIX_OnDrillDown(8);
END;
}
{ 1058;Label ;0 ;0 ;0 ;0 ;ParentControl=1022;
Replacement code 8IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field8.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
// Add the following lines.
OnValidate=BEGIN
UpdateAmount(8);
END;
// End of the added lines.
OnDrillDown=BEGIN
MATRIX_OnDrillDown(8);
END;
}
{ 1058;Label ;0 ;0 ;0 ;0 ;ParentControl=1022;
Existing code 9IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field9.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
OnDrillDown=BEGIN
MATRIX_OnDrillDown(9);
END;
}
{ 1059;Label ;0 ;0 ;0 ;0 ;ParentControl=1023;
Replacement code 9IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field9.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
// Add the following lines.
OnValidate=BEGIN
UpdateAmount(9);
END;
// End of the added lines.
OnDrillDown=BEGIN
MATRIX_OnDrillDown(9);
END;
}
{ 1059;Label ;0 ;0 ;0 ;0 ;ParentControl=1023;
Existing code 10IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field10.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
OnDrillDown=BEGIN
MATRIX_OnDrillDown(10);
END;
}
{ 1060;Label ;0 ;0 ;0 ;0 ;ParentControl=1024;
Replacement code 10IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field10.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
// Add the following lines.
OnValidate=BEGIN
UpdateAmount(10);
END;
// End of the added lines.
OnDrillDown=BEGIN
MATRIX_OnDrillDown(10);
END;
}
{ 1060;Label ;0 ;0 ;0 ;0 ;ParentControl=1024;
Existing code 11IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field11.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
OnDrillDown=BEGIN
MATRIX_OnDrillDown(11);
END;
}
{ 1061;Label ;0 ;0 ;0 ;0 ;ParentControl=1025;
Replacement code 11IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field11.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
// Add the following lines.
OnValidate=BEGIN
UpdateAmount(11);
END;
// End of the added lines.
OnDrillDown=BEGIN
MATRIX_OnDrillDown(11);
END;
}
{ 1061;Label ;0 ;0 ;0 ;0 ;ParentControl=1025;
Existing code 12IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field12.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
OnDrillDown=BEGIN
MATRIX_OnDrillDown(12);
END;
}
{ 1062;Label ;0 ;0 ;0 ;0 ;ParentControl=1026;
Replacement code 12IF "Line Type" <> "Line Type"::"Cost Type" THEN
CurrForm.Field12.UPDATEFONTBOLD := TRUE;
// CA0002.end
END;
// Add the following lines.
OnValidate=BEGIN
UpdateAmount(12);
END;
// End of the added lines.
OnDrillDown=BEGIN
MATRIX_OnDrillDown(12);
END;
}
{ 1062;Label ;0 ;0 ;0 ;0 ;ParentControl=1026;