owaring Posted May 23, 2008 Posted May 23, 2008 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?
mr_vodka Posted May 23, 2008 Posted May 23, 2008 See if this will get you started. http://www.nightwing.com.au/FileMaker/demos7/demo705.html
owaring Posted May 23, 2008 Author Posted May 23, 2008 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.
Søren Dyhr Posted May 24, 2008 Posted May 24, 2008 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now