Good day
Please, help. There is entity "Test" with 2 field = "name" as Varchar and "testFile" as File. How I can access to realy file name (/data/upload). I use Dropdown action in detail view button with handler:
===
actionTest: function (data, e) {
Espo.Ajax
.getRequest('Test/' + this.view.model.id)
.then(response => {
console.log(response);
});
nametest = this.view.model.get('name'); // Ok
namefile= this.view.model.get('test_file_id'); //WRONG (undefined)
...
},
===
I need real file name
Please, help. There is entity "Test" with 2 field = "name" as Varchar and "testFile" as File. How I can access to realy file name (/data/upload). I use Dropdown action in detail view button with handler:
===
actionTest: function (data, e) {
Espo.Ajax
.getRequest('Test/' + this.view.model.id)
.then(response => {
console.log(response);
});
nametest = this.view.model.get('name'); // Ok
namefile= this.view.model.get('test_file_id'); //WRONG (undefined)
...
},
===
I need real file name
Comment