Skip 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.

find similar - extend found set?

Featured Replies

Hi,

I am having problems figuring out a solution to this. I have an event database where some events have the same date. I would like to find a way to take my non-available dates, run a script, and have it set a checkbox I have labelled "available" to true on only the available dates. Sorry if this sounds confusing, as I'm a bit confused myself at the moment.

I can add the dates that I am not available to the database by creating a new record for each. I've tried a few different ways to grab a hold of this problem, but it keeps slipping away from me.

What is your critieria for determining a non-available date? How many events can be scheduled for a single date before you are not available?

  • Author

basically at this stage of the database, I will create a new record and put the non-available date in the date field. Then, for event name put something like "Not Available" This will be done manually for now.

i dont want to limit the events scheduled to a single available date at this time.

to clear things up, the event database is actually a Db of events that I am bidding on. so, if 3 events have the same date, i still want them to be checked as available so i can put in a bid. however, I need a way of filtering out the events on dates I am already busy, or booked.

Attached is one way you could do this. It uses a value list calculation to determine what is not available. Once you enter a new Not Available event or change a Not Available to something else, click the Refresh button to refresh the screen and show the other records correctly. Otherwise, no scripting is necessary.

Events.zip

  • Author

Wow, more than I was expecting Queue, Thanks.

However, to further my quest for knowledge, I was hoping you or someone else could explain a little bit about how data is passed in this solution.

I see you setup a cNotAvailable, and a cAvailable field. On the cAvailable field, I see your using patternCount to put items in the value list you setup, could you explain what pattern count does, and the syntax you used? I also dont understand the need for cNotAvailable.

Also why was the relationship used? and I dont understand how refreshing the screen tells the one value list to be set to "1"

sorry for all of the questions. I guess I know just enough scripting to make me dangerous at this point.

CNotAvailable is simply an auto-entered text field with the value "Not Available". It is related via the NotAvailable relationship to the Event field. This means that it is related to each record that has "Not Available" as its event name. So, if you put a portal on the layout that uses the NotAvailable relationship, and put the date field in that portal, you would only see the dates in the portal for records that were named "Not Available". In the example, you would see 6/6/2004 and 8/6/2004.

The NotAvailable value list uses these dates to create a list of unavailable dates. cAvailable then tests whether the current record's date appears within the list. The ValueListItems function returns a carriage-return delimited list of the specified value list. E.g. 6/6/2004

  • Author

Queue,

Many thanks. After reading your descriptioon and playing with the sample, I was not only able to understand this method, but apply it to my existing database.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.