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.

Find records with multiple keywords

Featured Replies

Hi,

I need to script a search function.

There are 3 tables:

articles (12'000 records)

categories --< keywords (one to many relation)

Now the user could choose a category and then the script should perform a search on the articles table with the keywords from the relationship.

Unfortunately I don't know how to do this

thx for any ideas

by

ChiSao

  • Author

My idee was to get the portal records in to an array (variable) an then use this as a search string.

Unfortunately I don't know how to get the portal records in to one variable.

Try the List() function.

  • Author

yeah that works, thxs

but now I realize that I can't use it directly as a search string.

I would like to do the following:

$$searchstring= hand, shoulder, ellbow

Search in table "articles" in field "keywords" for hand OR shoulder OR ellbow

Is it possible without a loop?

No, you must have a loop to create a request for each keyword in the list - something like:

Set Variable [ $searchValues ; List ( Keywords::Keyword ) ]

#

Go to Layout [ Articles ]

Enter Find Mode [ ]

Loop

Set Field [ Articles::Keywords ; GetValue ( $searchValues ; Get ( RequestCount ) ) ]

Exit Loop If [ Get ( RequestCount ) ≥ ValueCount ( $searchValues ) ]

New Record/Request

End Loop

#

Perform Find [ ]

  • Author

I don't know how to thank you! It works great.

THANK YOU!

by

ChiSao

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.