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.

Using Find and a Switch.

Featured Replies

Hi --

I have adopted a technique for "boolean fields". It entails the following ... make the field a Number (that can accept nulls) ... create a value list that has a single value of "1" (I usually call the Value List a Switch) ... and use the checkbox as the display type in layouts. I am sure you have all done and seen it.

My question is how can you make the negative (null) value easily "queryable thru Find" on a ListView (for users)?

--Rich

Lots of possibilities, but remember that finding "==" in a field will find when it is empty.

My favourite might be to make the field in to a BUTTON, which calls a generic script that can be used for any switch field:




# script parameter = field name



if [ get(windowmode) = 0 ]    //browse mode



go to field ( get(scriptparameter) )



else if [ get(windowmode) = 1 ]  //find mode



display dialog "Find positives, negatives, or all?"



if get(lastmessagechoice)=1 //all

    set field by name ( get(scriptparameter) ) to ""

else if get(lastmessagechoice)=2 //positives

    set field by name ( get(scriptparameter) ) to "1"

else if get(lastmessagechoice)=3 //negatives

    set field by name ( get(scriptparameter) ) to "=="

end if



Or something along those lines.

Hope that helps. Have subscribed to this topic as I'd be interested to hear other ideas.

James

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.