Hi All,
I'm getting a problem in this while posting this.
page 71983589 CFS_ProjectsAPI
{
APIGroup = 'integration';
APIPublisher = 'cs';
APIVersion = 'v1.0';
ApplicationArea = All;
Caption = 'cfs';
DelayedInsert = true;
EntityName = 'projects';
EntitySetName = 'projects';
PageType = API;
SourceTable = Job;
layout
{
area(Content)
{
repeater(General)
{
field(no; Rec."No.")
{
Caption = 'No.';
}
field(description; Rec.Description)
{
Caption = 'Description';
}
field(billToCustomerNo; Rec."Bill-to Customer No.")
{
Caption = 'Customer No.';
}
field(customerName; Rec."Sell-to Customer Name")
{
Caption = 'Customer Name';
}
field(startingDate; Rec."Starting Date")
{
Caption = 'Starting Date';
}
field(endingDate; Rec."Ending Date")
{
Caption = 'Ending Date';
}
field(status; Rec.Status)
{
Caption = 'Status';
}
field(lastDateModified; Rec."Last Date Modified")
{
Caption = 'Last Date Modified';
}
field(projectManager; Rec."Project Manager")
{
Caption = 'Project Manager';
}
field(currencyCode; Rec."Currency Code")
{
Caption = 'Currency Code';
TableRelation = Currency.Code;
trigger OnValidate()
var
CurrencyRec: Record Currency;
begin
if not CurrencyRec.Get(Rec."Currency Code") then begin
CurrencyRec.Init();
CurrencyRec.Code := Rec."Currency Code";
CurrencyRec.Description := 'New Currency';
CurrencyRec.Insert();
end;
end;
}
}
}
}
}
Categories: