Hello Wix team,
Is it possible to programatically change the read/write access of a dataset? The problem I am facing is this:
I have a user input collecting form and another page that displays a table with the data collected. I have also a dynamic page which displays the information submitted by the user one by one from the database. In the dynamic page I have am planning to add a edit button that redirects the user to the same form and loads the content in the form so that he can edit and save it.
So the form need to be in write mode when a new data is added into it and in read/write mode when it is being edited.
I tried using read/write mode for both cases. But then the user input elements in the form is stuck/disabled for the first input I add (as there is nothing to read from the database at that time). and the table always crashes at this time.
So I think it will work if i set the database in to write mode during addition of new data and to read/write mode when I need to edit something. Is this possible programmatically using wix code? Thanks