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.

perform find in portal

Featured Replies

in my main file there is a portal showing corresponding invoices in a related file.

I would like to find the records that do not have (a) related invoice(s). I understand that it is impossible to perform a "zero records" find (result B) no records found).

What should I do.

Thank you for your help.

Hi,

try this one:

1. define in your main file an "constZero" field with option auto enter data 0 (you'll need to perform replace for already existing records).

2. allways in main define an calc field result number say hasInvoice as

hasInvoice=Count(relName::invoiceID)

where relName is your relationship used for displaying invoices in portal.

3. finally define an relationship in main NoInvoices::hasInvoice-->constZero

4. create an script

set error capture on

GTRR [noInvoices, show only related]

//handle no related records

HTH

Dj wink.gif

ooops, I was writting without thinking. So of course last step won't work.

Instead you'll have to perform find ( in main) on hasInvoice=0 (BTW it's an unindexed field so the search might yield some time if large number of records is involved).

Than also you don't need neither step 1 and step 3.

sorry crazy.gif

Dj

  • Author

Yep, it works. I have tried to do what you explained in your first reply but I soon found out that just creating the calc field hasInvoice=count(relName::invoiceID) would do the trick.

Thanks a lot!

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.