Skip to content

[Vendor] [Quality Mngmnt] - Code in OnLookup, OnDrillDown, OnAssistEdit triggers seems not to be consistent #5818

@PredragMaricic

Description

@PredragMaricic

Describe the issue

Code in OnLookup, OnDrillDown, OnAssistEdit triggers seems not to be consistent. Is it working what is should?

Image Image

Image

The comment is points to this code. Use either link

or

internal procedure HandleOnLookupSourceTable()
var
    QltyFilterHelpers: Codeunit "Qlty. Filter Helpers";
    QltyGenerationRuleMgmt: Codeunit "Qlty. Generation Rule Mgmt.";
    Filter: Text;
begin
    if Rec."Template Code" = '' then
        Error(ChooseTemplateFirstErr);
    if IsNullGuid(Rec.SystemId) and not Rec.IsTemporary() then
        if Rec.Insert() then;
    Filter := QltyGenerationRuleMgmt.GetFilterForAvailableConfigurations();
    QltyFilterHelpers.RunModalLookupTable(Rec."Source Table No.", Filter);
    Rec.CalcFields("Table Caption");
    Rec.Validate("Source Table No.");
end;

Expected behavior

Steps to reproduce

Additional context

I will provide a fix for a bug

  • I will provide a fix for a bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    ApprovedThe issue is approvedSCMGitHub request for SCM area

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions