Question about form automatic submission export

Hi,

I started to ask questions about Added possibility to link spreadsheet for automatic submission export in multiple formats #1758.

I get an answer. Thx a lot @Chartman123 :folded_hands:
but the PR was locked and so I can not ask more question about that.
I hope trying to continue discussion here is OK.

To make discussion clearer for others here :backhand_index_pointing_down: my questions :

I understand that file should be automatically added when new form entry are submitted.
I tested recently with nextcloud (29.0.7) and Forms (4.3.13)
And this is not done automatically, I need to click manually on “Re-Export” button.
Is it normal ? or should it work ? maybe it is available on most recent version ? :folded_hands:

Another question.
Style and formula seems to be lost after a re-export when using ods.
With xlsx there are not lost. same questions. :folded_hands:

And @Chartman123 answer :

the export is done by a background job, so it will take some time until the linked spreadsheet will be updated automatically.

Style and formula should also get lost with other formulas as we don’t only add new responses but do a full re-export of all responses. So all changes to the linked files will be lost after the next export.

@Chartman123

the export is done by a background job, so it will take some time until the linked spreadsheet will be updated automatically.

  1. How many time approximately should it be expected before the update ?
  2. Is there any plan to do the update each time a new entry is added ?

Style and formula should also get lost with other formulas as we don’t only add new responses but do a full re-export of all responses. So all changes to the linked files will be lost after the next export.

Maybe I was not clear but I linked/exported a file to a form.
Then I created a new sheet in that sync file with styles and formulas which reuse data in first sheet. (First sheet is where form data are exported)

It seems to works with .xlsx but not with .ods, I understand this is not expected to work for you ? right ? that’s strange :person_shrugging:

About having a nextcloud file with formula and styles which reuses data exported automatically :

a. is there a recommended way ?
b. if not, is there nextcloud improvement planed to support that use cases ?

I’m not sure, but I think once every hour. Also depends on your cron job config in your Nextcloud.

We had that before. But because of some bugs we switched to the current export by a scheduled background job.

Ok, I thought you made your changes to the first sheet where the export puts the data. I’m not sure how the different sheets are handled by the office library that we’re using here. So there might be differences, but we didn’t specify any different export options.

I don’t use the export feature a lot, so no real recommendation from my side. You could copy/paste the exported data to another file.

And no, currently no direct plans to improve the file export handling.

And yes, best place for such discussions is indeed this forum. Github is more for development centric discussions and not for user support :slight_smile:

I’m not deep into form submission at all but in general I think the current approach the most stable solution in the tradeoff between stability and data freshness and I would expect some issues in case the file is updated frequently (which are mentioned in the Github issue as well):

  • most (desktop) applications don’t reload on the fly if files on disk are rewritten/updated
    • if you edit the file using some application conflicts could easily arise (especially if you edit the file synced to a desktop)
  • what do you expect if you run some calculations and file is updated in between?

If there is a demand I think best would be not not to update a file but rather send only the new record using e.g. webhook to a function/application which can consume the data and act on updates (refresh dashboards etc)

Thx both of you for your answer. :folded_hands:

Ok, I thought you made your changes to the first sheet where the export puts the data. I’m not sure how the different sheets are handled by the office library that we’re using here. So there might be differences, but we didn’t specify any different export options.

So this is not really a safe way to do what I want to do.
(I mean if expected behavior is not defined by Form dev)

I was thinking having an online spreadsheet which can reuse/extends data automatically exported from Form was the main idea behind implementing an automatic export in spreadsheet.

I was thinking an alternative could be to create another spreadsheet and reference the automatic exported one.. but this sounds not to be implemented in Collabora/libreOffice online.

You could copy/paste the exported data to another file.

Clearly, I will not be able to “sell” that solution.

And no, currently no direct plans to improve the file export handling.

To bad … If I didn’t find solution then probably I will not be able to avoid usage of GoogleForm :disappointed_face: