microsoft / microsoft/ALAppExtensions
[Event Request] Codeunit 181 "Copy Gen. Journal Mgt."
Open
Nobody has claimed this yet.
missing-info
- Dominant language
- AL
- Stars
- 988
- Forks
- 692
- Avg merge
- 49m
- Merged PRs (30d)
- 1
Description
Why do you need this change?
Please add a new event in the ShowFinishMessage to have a possibility to ignore the FinishMessage and run custom functionality.
Describe the request
local procedure ShowFinishMessage(LineCount: Integer; CopyGenJournalParameters: Record "Copy Gen. Journal Parameters")
var
GenJournalBatch: Record "Gen. Journal Batch";
ConfirmManagement: Codeunit "Confirm Management";
GenJnlManagement: Codeunit GenJnlManagement;
IsHandled: Boolean;
begin
// >>>
IsHandled := false;
OnBeforeShowFinishMessage(LineCount, CopyGenJournalParameters);
if IsHandled then
exit();
// <<<
if ConfirmManagement.GetResponse(StrSubstNo(CopiedLinesTxt, LineCount), false) then begin
GenJournalBatch.Get(CopyGenJournalParameters."Journal Template Name", CopyGenJournalParameters."Journal Batch Name");
GenJnlManagement.TemplateSelectionFromBatch(GenJournalBatch);
end;
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeShowFinishMessage(LineCount: Integer; CopyGenJournalParameters: Record "Copy Gen. Journal Parameters"; var IsHandled: Boolean)
begin
end;
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in Codeunit 181, "Copy Gen. Journal Mgt.", at the ShowFinishMessage procedure and review the requested OnBeforeShowFinishMessage event shape. Done means the event permits subscribers to skip the finish message and run custom functionality; note that this repository says application contributions have moved to BCApps.
Written by the indexing model from the issue text.
Assessment
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100