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.

Constrain in script with related records?

Featured Replies

I'm trying to script a phone directory. I start with taking the user to a layout in find mode with the possible/relevant fields to specify the people to be included. The script then performs the find, but before displaying the results, I want to constrain the found set further by specifying that this is the phone number marked as preferred for directory use. Contact numbers are stored in a separate table from names and addresses and each individual might have anywhere from 1 to a half dozen or more phone numbers, email addresses, etc. On the main data entry screen I use a portal to create these phone/contact records and include there a checkbox to specify if the number is to be used in a phone directory listing. But I get a "no records found" error when I run my script. What am I doing wrong?

My script looks like this:

Perform Find []

Go to Layout ["PhoneDirectoryDisplay" (PeopleMainTable)]

Constrain Found Set [Restore]

Sort Records [Restore; No dialog]

Enter Preview Mode [Pause]

In the *Constrain/restore* step I specify:

PhoneContactNmbrs::phoneDirectoryYes: [=yes]

Thanks for your help,

decker

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.