Hi
I'm trying to create connected parameters that independent and related. Let me describe an example to makes this clear. Imagine 4 parameters with the following relationships.
- Parameter 1 is a simple LOV generated from a query in the database and is required
- Parameter 2 is defaulted to All but can be filtered by the value of Parameter 1.
- Parameter 3 is defaulted to All but can be filtered by either Parameter 1 or Parameter 2 or both.
- Parameter 4 is defaulted to All but can be filtered by any combination of the Parameters 1,2 and 3.
I believe I can create all the correct parameter queries based on the mydbr_paramX variable.
... where if(expr<>0, value=mydbr_param1,1=1) and if(expr<>0, value=mydbr_param2,1=1) .....
(we pass 0 when All is selected)
What I am noticing is that in the Parameter entry screen if I select a value for parameter 1 only parameter 2 gets updated. The filter is not pushed down to parameters 3 and 4 even though their queries should allow for this.
In short parameters have a linear precedence: param 1 controls values in param 2 only, param 2 controls values in param 3 only, param 3 controls values in param 4 only.
What I am trying to do is have param 1 control values in param 1,2 and 3, param 2 with param 1 control values in params 3 and 4, param 3 with param 1 and and optionally param 2 control values in param 4
This behaviour can also be seen when modifying the parameter values. If you set all 4 parameters then change the second, the 3rd is cleared and returns to the default and the 4th is unchanged and incorrect with the old value (it is not cleared even though it has a relationship to param 2)
Maybe this is best described as parameter inheritance.
Should things work in the way I described?