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.

inclusive OR search function

Featured Replies

So I wrote a script which searches an entire layout for a letter/word/phrase.

How can I generalize this script so that I can run it on any given layout, and not have to make a custom search function for each layout? Currently, you can see (above) I am calling layout specific fields. I think need to use functions I guess to call fields dynamically, as they say.

Explanation of script/variables:

$search_term is the user inputed search string

$search_field is the field being searched by the script in that particular iteration of the search function

$end_field is the field the search ends on (it stores the field it started with, then goes through all fields its set to search, stopping when it returns to the first field it's already searched)

The script searches all fields in the layout tab order.

untitled.JPG

  • Author

just some rambling thoughts...

I tried nesting a get(layoutname) function in the table specific commands and then amend the layout name with ::*name of field being called* but it failed.

with set variable doing what I described just sets the value of the variable to the full name of the field, ie,

set variable ( $search_term; Value: Get (layoutname) & "::simple_search" )

outputs "$search_term = All Gene Information::simple_search" NOT the VALUE for All Gene Information::simple_search

...this is annoying because when you specify the field straight up (no "get" function, etc), it just grabs the value of the field n/p

so I cant figure out how to make the value of "set variable" be the field value... perhaps some complicated function also involving get (valueactivefield) or whatever...

Try:

  set variable ( $search_term; Value: GetField( Get (layoutname) & "::simple_search" ) )

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.