Business Cental-How to show only Person Contact

HensonHenson Member Posts: 5
edited 2020-10-06 in NAV Three Tier
4yl1k82qftzo.png
hello guys, this code shows both Company and Person Contact. is there any idea(setrange or filter) to display only Person Contact?
Thanks
trigger OnLookup()

var

ContactBusRel: Record "Contact Business Relation";

Contact: Record Contact;

begin

ContactBusRel.Reset;

Contact.Reset;

ContactBusRel.SetRange("Link to Table", ContactBusRel."Link to Table"::Customer);

ContactBusRel.SetRange("No.", "Customer No.");

if ContactBusRel.FindSet() then begin

Contact.SetRange("Company No.", ContactBusRel."Contact No.");

if Page.RunModal(PAGE::"Contact List", Contact) = ACTION::LookupOK then begin

Rec."Customer Contact" := Contact.Name;
Rec."Phone No." := Contact."Phone No.";
Rec.Email := Contact."E-Mail";
Rec.Adress := Contact.Address;

end;
end;


end;
}

Best Answer

Answers

  • HensonHenson Member Posts: 5
    thanks Alexey
  • krikikriki Member, Moderator Posts: 9,115
    [Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]

    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.