how to display images based on the current user

hello I'm a beginner, I want to ask how to display the profile picture in native based on the user who is currently logged in, I've tried using the same method as on the web but it doesn't work, please help thank you
1 answers

Hi teguh,


If you make a 1-1 assosication between Account and ProfilePicture (eg speciation) the proflie picture only belongs to one profile, which is the currentUser.


so what you do is:

  1. create entity ProfilePicture
  2.  add an 1-1 relation with entity Account
  3. Use the ProfilePicture as input for you image viewer.

Hope this helps.


Good Luck,