Josh,
Thanks alot!!
I was able to do that for Documents under Attachment but I want to do that under Links section .I dont know why it does not let me put Links as a page for page extension
When I inspected it shows Links(SystemPart) as a page but it doesn't let me extend this page through AL.
Here is my code:
pageextension 50117 "Attachments" extends "Document Attachment Factbox
{
layout
{
// Add changes to page layout here
modify(Documents)
{ //BlankZero = true;
ShowMandatory = true;
}
}
var
NoDocumentAttachmentsErr: Label 'Please attach Document';
trigger OnClosePage()
var
DocAtt: Record "Document Attachment";
begin
DocAtt.Reset();
DocAtt.SetRange("Table ID", 2000000068);
DocAtt.SetRange("Document Type", DocAtt."Document Type"::Quote);
//DocAtt.SetRange("No.",rec."No.");
if not DocAtt.FindFirst() then
Error(NoDocumentAttachmentsErr);
end;
}