Project

General

Profile

Feature #1894

Fungsi Download attachment file di form "master data | file data"

Added by Moch Alinafia almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
High
Assignee:
Start date:
12/26/2022
Due date:
% Done:

0%

Estimated time:

Description

Dear Dev

tolong di buat fungsi untuk download file yg sudah di upload pada tab file data yg ada di menu employee master data

bia dev
url : http://hris-bia-dev.minovais.com/
user : nando
pass : 123Aa
user yg dapat di pakai employee id : 11100030
db server : 45.251.75.66
database name : MinovaES_BIA_Dev

Terima Kasih

#1

Updated by Saswanto Tampan almost 2 years ago

  • Status changed from New to QA Test
  • Assignee changed from Saswanto Tampan to Moch Alinafia

penambahan menu pada file
...\scripts\mdgenerator.js

fungsi = mdgenerator.createFormCard
penambahan pada buttons Panel = {
text: 'Download Attachment',
hidden: false,
margin: '0 3 15 0', //(top, right, bottom, left).
name: 'btnDownloadAtt',
iconCls: 'fa-download ',
style: 'font-family: FontAwesome',
myfilename:record.data.FileData,
handler: function () {
var filedownload =Ext.ComponentQuery.query('[name=btnDownloadAtt]')[0].myfilename;
if(filedownload !=undefined){
var url = '/Devt/GetFileData?FileName=' + filedownload + '&download=true';
window.open(url, '_blank');
}else{
MinovaMessage(' Not Null ', ' 000005 ', 'File Tidak Tersedia', 'E');
}
}
},

#2

Updated by Moch Alinafia almost 2 years ago

  • Status changed from QA Test to Closed

Also available in: Atom PDF