Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6086 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

what is the best architecture for a booking system,

i want each "booking" to have a list of items allocated to it

i have considered a table for bookings, then a table for every item on every booking but this could get a bit big!

any suggestions/ ideas?

Posted

See if this will get you started.

http://www.nightwing.com.au/FileMaker/demos7/demo705.html

Posted

thats great for some other aspects of my site so thanks.

however, building on the example i would want to book multiple rooms on one booking.

Posted

You could add a global field for storing the number of bookings you wish to make, and then add following script to Rays template.


If [ Get ( LayoutNumber ) = 3 ] 

     Show Custom Dialog [ Message: "How many bookings do you wish to make"; Buttons: “OK”; Input #1: Availability::gCountOfBookings ] 

     Set Variable [ $counter; Value:Availability::gCountOfBookings ] 

     Set Variable [ $FromDate; Value:Availability::gFromDate ] 

     Set Variable [ $ToDate; Value:Availability::gToDate ] 

     Set Variable [ $Capacity; Value:Availability::gCapacity ] 

     Set Variable [ $Type; Value:Availability::gType ] 

     Loop 

          Go to Portal Row [ Select; First ] 

          Exit Loop If [ Get ( LastError ) = 101 ] 

          Perform Script [ “Place Booking” ] 

          Set Variable [ $counter; Value:$counter-1 ] 

          Exit Loop If [ $counter=0 ] 

          Set Field [ Availability::gFromDate; $FromDate ] 

          Set Field [ Availability::gToDate; $ToDate ] 

          Set Field [ Availability::gCapacity; $Capacity ] 

          Set Field [ Availability::gType; $Type ] 

     End Loop 

End If 

--sd

This topic is 6086 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.