28
Views
3
Comments
Solved
please help me in adding aminities as i am facing problem alot
Question

as i am adding amenities to new room adding process so it is not adding to that room id but when i am donig in edit section of room of if getting update please some one help me in this case 

@bookingassisngment

i am facing problem in adding amenities 

Booking.oml
2023-10-21 19-42-11
Tousif Khan
Champion
Solution

Hello

The reason is because since you are creating a room and the room is not created yet so on that case there is no room id where you will assign the amenities,

So In a general term since the room is not created yet so even if you try to create amenity it will assign 0 to it because as I can see on the destination of add amenity button you are passing the room Id from  RoomId  input parameter on screen and hence it is null when you are creating a room.

And it is being passed as 0 in this case.

As a best practice I suggest to hide the amenity container when the room Id is nullidentifier

I hope this help

Best regards
Tousif Khan

2023-11-22 10-51-50
Jozy Sohail
Solution

Hi sawan,

As Tousif pointed out that roomId is null at the time of adding amenities to your room.

So what i would suggest you to first save the room and stay on that screen and do not navigate to rooms screen, then save the id from RoomCreateOrUpdate into the roomId input var, then add the amenities

Also as tousif suggested, keep hidden the amenities container if input roomId is null.

Hope it helps.

Thanks

2023-10-21 19-42-11
Tousif Khan
Champion
Solution

Hello

The reason is because since you are creating a room and the room is not created yet so on that case there is no room id where you will assign the amenities,

So In a general term since the room is not created yet so even if you try to create amenity it will assign 0 to it because as I can see on the destination of add amenity button you are passing the room Id from  RoomId  input parameter on screen and hence it is null when you are creating a room.

And it is being passed as 0 in this case.

As a best practice I suggest to hide the amenity container when the room Id is nullidentifier

I hope this help

Best regards
Tousif Khan

2023-11-22 10-51-50
Jozy Sohail
Solution

Hi sawan,

As Tousif pointed out that roomId is null at the time of adding amenities to your room.

So what i would suggest you to first save the room and stay on that screen and do not navigate to rooms screen, then save the id from RoomCreateOrUpdate into the roomId input var, then add the amenities

Also as tousif suggested, keep hidden the amenities container if input roomId is null.

Hope it helps.

Thanks

UserImage.jpg
sawan kumar sirwani

hi thank you so much for you support but can you please joind me on the call because i am not get it 

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