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.

Trying to get message to pop-up at the right time

Featured Replies

Hi All

I search three db from a fourth db for inactive welders. I would like a message to pop-up when the search reveal that there are no inactive welders.

I have made relationships for the three db to the fourth db and have tried using the status(currentrecordfound) function to have message pop-up.

In the fourth db I have a define a unstored calculation field as such:

w_total = O_status + W_status + OP_status

0_status has 15 records, W_status has 20 records and OP_status has 22 records

This should give w_total a total of 57 records. But this displays 0 until a new record is added to one of the three db then it displays only the number in the recently used db.

When the script is run the message appears "No welders were found" regradless if a welder is found.

The script is as such:

Enter find mode

insert calculated results (for the three db)

Perform find

If w_total=0

Show message "No welder's record were found"

endif

But the w_total will not change from the number of records in the db until after the script is ran and then it will reset itself to 0. i hope i have explain this so someone can understand it.

Is there another way of doing this or ma I missing something.

Thanks

Lionel

oilman said:

I have made relationships for the three db to the fourth db and have tried using the status(currentrecordfound) function to have message pop-up.

Why don't you use your relationship for that purpose.

Count(::Rleationship:O_status) + Count(B):Rleationship:W_status) + Count(B):Rleationship:OP_status)

  • Author

Hi Ugo

I have tried something similar to that and maybe i need to use count in front of the relationship.

This is what i tried

w_total = Relationship:O_status + Relationship:W_Status + Relationship:OP_status

thanks

Lionel

Without the Count you'll only be referencing the data from the first related record in each file, depending upon the relationship's sort. So you'll definitely want to use it.

  • Author

thanks Queue

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.