I have two databases, first is a database of applications and then a database of installers. On a member page which is driven from the installers database, I want a repeater, based on applications set up to only show that logged in users assigned data only. Any ideas?
top of page
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
![feature fixed.png](https://static.wixstatic.com/media/3bfa8a_f845e1016b8a49758acdd6edd6610c3b~mv2.png/v1/crop/x_0,y_2,w_852,h_508/fill/w_104,h_62,al_c,q_85,usm_0.66_1.00_0.01,blur_3,enc_auto/feature%20fixed.png)
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
bottom of page
You can do this either by filtering the dataset when it's ready or by refining a query.
Start by importing Wix Users and Wix Data API modules.
import wixUsers from 'wix-users'; import wixData from 'wix-data'; let user = wixUsers.currentUser;
Method #1: Filteriing a dataset
let myFilter = wixData.filter().eq('member', user.id) $w('#dataset').setFilter(myFilter)
Method #2: Refining a query when using data bining
wixData.query('collection').eq('member', user.id).find()
For other questions please open up a new thread.
Ahmad
Hey I'm facing the same issues and need to pull out the items from a database which references users and show the data referenced to that particular current User. Please help! Is there a code for it ?
You can just do something like the Wix Member Profile tutorial as shown here.
https://support.wix.com/en/article/corvid-tutorial-building-your-own-members-area
Just take the tutorial and only do the single dynamic page that is read only, so when the member is logged on, then they will be the only one who is able to see their own dynamic page and the repeater should only show data that is linked to them by their userid for example.
https://www.wix.com/corvid/reference/wix-users.html#currentUser
https://www.wix.com/corvid/reference/wix-users.User.html