SergeS
MIS
- Aug 14, 2002
- 28
Hi,
It is possible to create a prompt asking the user to select one of the values in the declared list. However, I want to use a dynamic list of which the values are obtained from a specific database column.
F.e.: In my database I have a table called Region containing three regions: region 1, region 2 and region 3.
I want the user to select an region for which the measures should be calculated. However, I don't want to do the following:
@Prompt('Select region','A', {'region 1','region 2', 'region 3'), MONO, CONSTRAINED)
because when a new region is added to the database table the universe has to be changed!
The list of values from which the user can choose should be the result of something like: select distinct region from Region.
How should I realise this?
Thanks in advance,
Serge
It is possible to create a prompt asking the user to select one of the values in the declared list. However, I want to use a dynamic list of which the values are obtained from a specific database column.
F.e.: In my database I have a table called Region containing three regions: region 1, region 2 and region 3.
I want the user to select an region for which the measures should be calculated. However, I don't want to do the following:
@Prompt('Select region','A', {'region 1','region 2', 'region 3'), MONO, CONSTRAINED)
because when a new region is added to the database table the universe has to be changed!
The list of values from which the user can choose should be the result of something like: select distinct region from Region.
How should I realise this?
Thanks in advance,
Serge