We are developing a hotel application where user selects a room type and selects the number of rooms with those details rate has to be calculated. For example if number of room is 1 then it should be 300 and this 300 comes from database if number of room is 2 then it should be 600 . i have tried using switch case but couldnt load .I have attached the OML also

Without looking at the Module (no time, sorry), but what exactly is your problem? If you have the price per room and the numer of rooms then just multiply?

Without looking at the Module (no time, sorry), but what exactly is your problem? If you have the price per room and the numer of rooms then just multiply?

Hi kilian ,

Yeah but number of room is a from user side not in database and price is from database

We are developing a hotel application where user selects a room type and selects the number of rooms with those details rate has to be calculated. For example if number of room is 1 then it should be 300 and this 300 comes from database if number of room is 2 then it should be 600 . i have tried using switch case but couldnt load .I have attached the OML also

Hi Ummul, you dont need the switch, you need to make the math calculation based on you choices, check the oml and you can copy or adapt the ways that fit you better

and any changes on this 2 inputs would trigger the onChange and recalculate

We are developing a hotel application where user selects a room type and selects the number of rooms with those details rate has to be calculated. For example if number of room is 1 then it should be 300 and this 300 comes from database if number of room is 2 then it should be 600 . i have tried using switch case but couldnt load .I have attached the OML also

Hi Ummul, you dont need the switch, you need to make the math calculation based on you choices, check the oml and you can copy or adapt the ways that fit you better

and any changes on this 2 inputs would trigger the onChange and recalculate

Hope I could help you.

Hi Carlos ,

It worked and thankyou for helping me with the logic

We are developing a hotel application where user selects a room type and selects the number of rooms with those details rate has to be calculated. For example if number of room is 1 then it should be 300 and this 300 comes from database if number of room is 2 then it should be 600 . i have tried using switch case but couldnt load .I have attached the OML also

Hi Ummul, you dont need the switch, you need to make the math calculation based on you choices, check the oml and you can copy or adapt the ways that fit you better

and any changes on this 2 inputs would trigger the onChange and recalculate

Hope I could help you.

Hi Carlos ,

It worked and thankyou for helping me with the logic