Hi All,
I have added a custom factbox to a custom page called Project List and i want to add the Documents Attached option under the Attachements section of this factbox,
So i created new page for Document Attachements with Documents Attachment as source table :
page XXXX3 WfsProjectDocAttachFactbox
{
Caption = 'Documents Attached';
PageType = CardPart;
SourceTable = "Document Attachment";
layout
{
area(content)
{
group(Control2)
{
ShowCaption = false;
field(Documents; Count)
{
ApplicationArea = All;
Caption = 'Documents';
StyleExpr = TRUE;
ToolTip = 'Specifies the number of attachments.';
trigger OnDrillDown()
var
projectTable: Record XXXProjectTable;
DocumentAttachmentDetails: Page "Document Attachment Details";
RecRef: RecordRef;
begin
RecRef.Open(DATABASE::XXXProjectTable);
if projectTable.Get("No.") then
RecRef.GetTable(projectTable);
DocumentAttachmentDetails.OpenForRecRef(RecRef);
DocumentAttachmentDetails.RunModal;
end;
}
}
}
}
}
And then attached this page as a part in the fatbox section of my custom list Page :
area(Factboxes)
{
systempart(Links; Links)
{
ApplicationArea = All;
//Visible = false;
}
systempart(Notes; Notes)
{
ApplicationArea = All;
}
part(XXXProjectDocAttachFactbox; XXXProjectDocAttachFactbox)
{
ApplicationArea = All;
}
}
But the issue is taking attachment(s) common for a all the records in the list,i want the attachment to work specific for each Project Ids in the list.
Also i want the attachement document section in the Attachment tab not on the Details Tab.
Please HELP!
Thanks in Advance!