on 10-22-2010 7:55 AM
I need to add "Current Date" as LOV of one object, which displays today's date. Could you please help me to do that?
Thanks & Regards,
Muntasir
What kind of database do you build your universe on?
Regards,
Stratos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for quick reply.
its string.
Yes, its SQL for LOV.
When i try in Oracle toad
SELECT DISTINCT
SNAP_DT_DLY_RNG_VW.RANGE_NAME
FROM
DIM_DATE_RANGE_VW SNAP_DT_DLY_RNG_VW
UNION
SELECT 'SYSDATE' Current_Date FROM DUAL
it is sowing sysdate + existing values, not current date as display name..i dnt know why?
Also, i it is the correct query, then how can i include it into universe to change LOV SQL?
SELECT 'Current date' FROM DUAL
UNION
(SELECT DISTINCT
SNAP_DT_DLY_RNG_VW.RANGE_NAME
FROM
DIM_DATE_RANGE_VW SNAP_DT_DLY_RNG_VW)
Go to the universe designer, select the object properties entry in the context menu (right mouse button) and in the Properties tab press Edit. Press on the SQL icon, etner your SQL statement and check the option Do not generate SQL statement before running. Close the windows by pressing OK.
Still you have to handle the string value 'Current date' in your prompt.
The SQL where clause will look like this
((@prompt(<definition of your prompt here>)='Current date' AND SNAP_DT_DLY_RNG_VW.RANGE_NAME=XXXX) OR (@prompt(<definition of your prompt here>)=SNAP_DT_DLY_RNG_VW.RANGE_NAME))
Replace XXXX with an oracle stament that will convert current_date to a format that is comparable to the contents of your RANGE_NAME field.
Regards,
Stratos
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.