Created a table with 1:1 relation to another table. When using console, manually opening a record shows everything is fine, “save” button enabled. But as soon as I set a relation to a record in another table, I see a validation error on the (completely unrelated) field below and i cannot save… see screenshot:
Ah — I had set it to “URL”. But we actually don’t want this… so I removed the validator, and now relations are possible. Thanks for the hint!
However, another question then: if the validator was set to “URL”, why was the code in our UI builder able to create objects in the table where the data should not have passed the validator? I would imagine that a validator in place would throw an error back when we try to write to the table with data that doesn’t pass, or?
Yes, table was full of records created during testing which all had values in the url column that didn’t match URL format. The codeless block used to write to database was “Save object in Backendless”.
Perhaps the regex used in the validator allows format such as “test.test”? That is the format of the strings we were saving, characters with a “.” in the middle.
But the console was giving me trouble about the URL field when trying to add a relation to a different field — for us the problem is solved (removed URL validator), but it is curious