Skip to main content
Jan 15, 2018 7:58 AM UTC
Solved

RESTRICTED VALUE PARAMETERS

hello,

i would like to ask if it possible (with restricted value parameter or something else) to choose for a parameter a value between a restricted value and something added manually.

for example: parameter XYZ could have a value N/A or a numeric value added by the user.

thanks

Jan 15, 2018 3:09 PM UTC

Hi,

 

possible solution no.1:

Create a pair ofr parameters MYPAR_EX and MYPAR_VAL

MYPAR_EX = Yes means that MYPAR_VAL value is defined ... this represents MYPAR_VAL = numeric value

MYPAR_EX = No means that MYPAR_VAL value is not defined ... this represents MYPAR_VAL = N/A option

 

possible solution no.2:

Set numerical value that will represent N/A option ... for example 9999999999

11 replies

Jan 15, 2018 2:46 PM UTC

A restricted parameter can have only one type. It cannot select from both a numeric and a text character string.

You could have a relation that detected that a given parameter was not present and set another parameter accordingly. Use the "exists(parameter_name)" function.

cspinelliAuthor
Jan 15, 2018 3:10 PM UTC

ok, thanks. but it is possible to set a parameter via drop down menu?

Jan 15, 2018 3:09 PM UTC

Hi,

 

possible solution no.1:

Create a pair ofr parameters MYPAR_EX and MYPAR_VAL

MYPAR_EX = Yes means that MYPAR_VAL value is defined ... this represents MYPAR_VAL = numeric value

MYPAR_EX = No means that MYPAR_VAL value is not defined ... this represents MYPAR_VAL = N/A option

 

possible solution no.2:

Set numerical value that will represent N/A option ... for example 9999999999

cspinelliAuthor
Jan 15, 2018 3:27 PM UTC

thank you very much,

i like solution n°1 but i have a question. if i set this relation:

 

IF MYPAR_EX==NO

MYPAR_VAL="N/A"

ENDIF

 

then i will have MYPAR_VAL as N/A. if in the future i will change MYPAR_EX to NO what will happen to MYPAR_VAL?

 

Jan 15, 2018 4:29 PM UTC

Hi,

 

please explain your situation more precisely. I do not understand how are you going to use your parameter (containing numeric values or N/A string). Do you really need to have numeric parameter ?