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.

Design Question Regarding Database or Scripting

Featured Replies

I wasn't sure where to post this so please move this topic if a better forum would be appropriate.

I have an application that I'm working on that will have multiple Event Weekends, for a type of sport.  I need to know what the Current Event Weekend is that the user will be working on.   The Current Weekend can be changed depending on which weekend the user needs to add entries to.   I'm not sure how to set this up...

Option One:   I thought maybe having a CurrentEvent table, where there is basically only one record that the whole application can access, that tells the application what the Current Weekend is. (it can just be a number field that is linked to the Event Table).    However, if I do this, the way my database is laid out, the table that is a bit of a distance from the CurrentEvent table is not reaching the table with that field. Perhaps I need to modify my layout. I'm not sure.

Option Two: I could have a CurrentEvent field in the 3 tables that need to know what the CurrentEvent is.  These include the Event Table, the Trial Table, and the Run Table. (Each Event Weekend can have multiple Trials. And each Trial can have multiple Runs.)

        IF I did Option Two... each table has multiple records (IE there can be many Trials in the Trial Table), and so I would probably need to update every CurrentEvent record in that table.    I'm not sure how I would script it so that every CurrentEvent field in the Trial Table is updated to reflect, say, Event 2. (I've played around with pasting in the value, or using Replace Field Contents, but I couldn't get those to work correctly.)

Option Three: Have a Global Variable that carries the Event Weekend Number always throughout the application so that all the tables can access it. (Or maybe a Global Field? I have a read a bit about Global Fields but don't know if this would solve my issue or not.)

 

I'm a pretty major Newbie at Filemaker, this is my first application, and would appreciate any help. Thanks!

 

 

2 hours ago, Cynthia Heyman said:

I need to know what the Current Event Weekend is that the user will be working on. 

Difficult to answer without understanding what your solution tracks in real life. What determines if an event or a weekend (are these two the same thing?) are "current"? Are they current for all users alike? How long do they remain current? 

  • 3 weeks later...
  • Author

Thanks for your reply. After talking it out with myself I figured out what I wanted to do. :)

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.