Dear Experts,
am Entirely new to BC and AL coding, Couple of days only i started on BC and Development Learning
Right now am trying to bring two fields (Document No, & Description) from table (G/L Entry table - 26) to another page "Analysis View Entries" (Analysis View Entry (365)). once we click on amount in Analysis View Entries, it goes to corresponding GL entries .
i don't know whether i made code correct or not to achieve this result.
I kindly request experts help to fix the issue
pageextension 60004 PageExtension50002 extends "Analysis View Entries"
{
layout
{
addafter("Dimension 1 Value Code")
{
field("Document No"; DocumentNo)
{
ApplicationArea = All;
Caption = 'Document No';
}
field ("Description"; Description)
{
ApplicationArea = All;
}
}
}
trigger OnAfterGetRecord();
var
GenLedEntry: Record "G/L Entry";
begin
Clear(DocumentNo);
GenLedEntry.Reset();
GenLedEntry.Get(Rec."Dimension 1 Value Code");
DocumentNo := GenLedEntry."Document No.";
Description := GenLedEntry.Description;
end;
var
DocumentNo: Code[20];
Description : Text[100];
}
Regards