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.

Conditional value list + 1

Featured Replies

  • Newbies

I have a simple conditional value list(which works fine) that lists some dynamic classifications. However if none of the classifications listed are appropriate I would like the user to be able to select "None". Is there a way to add a static value to this dynamic list?

  • 3 weeks later...

why don't yuo just add another classification and name is NONE.

what way it would be in the list

In FM12, you can define a calc field, type text, as


ExecuteSQL ( "SELECT myField FROM myTO"; "" ; "¶" ) & "¶None"

and use the field for creating the value list.

I have a simple conditional value list(which works fine) that lists some dynamic classifications. However if none of the classifications listed are appropriate I would like the user to be able to select "None". Is there a way to add a static value to this dynamic list?

You could define a calculation field (result is Text) =

List ( Classification ; "None" )




and use this field as the basis for your value list instead of the Classification field.







In FM12, you can define a calc field, type text, as

and use the field for creating the value list.


ExecuteSQL ( "SELECT myField FROM myTO"; "" ; "¶" ) & "¶None"

And when would this field be evaluated?

And when would this field be evaluated?

EDIT_EDIT: OK, maybe it really is calculated a bit too late …

At the right time to work.

<shrug>

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.