nextcloud / tables

🍱 Nextcloud tables app
https://apps.nextcloud.com/apps/tables
GNU Affero General Public License v3.0
148 stars 23 forks source link

Enable real-time data entry: use previous row's values as defaults for next row #1273

Open fossham opened 3 months ago

fossham commented 3 months ago

Is your feature request related to a problem? Please describe.

To log events as they happen in real-time, we often want fields pre-filled not with a static value, but with a value that is likely to be the same as the previous row. A single "default" value as set in the column settings is too slow to go in and change when an event changes in real-time, so replicating the value from the previous row (but allowing easy, fast changes in the "Create row" window would be a big improvement!

Describe the solution you'd like

In the "Edit column" window, adjacent to the "Default" text-entry box, provide a switch that says "Use previous row value as default" which, when selected, pre-populates the column value with the value from the previous row in the "Create row" data-entry window. This should still allow the user to change the value in the box, but speeds data entry while logging real-time events.

If the field value changes, then subsequent rows should use the newly-changed value rather than the "default" value from the column settings.

Describe alternatives you've considered

No response

Additional context

No response

blizzz commented 1 month ago

So it is not about programmatic insertion of data rows, but a manual approach? Something like a "Create new row with last values" button? Or a possibility to create a new row with values taken from a selected row?