Member page - Filtering - referenced value

Hi all,

I have a question regarding filtering a page for a member.
On this page a member will see data that is about them (but they are not owner of that data).

I have a database, that is being refreshed hourly, and that is removing my email column (when it is a fixed value), that is why I choose a referenced value to an other database.

Would it be possible to use a referenced value of a database for this filtering?

I use this code now(it works bytheway when the value is fixed and not referenced):
(otherwise i will try to push the emails in the refresh, but that was something else I could not make work :wink: )

import wixUsers from ‘wix-users’ ;
import wixData from ‘wix-data’ ;

$w.onReady( async function () {
let userEmail = await wixUsers.currentUser.getEmail()
$w( “#dataset1” ).onReady(() => {
$w( “#dataset1” ).setFilter(wixData.filter()
.eq( “emails” , userEmail)
)
});

});

Kind regards!
Jelmer