cogvatsan
Thanks for your feedback
If I understand you correctly there are two parts to your proposed solution. The first is the construction of a synthetic two-column data list that is used to populate the prompt. The first column is the PK the second a display value for the drop down. The item in the first column is an index or key into a list of possible combinations of parameter values (potentially a very large list) that is held in a second table. The selected row from the second table would have a number of fields, one for each parameter to be populated.
So far so good. The issue however is in the second part, your statement:
retrieve filter conditions
"select clm1, clm2, clm3 from <tb1 name>
into dataitem1, dataitem2, dataitem3
where (Filter -> clmn4(PK) = ?param0?)"
This is the crux of my question, the rest I can work out. How exactly is this done? Are you simply talking about a query with a filter or is this a piece of code you write somewhere? If this is a query then it doesn't achieve the objective, namely the population of report parameters. None of these parameters will appear in the report they are to be used in conditional formatting logic. For example the objects that appear in statements such as ParamDisplayValue("param1").
I want to execute some fairly complex logic and need a number of parameters to be populated in order to do this (I appreciate there are always alternative ways of achieving this but it's the technique I'm more interested in at this point)
So, how do I run the SQL statement shown above to populate dataitem1, dataitem2, dataitem3?