HI,
I need to develop an action in the posted ledger entries page and delete the transactions which are posted.This would be a one time job and this is so that we can take the system to the starting point with respect to this.I tries adding an action delete in a new page extension which is false for this page in the base code.
Now when I try deleting the code at the follwing line there is an Error Pop out in the UI :
pageextension 50291 generalLedgerExt extends "General Ledger Entries"
{
actions
{
addafter(ReverseTransaction)
{
action(Delete)
{
ApplicationArea = All;
trigger OnAction()
var
BlankDate: Date;
begin
if rec."Posting Date" <> BlankDate then begin
rec.SetCurrentKey("Posting Date");
rec.SetRange("Posting Date");
if rec.FindSet() then begin
repeat
rec.Delete();///Exception is do not have the license to delete the journals
until Next() = 0;
end;
end;
end;
}
}
}
}

I tried adding permissions to the G/L entry but it shows conflict and not able to delete.
Please advice.
Regards,
Indira