有没有办法允许用户通过在线表单上传文件并将其附加到记录?我有一个自定义记录类型,潜在资源,我已经为它创建了一个在线表单。这个想法是,任何人都可以使用在线表单来创建潜在的资源记录,并为该记录上传简历。
发布于 2014-04-21 23:20:49
我想有一个文档类型字段:
Document
This lets you select a file cabinet document to preview or download. The field is searchable and can be added to search results.
Note: The user of the document custom field must have file cabinet access in order to view, select or upload documents.你可能需要扮演一些角色。
发布于 2014-04-23 00:16:40
你说的网上表格是不是指的是套装?
我相信你可以通过一个suitelet来做这件事,就像这样
function imageUpload(request, response) {
if (request.getMethod() === 'GET') {
var form = nlapiCreateForm(formTitle);
var file = form.addField('file1', 'file', 'Logo');
file.setMandatory(true);
form.addSubmitButton('SUBMIT');
response.writePage(form);
}
else {
var file = request.getFile('file1');
// 133 is the id of the folder you want to save the file
file.setFolder(133);
file.setIsOnline(true);
var id = nlapiSubmitFile(file);
}
}https://stackoverflow.com/questions/23186350
复制相似问题