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.

1 script - lots of fields - multi relationships

Featured Replies

Hi guys,

here is a good one for you.

Can anyone think of a way of writing one script to do the following.

Diary system.

7 relationships, 1 for each day. Within each day are time slots 8am-8pm.

These are stored in an appointments db, 1 record for each day, with the time slots as fields.

Who can think of a way to script this using the minimal amount of scripts.

I know I can do it by writing a script for each time slot. Not keen

I know I can do it by clicking into the field and then clicking a button.

Would prefer the time slot to act as the button.

I use this to pick a day from a mini calendar on the side. (you've got to love the new features of 5.5)

but who can think of a way of doing this by just clicking on the field, returning that time slot with the relevant day.

I know I will need to write the script for each relationship, but at least that is only 7 scripts, not 140 of the darn things.

[ February 27, 2002, 07:06 AM: Message edited by: Andy Gaunt ]

Script what? Get the name of a field when you click it? Status(CurrentFieldName) should do it, but you would have to do one for each field, because Status(...) needs to go to a specified field to return the proper result.

  • Author

Fitch,

oops. I forgot to put that bit in.

In the diary I want to be able to click on any appointment and have it show that related appointment.

I know I can do this easily if I write one script for each time slot. And I know I can do (Status(CurrentFieldName)if I click in the time slot and then click a button (two steps).

But this means 7 buttons for each of the relationships on the screen.

This leaves it too open for user error.

But can anyone think of a way of doing this with one script for each of the relationships.

Basically, have a script that when you click on the time slot, it picks up that time (Status(CurrentFieldName), goes to the relevant appointment and displays it in a pop-up window.

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.