Skip to content

Relationship foreign key displays extra characters #10937

Closed Answered by zedascouves
zedascouves asked this question in Help
Discussion options

You must be logged in to vote

Ok, I've managed to make it work, and I think it really is a (major) bug. I've ejected the form components until I get to the save action button. There, I've changed the actions a bit and I now transform the picker value like this, on the "Save row" action:

{{ toInt (remove (remove (remove (remove (stringify Details Form.Fields.VIPS_Country) '%5B') '%5D') '["') '"]') }}

So, my action looks like:

This way I can select my "foreign key" element on the picker, and it'll save the correct ID on the row.

Although this solves the issue, it doesn't fix the underlying cause, which I believe to be an incorrect parsing by the Budibase platform

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zedascouves
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
bb-relationships Relating to table relationships externaldb Relating to datasource plus
1 participant