Hello,
I'm working on the Hotel Booking APP.
When you click 'Get Available Room' button and there is no vacancy, I want to display the message saying 'No rooms available'. But it doesn't work. Nothing is displayed.
Is the condition incorrect?
If there are vacancies, the cheapest room is properly displayed.
Please some help.
Thanks.
Hi, All
I've remade my oap file and found my misteke.
The If condition is correct, but I set a value in the visible property of the container and completely forgot.
I'm so embarrassed and sorry to bother you guys..
After changing the property to "GetAvailableRoom.IsGetAvailableRoomClicked = True", the message saying 'No rooms available' displays correctly.
Thank you for the help.
Hello Sarah,
good to hear that, so my guessing is correct haha, grad that you have solved the problem.
Cheers.
Hi,
For some reason I cannot open the OML, it gives IPP error, which is strange, as files uploaded here should have IPP removed.
Could you share the part where you have the message defined in the IF
Regards,
Daniel
Thanks for taking a look at my post.
I uploaded some images. Is this okay?
Please let me know if there is any other information you need.
Sarah
This is what I asked for in my previous reply:
Could you share the part where you have the message "No rooms available" defined in the IF
Hi Sarah,
I can't open your oap file either, but according to the screenshots you have, your expression condition should change to GetAvailableRoom.Room.Id = NullIdentifier() instead, cuz you are trying to get the available room by the data action, and when there's no room available, the GetAvailableRoom.Room.Id should return null.
Hope this could help.
Hello, Kay
Thank you for your help, but it doesn't work either.
When debugging, A returns 0, so I changed the expression condition to 'GetAvailableRoom.Room.Id = 0 ', it doesn't work either..
Hi sarah,
I think you're looking at the wrong data when debugging, when the breakpoint stop at the assign, at that moment, the assign is not done yet, you should check the return list from the SQL, which expand the list should be the right data select by the query.
If you look into the Room variable, your breakpoint need to stop at the END Node instead
Hope this help
I have done this exercise before, although the way how I implement the available room is different compare to yours one, but still, let me share mine one to you, so you could get an idea of how it works.
p.s. In my files, there might be something which is not related, you could just ignore them.
The file is bigger than 4MBs, so I uploaded to my GDrive, you could download from there and use it as a reference if needed :)
https://drive.google.com/file/d/1jbzUxONzUGBTyFktBWWN2TohA2GIlhEW/view?usp=drivesdk
Thank you.
I tried to download your file, but I can't because of IPP error.
Anyway, I'll try to remove IPP from my oap file. probably I'll remake it and upload again.
Please help me later.
did you correctly do GetAvailableRoom Adv SQL?
Please find the attached sample file.
Thanks,
Ramesh
Thanks Ramesh
I checked the SQL again and it seems to be fine.
I'll try to remove IPP from my oap file and upload again.