Skip to main content
14-Alexandrite
January 15, 2018
Solved

RESTRICTED VALUE PARAMETERS

  • January 15, 2018
  • 2 replies
  • 4802 views

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

Best answer by MartinHanak

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

2 replies

1-Visitor
January 15, 2018

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.

cspinelli14-AlexandriteAuthor
14-Alexandrite
January 15, 2018

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

24-Ruby III
January 15, 2018

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

cspinelli14-AlexandriteAuthor
14-Alexandrite
January 15, 2018

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?

 

24-Ruby III
January 15, 2018

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 ?