Skip to content

Commit

Permalink
Remove fields from global variable upon deletion of row.
Browse files Browse the repository at this point in the history
  • Loading branch information
JesperSchulz committed Nov 29, 2024
1 parent db413c7 commit c1d35f5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ page 9987 "Word Templates Related Part"
WordTemplateFieldSelection.ShowFieldSelection(Rec."Related Table ID", TempWordTemplateField);
NumberOfSelectedFields := WordTemplateFieldSelection.CalculateNoSelectedFields(Rec."Related Table ID", TempWordTemplateField);
SelectedFieldsCount.Set(Rec."Related Table ID", NumberOfSelectedFields);
CalculateSelectedFields();
end;
}
field("Entity Relation"; RecordTypeTxt)
Expand Down Expand Up @@ -200,6 +199,8 @@ page 9987 "Word Templates Related Part"
TempWordTemplateField.Reset();
TempWordTemplateField.SetRange("Table ID", Rec."Related Table ID");
TempWordTemplateField.DeleteAll();

SelectedFieldsCount.Remove(Rec."Related Table ID");
end;

internal procedure AddRelatedTable(TableId: Integer)
Expand Down

0 comments on commit c1d35f5

Please sign in to comment.