RE: how to display dialog box with open save and cancel options
Thanks for the reply,
Table:Export attachment function
ExportAttachment(RecIDToExport : RecordID;RecLineNo : Integer;RecNameofFile : Text)
SETRANGE("Record Id",RecIDToExport);
SETRANGE("Line no",RecLineNo);
SETRANGE("Name of a file",RecNameofFile);
IF NOT FINDFIRST THEN
ERROR(Text0004);
REPEAT
CALCFIELDS(Attachment);
IF NOT Attachment.HASVALUE THEN
ERROR(Text0004);
TempBlob.Blob := Attachment;
FileManagement.BLOBExport(TempBlob,"Name of a file",TRUE);// altered
UNTIL NEXT=0;
Page:
Export Attachment - OnAction()
AttachmentRecRef.OPEN(DATABASE::"Attachment Customization");
AttachmentRecRef.SETPOSITION(GETPOSITION);
AttachmentRecId := AttachmentRecRef.RECORDID;
AttachmentRecRef.CLOSE;
AttachmentCustomized.ExportAttachment(AttachmentRecId,"Line no","Name of a file");
Thanks in advance