41
Views
8
Comments
Check-In, Check-Out and Cancel Bookings, Create UI and change the functionality

Hi! I need help step by step.

This will be done in several parts. First, we will change the functionality of the BookingDetail Screen, when editing an existing Booking, to allow checking-in, checking-out or cancel. Then, we will create a Homepage, where it will be visible the Check-ins and Check-outs of the day, with a Button to directly check-in or check-out. This will lead to some extra changes as well. We will change the Form on the BookingDetail to only allow edition while the Booking is not confirmed. Also, we will create a reusable Action to change the status of a Booking. BookingDetail Screen 

1) Change the BookingDetail Screen to make it look just like the following mockup

Don’t forget to check the visibility of the Buttons and when the Form is editable or not 

2) Create a generic Server Action to change the status of a Booking. This Action should be generic and should be able to change the Booking to any possible status. 

3) Implement the logic of the three new buttons, to change the status of the Booking accordingly, reusing the Action created in the previous step. 

Thanks

2020-07-21 19-28-50
Rajat Agrawal
Champion

Hi @Beatriz Martínez Perales,

According to the below condition apply the visibility of Buttons also same as we did for input field.


You can also create a generic Server Action to change the status of a Booking. That we did in above screenshot.

Hope this will helps you!!!


Regards,

Rajat

2024-12-18 16-06-42
Junaid Syed

Hello Beatriz,

I am confused with your post, not sure what is the question here. Please share what you have implemented to satisfy the described requirements and then ask specific questions on areas where you are stuck.

Regards,

Junaid

2019-01-31 08-54-57
André Costa
Champion

Hi @Beatriz Martínez Perales 

Could you please state any question related to a problem or doubt you may have, in order for the community to be able to help you? 

AC

UserImage.jpg
Beatriz Martínez Perales

Hi! I´m some questions by this part. 

Get Available Room and Book Room. The first Button will trigger an Action that will get the cheaper available room, for the dates and number of adults and children selected in the Form. The second Button will also trigger an Action, to confirm the Booking and adding it to the database. 

I don't know make this.

Thanks!

2019-01-31 08-54-57
André Costa
Champion

Can you share your oml?

UserImage.jpg
Beatriz Martínez Perales

Of course!! Thanks

Booking Assignment.oml
2019-01-31 08-54-57
André Costa
Champion

I'm not able to open your oml.

What version of Service Studio are you using?

UserImage.jpg
Beatriz Martínez Perales

Estoy utilizando ODC Studio no Service Studio.

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