Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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?

See if this will get you started.

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

  • Author

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.

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

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.