Hi All,
I have a component with 2 nested parameters. Parameter 1 is a boolean and Parameter 2 is a string, which is set to enable when Parameter 1 is set to 'True'.
Parameter 2 accepts 0 or more values from a list of legal values (set as Option 1 to Option 5).
By default I want the setup for the component to be such that Parameter 1 is set to 'False' with Parameter 2 disabled and having no selected value(s). The component should also be in a runnable state.
I was hoping that by the use of a Validation Script I would be able to enforce the requirement that at least one of the Parameter 2 values be selected when Parameter 2 is enabled, however having tried various options I cannot get it to work.
Setting the 'Required to run protocol' option for Parameter 2 does not do what I require, as when it is set both the Parameter 1 and Parameter 2 parameters require attention, no matter the setting for Parameter 1, if Parameter 2 has no selected value.
I have similar scenario working with Parameter 3 and Parameter 4, where Parameter 3 is the boolean and Parameter 4 is defined as a Double and is required to be a value between 0 and 14.
I have tried this in both PP6.1.1 and SES7.0.1 and I attach example components so that you can take a look.
Has anyone had any luck validating for the presence/absence of a legal value in a component Parameter?
Regards,
James Illston
Raptor Informatics Ltd
I have a component with 2 nested parameters. Parameter 1 is a boolean and Parameter 2 is a string, which is set to enable when Parameter 1 is set to 'True'.
Parameter 2 accepts 0 or more values from a list of legal values (set as Option 1 to Option 5).
By default I want the setup for the component to be such that Parameter 1 is set to 'False' with Parameter 2 disabled and having no selected value(s). The component should also be in a runnable state.
I was hoping that by the use of a Validation Script I would be able to enforce the requirement that at least one of the Parameter 2 values be selected when Parameter 2 is enabled, however having tried various options I cannot get it to work.
Setting the 'Required to run protocol' option for Parameter 2 does not do what I require, as when it is set both the Parameter 1 and Parameter 2 parameters require attention, no matter the setting for Parameter 1, if Parameter 2 has no selected value.
I have similar scenario working with Parameter 3 and Parameter 4, where Parameter 3 is the boolean and Parameter 4 is defined as a Double and is required to be a value between 0 and 14.
I have tried this in both PP6.1.1 and SES7.0.1 and I attach example components so that you can take a look.
Has anyone had any luck validating for the presence/absence of a legal value in a component Parameter?
Regards,
James Illston
Raptor Informatics Ltd