35
Views
3
Comments
Solved
Bookings Assignment, List of Service
Question

Hey i'm have trouble, booking confirmation should be like this

but mine is

I don't know how to get the list name of services, I only have the id.
any already finish booking assignment can you help me please :)

2021-09-06 15-09-53
Dorine Boudry
 
MVP
Solution

Hi Ibrahim,


I dont know that assignment, but I imagine you have some (static) entity holding the possible services, and then for each booking a entity holding the services purchased, with a date and a reference id to service type.

So you probably have an aggregate retrieving the purchased services, and this aggregate returns as one of the attributes the identifier of the type of service purchased. The 0 and 4 in your screenprint.  If that is what you are doing, you can simply add the service type entity as a source to you aggregate, if your datamodel is ok OS will automatically add correct join conditions.

Then you will have the service name available in output of the aggregate, you can display that instead.

Dorine

UserImage.jpg
Febrio Ibrahim

Dorine Boudry wrote:
Hi Dorine,

yeah you all right that's so simple hahaha I don't realize that.
Thank you

Regards
Ibrahim

Hi Ibrahim,


I dont know that assignment, but I imagine you have some (static) entity holding the possible services, and then for each booking a entity holding the services purchased, with a date and a reference id to service type.

So you probably have an aggregate retrieving the purchased services, and this aggregate returns as one of the attributes the identifier of the type of service purchased. The 0 and 4 in your screenprint.  If that is what you are doing, you can simply add the service type entity as a source to you aggregate, if your datamodel is ok OS will automatically add correct join conditions.

Then you will have the service name available in output of the aggregate, you can display that instead.

Dorine



2021-03-05 13-56-11
Ricardo Pereira
 
MVP

Hi,


I believe the solution that Dorine wrote can help you. After had that missing entity to the aggregate, you just need to go to the expressions that are showing the ids and change the attribute for the one that you need.


Best regards,

Ricardo M Pereira

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