Started playing with Wix Code this weekend, Impressive for a Beta-version. Have not encountered a fatal error yet. So congrats on this much needed effort.
I am prototyping a Properties db with is used in the following way (more or less like booking.com)
1) site visitor sees list of available properties (hotels, etc). Status: working. Grid and link to Properties Dynamic Page for details
2)only the property owner should be able to update his own record. Status: not working.
I have set it up as follows:
1) permissions on DB as follows
2) created a 'Member login' text link in site's footer. This hard links to a Dashboard-like page (access = members only, have to be approved)
3) a button on this dashboard links to a editable form (dataset set to read/write)
Problem: when I select this Page in the Button properties, a second field pops up, a drop down, asking me to select the record that has to be edited.
But that is not what I want: I want the logged-in user (owner) to be able to edit his-and-only-his record.
So somehow a connection should be made between logged-in user ID and his (unique) Property.record. I found an owner ID in every record in the Wix Db Manager (the grid), but I do not see how it is possible to link the two together dynamically.
Is this possible?