In my Application, I have a bunch of Record Selectors. They are all optional for the users to fill in.
There was a Button at the end that fired off 6 different Events. The events include Refresh data source
, Update row
, and Create Row
type events.
There are two different Update Row
events - one of them works great with empty values, and the other is causing the problems.
The Update Row
that works updates a fixed Row ID
(1).
The Update Row
that doesnât work attempts to update a Row ID
based on whatâs selected in a Record Selector
.
If something is selected in the associated Record Selector
, it updates the correct Row ID and works great.
If nothing is selected in the associated Record Selector
, the empty value seems to make the Update Row
event fail, because it doesnât know which row to update (since itâs blank).
Previous to 1.33.3 (and Iâm sorry but I donât remember exactly which version I updated from, but I have only been using Baserow for about a month so I think I upgraded from the previous version) I had to use a Value
of 0
in each Record Selector
, so if nothing was selected, it told the Update Row
event to update Row 0
. Row 0 doesnât exist, so it would create an empty row and move on to the next Event. No errors, but the byproduct of empty rows in the table.
The Record Selectors
are set to single value, Required
is not checked.
My workaround for now is to create a new Button
that the user only presses if itâs needed. The other Button
which used to have 6 events now only has 4 events which donât fail.
Ideally, my single Button
would be able to fire off all 6 events to make things a little easier for the users to understand.
Thanks! Happy to provide any more info you need. In fact, if you want to play around with it I have a test page set up here. The username is change@me.com
and password is password
. To see if fail, leave Razor
empty and click the blue button named Click to stage razor info...
.