I have created a UI dynamic page.
Video1:UI Interface(members profile)
Each member link goes like this
exampledomain.com/users-database/userID
All going smoothly till this point.
The problem is in my "Admin Page", i want the admin being able to edit Client's info.
When "Sumbit" button is clicked, the info below just going in to a new entry in the database...
How can i set it up so that it replaces the current data based on the link the admin is on?
e.g.
if admin is domain.com/users-database/userID22/admin
when the data is entered in the boxes,and the sumbit button is pressed, the data is replaced on "User22" in database...Is this possible to do?

Hi Maria,
From what you describe, it seems like the dataset on your admin page is in the Read-only mode. If you want to edit existing items instead of creating new ones, you'll need to change the mode to Read & Write. Also, make sure that your collection permissions are set up so that the role of the person using the admin page can modify the collection content.
I have 2 Datasets in the page.One Read-Only(For the top "select your client") just to draw the clients name, and a Write-Only,to use with the Fields and the sumbit button.
Form works - it adds a new entry in the database with the info i put in.How ever that is not what i want to do.I want to REPLACE the excisting data of a user...not add another user.
Hi again,
The dataset you use with the fields and submit button certainly needs to be a Read & Write dataset, since you want to use it to edit existing data in a collection.
The trick here is to get that dataset to only have one item in it, the item for the selected client. If you set that up properly, you can eliminate the text elements that are displaying the current data. Instead the input elements themselves will contain the current data and allow for it to be edited.
One way of going about this is to use the wix-dataset API to create a dynamic filter based on the selected client.