Jump to content

Conditional value list + 1


grover970

This topic is 4324 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • 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?

Link to comment
Share on other sites

  • 3 weeks later...

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

This topic is 4324 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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