cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

How to display only a selected user in a gallery

Hello,
on my application I have a screen that displays a patient's file with several information, on the same screen I can access the history of consultations of the patient by pressing label.
It takes me to another screen containing the history of consultations, except that this one displays all the consultations of all the patients except me I only want to display the history of the patient previously selected in the old screen.

 

What should I put in ''item'' so that it selects the patient I want to see?

 

Thank you for your help

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resolver II
Resolver II

Re: How to display only a selected user in a gallery

Hi @Ryder 

To get the list of consultations from the patient selected in the previous screen you can:

Assuming

Gallery1 is patient list and Gallery3 is the medical history and that you click/select the patient in Gallery1

you should set Items in Gallery3 to Filter(consultations; Patient_id = Gallery1.Selected.Patiend_id)

Gallery1.Selected.Patiend_id is the selected patiend id

View solution in original post

5 REPLIES 5
Highlighted
Community Champion
Community Champion

Re: How to display only a selected user in a gallery

Hi @Ryder ,

I assume the "history" is a Gallery - I will call it Gallery1 - replace with your name.

I also assume you have a Patient Number somewhere in the data - I will use PatientID

Also your list name - I will use Patients

So the Items of the new gallery would be

 

Filter(
   Patients,
   PatientID = Gallery1.Selected.PatientID
)

 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Highlighted
Helper III
Helper III

Re: How to display only a selected user in a gallery

Hi @WarrenBelz 

  • I assume the "history" is a Gallery - I will call it Gallery1 - replace with your name.  ✔️ (Gallery3)
  • I also assume you have a Patient Number somewhere in the data - I will use PatientID
    Screenshot_1.png

              normally it's this.

 

  • Also your list name - I will use Patients
    To be honest, I don't know what that refers to 😕 

 

PS : A little information might be helpful.
I have two entities, the first "patient" which contains the list of patients and the second "consultation" which is supposed to contain the list of all consultations.

 

Screenshot_2.png

Highlighted
Resolver II
Resolver II

Re: How to display only a selected user in a gallery

Hi @Ryder 

To get the list of consultations from the patient selected in the previous screen you can:

Assuming

Gallery1 is patient list and Gallery3 is the medical history and that you click/select the patient in Gallery1

you should set Items in Gallery3 to Filter(consultations; Patient_id = Gallery1.Selected.Patiend_id)

Gallery1.Selected.Patiend_id is the selected patiend id

View solution in original post

Highlighted
Helper III
Helper III

Re: How to display only a selected user in a gallery

Thanks for your help @ilton 

It's working 😊

Screenshot_3.png

 

Have a nice day ^^

Highlighted
Community Champion
Community Champion

Re: How to display only a selected user in a gallery

@Ryder ,

Good to see it working.

I am in a different time zone and just got back to it - 6 am here

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (10,081)