Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ page 30152 "Shpfy Bulk Operations"
{
ApplicationArea = All;
Caption = 'Get Data';
Enabled = HasDataUrl;
Image = Download;
Promoted = true;
PromotedCategory = Process;
Expand Down Expand Up @@ -135,13 +136,15 @@ page 30152 "Shpfy Bulk Operations"
}

var
HasDataUrl: Boolean;
CurrentStatus: Text;
InProgressLbl: Label 'In Progress';
ErrorLbl: Label 'Error';
CompletedLbl: Label 'Completed';

trigger OnAfterGetRecord()
begin
HasDataUrl := (Rec.Url <> '') or (Rec."Partial Data Url" <> '');
if Rec.Status in [Rec.Status::Created, Rec.Status::Running, Rec.Status::Canceled] then
CurrentStatus := InProgressLbl;
if Rec.Status in [Rec.Status::Canceled, Rec.Status::Failed, Rec.Status::Expired] then
Expand Down
Loading