Group("Ship From Address")
{
field("ADDRID"; rec."ADDRID")
{
ApplicationArea = All;
Caption = 'Address ID';
ToolTip = 'Select ADDRID';
}
field("Name"; rec."Name")
{
ApplicationArea = All;
Caption = 'Name';
ToolTip = 'Enter Name';
}
field("Address"; rec."Address")
{
ApplicationArea = All;
Caption = 'Street Address';
ToolTip = 'Enter Street Address';
}
field("City"; rec."City")
{
ApplicationArea = All;
Caption = 'City';
ToolTip = 'Enter City';
}
field("State"; rec."State")
{
ApplicationArea = All;
Caption = 'State';
ToolTip = 'Enter State';
}
field("Zip"; rec."Zip")
{
ApplicationArea = All;
Caption = 'Zip Code';
ToolTip = 'Enter Zip Code';
}
}
}
modify("ADDRID")
{
AssistEdit = true;
trigger OnAssistEdit()
var
AddrRec: Record FromAddresses;
AddrList: Page "FromAddresses List";
begin
if Rec."ADDRID" = '' then begin
Message('ID cannot be blank.');
exit;
end;
SpecRec.SetRange("ADDRID", Rec."ADDRID");
end;
}