Problem with delete files in Spreed sheet !

Confluence User - 05 Jun, 2024

i can only add files in my spreadsheet plugin when i click in remove the files remove but when i save the form he came back can some one explain for me why ?

for (FormRow v : results) {
if (!dist_uv.contains(v.getId())) {
to_delete.add(v.getId());
}
}
formDataDao.delete(getPropertyString("formDefId"), formDef.getTableName(), to_delete.toArray(new String[to_delete.size()]));

FileUtil.checkAndUpdateFileName(rowSet, formDef.getTableName(), null);
LogUtil.info("checkand update",""+rowSet);
formDataDao.saveOrUpdate(getPropertyString("formDefId"), formDef.getTableName(), rowSet);
FileUtil.storeFileFromFormRowSet(rowSet, formDef.getTableName(), null);

rowSetGlobal = rowSet;

forms;plugins;fileupload;spreadsheet;subform

1


06 Jun, 2024
confluenceUser
confluenceUser

trying to understand the method you are using, is it ure using custom html in subform repeater to have a spreadsheet feature you wanted.? if yes,

There is an easier way No-Code way for you to integrate File upload with Spreadsheet. 
Refer this KB Here : Spreadsheet#MainProperties:~:text=File%20%2D%20Accept%20file%20upload%20and%20render%20a%20file%20download%20link

download the sample app in the kb  .: 

in the sample app ;

navigate to 

Form Spreadsheet File, Image Attachment & Nested Datalist.

You can see the feature you wanted in for file upload in spreadsheet.

File & Attachment can be deleted and saved without any problem


hope this helps.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print