Hi.
I want to make a pageextension to Document Attachment Factbox to display the attachments uploaded to the record, without having to press the number beside /Documents/ to see the table.
Above I have added a repeater that puts out the attachments connected to the record, which is exactly what I want, but I want to be able to click on the name of the attachment and download it, just like I can when pressing the /1/ beside the /Documents/ and pressing the name, such as in the screenshot below.
Below is my pageextension code. I have no idea how I can make the field a clickable one.
If I can scrap the code I have now and somehow just insert the table from the screenshot above, I am open for that as well.
pageextension 50105 SalesOrderPageExt extends /Document Attachment Factbox/
{
layout
{
addlast(Control2)
{
repeater(Attatchments)
{
field(/File Name/; Rec./File Name/)
{
ApplicationArea = All;
Caption = 'File';
}
}
}
}
}