21
Views
11
Comments
Solved
list clinics and doctors
Application Type
Reactive
Service Studio Version
11.54.25 (Build 62773)

Reactive - Version 11.54.25 / Build 62773 -

in the Patient Self-Service Portal exercise

we have the Clinic and the Doctor.

I would like to show it on the screen

Clinic xxx

   Doctor A

   Doctor B

   Doctor C

YYY Clinic

   Doctor A

   Doctor D

   Doctor E

ZZZ Clinic

   Doctor B

   Doctor D

   Doctor F

I tried like shown in the picture

but the Get_Doctors_and_Clinics's aggregate always takes id_clinic = 1.

What am I doing wrong, or what else do I have to do to get the result shown above?

Sorry for the English.

I hope i was able to explain my question. :)


img_01.png
Champion
Solution

Hello @ricardo souza 

I have added one block inside a List, the reason for that is we need a nested list and avoid the repeated records and we want unique basis on the Clinic, so for the use case we can create a block with another list inside it and passing the Identifier of the parent, this will create multiple instances of block for each row wrt to its parent identifier.

I have update your oap and sharing you the same - 

I hope this will help you.

Best regards
Tousif Khan

Patient Portal.oap

Hi..:)

Thanks for your help.

From what I've read about blocks, they look like frames in other programming languages.

I will think of another case study to try to use the block.

thank you again :)


Are you filtering by the clinic ID in the second list?

Example type: Doctorclinic.clinic.Id = Clinic.Id

You need to filter by the current clinic ID

Firstly, thank you for your return. :)

If you look at the image I sent along, you will see that the filter is as you described... 

correct?

Hi...

header.oap contains two functions. Setfocus and lock_browser_button. :)

The screen I'm testing is Fo_Rel

00_Patient_Portal.oap


Look, I learned something new, it seems that the data is being loaded at the same time and it is assuming the same id I think first to second list as the execution is asynchronous so the data appears to be repeated. (I didn't know that) but if you add it inside a web block you get the expected result.

You have the change below.

PatientPortal_V1.oml


Hi..

I'm a new outsystems developer. I'm going to look for some literature about blocks.

I am reading the Training/Patient Self-Service Portal/Patient Registration/Registration Form,

https://learn.outsystems.com/training/journeys/patient-self-service-portal-506/registration-form/o11/2219


Hi.. :)

thanks for your help.

However i marked Tousif answer as solution.

One more time.. thanks :)


Okay, the important thing is that you managed to find the solution.

Champion
Solution

Hello @ricardo souza 

I have added one block inside a List, the reason for that is we need a nested list and avoid the repeated records and we want unique basis on the Clinic, so for the use case we can create a block with another list inside it and passing the Identifier of the parent, this will create multiple instances of block for each row wrt to its parent identifier.

I have update your oap and sharing you the same - 

I hope this will help you.

Best regards
Tousif Khan

Patient Portal.oap

Hi..:)

Thanks for your help.

From what I've read about blocks, they look like frames in other programming languages.

I will think of another case study to try to use the block.

thank you again :)


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.