Dear Stefano Demiliani ,
i have two table cutbackbatch table and cutback process table please find below screenshot
cutbackbatch table

cutback process table

her i am using the code please see below but cant retrieve data from cutback batch table ,can you provide again vs code then i will understand what is the flow
right now i am confusing
page 50106 CutBackProcessWorksheetPage
{
PageType = Worksheet;
ApplicationArea = All;
UsageCategory = Administration;
SourceTable = CutBackProcessTable;
Caption = 'Cutback Process';
layout
{
area(Content)
{
field("Batch Name"; "Batch Name")
{
ApplicationArea = All;
}
field("PostingDate"; "Posting Date")
{
ApplicationArea = All;
}
repeater(CutbackProcess)
{
field("Posting Date"; "Posting Date")
{
ApplicationArea = All;
}
field("Account Category"; "Account Category")
{
ApplicationArea = All;
}
field("Bill Code"; "Bill Code")
{
ApplicationArea = All;
}
field("Partner"; "Partner")
{
ApplicationArea = All;
}
field("License"; "License")
{
ApplicationArea = All;
}
field("Percentage"; "Percentage")
{
ApplicationArea = All;
}
field("Account"; "Account")
{
ApplicationArea = All;
}
field("Account Description"; "Account Description")
{
ApplicationArea = All;
}
field("AFE"; "AFE")
{
ApplicationArea = All;
}
field("Amount"; "Amount")
{
ApplicationArea = All;
}
field("Posted"; "Posted")
{
ApplicationArea = All;
}
}
}
}
actions
{
area(Processing)
{
group(Setup)
{
action("Calculate")
{
Caption = 'Calculate';
Promoted = true;
PromotedCategory = Process;
PromotedOnly = true;
PromotedIsBig = true;
// RunObject = page "CutBackBatchPage";
ApplicationArea = All;
trigger OnAction()
begin
// Message('Please select the batch name ');
end;
}
action("Post")
{
Caption = 'Post';
Promoted = true;
PromotedCategory = Process;
PromotedOnly = true;
PromotedIsBig = true;
ApplicationArea = All;
trigger OnAction()
begin
end;
}
action("Print")
{
Caption = 'Print';
Promoted = true;
PromotedCategory = Process;
PromotedOnly = true;
PromotedIsBig = true;
ApplicationArea = All;
trigger OnAction()
begin
end;
}
action("Post and Print")
{
Caption = 'Post and Print';
Promoted = true;
PromotedCategory = Process;
PromotedOnly = true;
PromotedIsBig = true;
ApplicationArea = All;
trigger OnAction()
begin
end;
}
action("fetch")------------------------------------------------here am using action for retrieve data from cutbackbatch table
{
caption = 'Fetch';
Promoted = true;
PromotedCategory = Process;
PromotedOnly = true;
PromotedIsBig = true;
ApplicationArea = All;
trigger OnAction()
var
cutbackbatch: Record "CutBackBatchTable";
begin
cutbackbatch.Reset();
cutbackbatch.SETRANGE("Bill Code", "Bill Code");
if cutbackBatch.FINDSET then
repeat
cutbackbatch.INIT;
cutbackbatch.VALIDATE("License", "License");
cutbackbatch.INSERT;
until cutbackBatch.NEXT = 0;
end;
}
}
}
}
}