The date format of the prompt is controlled by a prm file on your Busienss Objects server
Open your universe, parameters and test connection
Open details - locate PRM file being used
Go to Business Objects Server
Open PRM file using notepad
Locate line below and edit date to required format
{\d ‘yyyy-mm-dd HH:mm:ss’}
Re-start connection server
(This should be documented by someone with more time than me and put on a sticky)
I would like to maintain the Data type and don’t use a string.
I tried to edit the prm file as you suggested:
instead of:
‘dd-MM-yyyy HH:mm:ss’
I put:
‘dd-MM-yyyy’
Nothing is changed also after the server restarting. I noticed that the format used in the prompt is not ‘dd-MM-yyyy HH:mm:ss’ but ‘dd/MM/yyyy H.mm.ss’ so I guess there should be some other place where set it.
table.datecolumn >= to_date(@Prompt(‘1) Start Date (dd/mm/yyyy):’,),‘DD/MM/YYYY’) AND
table.datecolumn <= to_date(concat(@Prompt(‘2) End Date (dd/mm/yyyy):’,),’ 23:59:59’),‘DD/MM/YYYY hh24/mi/ss’)
in some of my measures to grab events that occure between 2 dates entered at runtime. My dates are stored dd/mm/yyyy HH:mm:ss in the (oracle 10g) database, but the user just has to key dd/mm/yyyyy into the prompt. The date range grabbed includes everything on the first date up until 23:59:59 on the second date.
Your universe date object should also have the time portion stripped out as well so that it in the format dd/MM/yyyy 00:00:00.
There are numerous posts here for removing the timestamp from an oracle date under the universe forum
the prm file I changed is set in the connection: PRM : C:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\win32_x86\dataAccess\connectionServer\oracle\oracle.prm
The SQL query is not changed, the where condition is:
WHERE
TRUNC(to_date(‘01011970’,‘ddmmyyyy’) + ARCH_CASE.RESOLUTION_TIME_T* 1/24/60/60)
BETWEEN @prompt(‘Date début’,‘D’,‘ARCHIVED CASES\Resolution Date’,Mono,Free,Persistent,{‘01/03/2009’},User:-1)
AND @prompt(‘Date fin’,‘D’,‘ARCHIVED CASES\Resolution Date’,Mono,Free,Persistent,{‘01/04/2009’},User:-1)
What I notice is that the same report has been developed also with DESKI (same universe) and the prompt is shown correctly. I guess that is not an universe problem but a webi setting.
The way to check whether you have updated correct PRM is to open universe, go to parameters, test connection and click on details button and pan down to the prm line
Is ARCH_CASE.RESOLUTION_TIME_T* 1/24/60/60) putting the timestamp back onto your date field or is it adding 00:00:00?