on 02-10-2009 12:53 PM
Hi,
I am trying to define derived table sql query as below. Though the syntax parsing is going through but when I am generating the report it is throwing and invalid prompt definition error.
" select * from table_a where call_direction = @Prompt('Enter Call Direction','A','"derivedtable_a".SHORT_STRING',mono,free,not_persistent,) and
where call_type = @Prompt('Enter Call Direction','A','"derivedtable_b".SHORT_STRING',mono,free,not_persistent,) "
Can somebody please share your thoughts if this can be achieved in universe or not ?
Appreciate immediate responses as it is a show stopper for my deliverable.
Thanks in advance.
Thanks and Regards,
Shireen.
Hi Shireen
We can use prompt in the derived table. There is issue with the SQL that you have used while creating the Derived Table.
Instead of using the "derivedtable_a".SHORT_STRING' field use the object from the class on which you are creating the derived table.
For example: If you are creating a derived table in the sample universe efashion on Agg_yr_qt_rn_st_ln_ca_sr table then use the following query:
SELECT *
FROM Agg_yr_qt_rn_st_ln_ca_sr
WHERE Agg_yr_qt_rn_st_ln_ca_sr.Yr = @Prompt ('Enter Value','C','Time Period\Year',mono,constrained)
Hope this helps!
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shireen,
It always helps to provide more information about your environment.
Some issues are specific to certain environments
Otherwise, it makes it difficult to contribute to your course if the helper has to start by requesting further information.
In the mean time, try .....@Prompt('Enter Call Direction','A','"derivedtable_b".SHORT_STRING',mono,free,not_persistent,{})
Also include the full error message if avalable.
Kind Regards
Ken
This should include at least Version of the product, and operating system
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.