Here I have a system page where I need to add reset button, to reset my page.
Can I add reset button in my page in Al code?
If it's possible please suggest how? Is there any method can I reset the page
This is code:
actions
{
area(Processing)
{
action("Open Enquiries Filter Page")
{
Caption = 'Open Enquiries Filter Page';
ApplicationArea = All;
Promoted = true;
PromotedCategory = Process;
PromotedIsBig = true;
trigger OnAction()
var
varFilterPageBuilder: FilterPageBuilder;
Enquiries: Record Enquiries;
FilterExpr: text;
recEnquiries: Record Enquiries;
Past3Months: Date;
varDefaultView: Text;
varDateItem: Text[30];
cdu_FilterTokens: Codeunit "Filter Tokens";
begin
Enquiries.Reset();
varFilterPageBuilder.AddTable('Enquiries', Database::Enquiries);
varFilterPageBuilder.AddField('Enquiries', Rec.No);
varFilterPageBuilder.AddField('Enquiries', Rec.Status);
varFilterPageBuilder.AddField('Enquiries', Rec.Email);
varFilterPageBuilder.AddField('Enquiries', Rec.Contact);
varFilterPageBuilder.AddField('Enquiries', recEnquiries.DateCreated);
varFilterPageBuilder.AddField('Enquiries', recEnquiries.DateCreated);
varFilterPageBuilder.PageCaption := 'Enquiries Filter Page';
if varFilterPageBuilder.RunModal() then begin
Enquiries.SetFilter(DateCreated, DateCreate);
Enquiries.SetFilter(DateCreatedTo, DateCreateTo);
if Enquiries.FindSet() then begin
Enquiries.SetView(varFilterPageBuilder.GetView('Enquiries'));
CurrPage.SetTableView(Enquiries);
end;
end;
end;
}
}
}
var
DateCreate: Text;
DateCreateTo: Text;
}
Ok Thankyou, got it closing my thread now.
Your FilterPageBuilder is opened from the action itself, and its a filter page you cannot add an action to it as Tech Lucky mentioned.
as this is just a filter page you can not add actions to this
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,232 Super User 2024 Season 2
Martin Dráb 230,064 Most Valuable Professional
nmaenpaa 101,156