10g - Calendar Prompt -- once selecting date -go - timestamp is coming.

10g - Once I select date in the calendar prompt and after click on GO it is appending timestamp.
I am using col(datetime) < Calenderprompt value.
Colum format - dd-mm-yyyy
Could you please explain me how to work with calendar prompt on date,datetime.
Thanks in advance.

Try this, cast datetime to date and use the same in prompt as well as in your report for 'is prompted'
CAST(SUBSTRING(CAST(COL AS CHAR(10)) FROM 1 FOR 10) AS DATE)

Similar Messages

  • Change Date Format in Calendar prompt

    Hi All,
    I am on 11.1.1.5 and the calendar prompt on selection of date/typing of date defaults to MM/dd/yyyy but, the requirement is to make it to default to MM/dd/yy. I have made 3 changes to the localedefinitions.xml file (dateSeparator,dateShortFormat,dateOrder) and they look like below
    <property name="dateSeparator">/</property> // separator to use between fields in short date formats
    <property name="dateShortFormat">MM/dd/yy</property> // default short date format for locale
    <property name="dateOrder">mdy</property> // preferred order of date fields for input
    But I still dont see a change in the format of the Calendar prompt. Do I need to change something else too?

    I checked under the My Account the locale is set to English and I have the following in the file but still when I select in the prompt the date format is MM/dd/yyyy instead of MM/dd/yy
    <localeDefinition name="en"> <!-- english base -->
    <property name="localeDisplayMessage">kmsgLanguageName_en</property>
    <property name="defaultLanguage">en</property>
    <property name="characterSetList">locale:en</property>
    <property name="listSeparator">,</property>
    <property name="decimalSeparator">.</property>
    <property name="thousandsSeparator">,</property>
    <property name="dateSeparator">/</property>
    <property name="timeSeparator">:</property>
    <property name="am">AM</property>
    <property name="pm">PM</property>
    <property name="timeFormat">h:mm:ss tt</property>
    <property name="dateShortFormat">MM/dd/yy</property>
    <property name="dateLongFormat">dddd, MMMM dd, yyyy</property>
    <property name="negativeNumberTemplate">-#</property>
    <property name="collationImplementation">win:0409</property>
    <property name="dateOrder">mdy</property>

  • Pass calendar prompt selected as yyyymm

    Hi - Thanks for your time.
    I have an answers report in which we use the calendar prompt to select a particular date and apply the selected date by taking only yyyymm as filter. can anyone provide me an example on how to handle this. I have the field in which the values are in yyyymm string format and i added a logical column by converting this to date
    ex: if the user selects oct 15 2013 i need to get yyyymm only and apply the filter

    This is really what i was doing ; I have two different columns in End_Date which is yyyymm and string data type using this i converted into date End_Date_Dt
    ex: 201310 in End_Date and 01 oct 13 in End_Date_Dt - End_Date_Dt is converted using evaluate to_date into date format so it will always have 1st like 01 oct 2013, 01 sep 2013 etc
    I want to use End_Date_Dt in answers in the prompts so that i can use the calendar for the date selection. when the user selects any date i want to pass the yyyymm to the End_Date which will have yyyymm
    this is what i have in the filter in my answers - using the sql expression but it does not work
    End_Ddate is euqal to/is in EVALUATE('To_Char(%1,%2)' as Char, '@{p_dt}','YYYYMM')
    any sugestions

  • Issue with Calendar prompt presentation variable

    Requirement: (OBIEE 11g)
    A dashboard should have two prompts - one calendar prompt and one text field prompt giving number of days. There is a timestamp column (SHIP DATE) in the analysis. There should be a between limit in this timestamp field. Logic to be implemented is - Calendar Prompt DateTime <= SHIP DATE < (Calendar Prompt DateTime + No. of days from text field).
    Solution Tried:-
    Using the dashboard prompt, two prompts and two corresponding presentation variables were created. First presentation variable is for calendar prompt timestamp (Date1) and other one is for no. of days (Num_Days) text field prompt.
    Then in the analysis, two filters were created on the Ship Date. First filter is set as 'Is Prompted' and it takes the values '<=' from calendar prompt in dashboard.
    For the other filter, I converted it to SQL and wrote the following:-
    "Time"."Ship date" <= (timestamp '@{variables.Date1}['YYYY-mm-DD HH:MM:SS']{2013-01-01  00:00:00}')  + @{variables.Num_Days}{30}
    The analysis runs fine for the above filters, but when run from the dashboard, it throws up an error.
    Error getting drill information: SELECT "Time"."SHIP DATE" saw_0, "Base Facts"."QUANTITY" saw_1 FROM "SHIPPING DATA" WHERE ("Time"."SHIP DATE" <= (timestamp '''2013-00-01 00:10:SS''') + 30) AND ("Time"."SHIP DATE" >= timestamp '2013-10-01 00:00:00').
    From the above it seems that error is coming because I am unable to set properly the calendar prompt presentation variable in a format which can be read by the analysis. Since analysis is running fine from the default value of Date1, I was thinking of somehow converting the calendar prompt presentation variable in the similar prompt.
    Any pointers to the correct approach?
    Thanks
    Kundan

    I found a workaround to my above issue for now but I would like to know the proper approach from experienced folks.
    My workaround is as follows:-
    I created an additional column in the analysis -> TIMESTAMPADD(SQL_TSI_DAY,- @{variables.Num_Days}{30}, "Time"."Ship date"). Then I applied a filter on this new field. The filter is set as < variable expression Date1 (coming from presentation variable). Since I am not converting this filter to SQL, OBIEE server seems to be taking care of timestamp format conversion.
    I think I need to study the logs and the config XMLs to see how date format is being stored to get a better solution.
    Regards
    Kundan

  • Calendar prompt for Date variable from bex

    Hi All,
    I have a Bex query where I have a variable on 0CALDAY
    - Customer exit (i_step = 1 to populate with current date)
    - Single value
    - Mandatory
    I created universe on this query and in webI selection screen i do see the variable prompt.
    I am not able to see the current date populated automatically since exit values are not populated to WebI at runtime.
    My problem is that in WebI selection screen we get list of date values from the info provider instead of Calendar prompt
    where user can enter the values directly.
    I am currently on BO XI 3.1 SP3.
    Is there any specific setting in Universe or bex query which is required to get this Calendar prompt instead of list of values for dates?
    Note: When we were on SP1 the universe created then had same variable from bex and it still shows us Calendar prompt but ever since we upgraded to SP3 for the query splitter functionality we not able to get the calendar prompt for date variable in new universe we create
    Thanks
    Ritesh

    Yep.
    Now tell me how you want to show that Prompt @ WebI report level.
    My problem is that in WebI selection screen we get list of date values from the info provider instead of Calendar prompt
    where user can enter the values directly. Exactly, i didn't get this??
    @Prompt:
    You have flexibility to show options like:
    Mono/Multi: User can select Single value or Multiple.
    BW Variable: Same we have (Single/Multiple)
    Free/Constrained: User can Enter his/her value directly or No change option.
    BW Variable: By defalut you will get this, once you made it to Optional input.
    Persistent/Not_Persistent: Refreshed report has to show last selected value means use Persistent otherwise Not_P.
    By seeing the Prompt syntax , I can say your Variable is after Customer Exit, Correct??
    Workaround for your Problem is:
    <FILTER KEY="ZV_DATE"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Date (Previous Day)','A','Date\LovDate (Previous Day)Base',mono,primary_key)"/></CONDITION></FILTER>
    You have to remove that Date class and objects from prompt syntax. Because of that it showing up LOV's not calendar.
    Like:
    <FILTER KEY="ZV_DATE"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Date (Previous Day)','A',',mono,primary_key)"/></CONDITION></FILTER>
    Why, It should be blank??
    Because Date needs no class\object to show up, by default you will get Calendar on the fly.
    Hope you got my point.
    Thank You!!

  • Date format for Calendar Prompt  in Oracle BI

    Hi,
    1)
    In Oracle Answers, I need to have this format : dd-MMM-yy in a Calendar Prompt
    I've changed in localedefinitions.xml :
    <property name="dateShortFormat">dd-MMM-yy</property>
    <property name="dateOrder">dmy</property>
    <property name="dateSeparator">-</property>
    <property name="dateFormats">
    <property>dd-MMM-yy</property>
    </property>
    then I've restarted all services, but still, the format is (only in Calendar prompt) : dd-mm-yyyy (ex : 16-01-2007).
    I'm using : Oracle Business Intelligence Product Version      10.1.3.3.3 (Build 080430.1930).
    2)
    related to this, I set the value of a presentation variable with the value of returned by this Calendar Prompt. I need to compute (in a report column) the difference (in days) between some column and that presentation value .
    I've tried :
    TIMESTAMPDIFF(SQL_TSI_DAY, Attributes."Modified Date", TIMESTAMP '@{v}')
    But I get errors related most probably to the way TIMESTAMPS seems to work : getting only 'yyyy-mm-dd hh24:mi:ss' like parameters ? any idea how to convert variable v to timestamp , using a custom mask ?
    Thank you !

    right now, Calendar prompt displays (by default) dates using the format : DD-MM-YYYY, although I tried to configure everything to DD-MMM-YY
    If using folowing formula in a column : TIMESTAMPDIFF(SQL_TSI_DAY, Attributes."Modified Date", CAST('@{v_reference_date}' AS DATE))
    i got errors (State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 1843, message: ORA-01843: not a valid month at OCI call OCIStmtExecute: )
    I got errors for TIMESTAMPDIFF(SQL_TSI_DAY, Attributes."Modified Date", @{v_reference_date})) as well.
    It works for TIMESTAMPDIFF(SQL_TSI_DAY, Attributes."Modified Date", CAST('@{v_reference_date}' AS DATE)) only if I directly type the date (in the Calendar prompt) using a DD-MMM-YY or a DD-MM-YYYY- format .
    so , I will need to force Calendar to use DD-MMM-YY format (don't know if it is possible), or, in the worst case, I should be able to CAST a string to date using a mask provided on the spot (something like to_date('01-13-2010', 'dd-mm-yyyy') )
    Edited by: alex.v on Jun 7, 2010 11:26 AM

  • How to display Calendar view without having to select date

    Hi there,
    I would like to know can I display Calendar view without having user to select date first.
    And also, how do I highlight the date in calendar view for example, to show that i have set a reminder on that date?
    I have searched many threads before, but I could not get the final answer.

    Hi,
    Is there a way to display a full calendar popup with time stamp so the users can pick the timestamp from the popup?Date Picker doesn't have this feature. You can use Javascript to achieve the same. But at same time it's highly unrecommended to use javascript with OAF pages.
    Regards,
    Gyan

  • How to restrict user to select date from the calendar into a text item

    Hi All,
    I am using oracle 10g.IN a form i am having a block 'client_block' in that i am having a text_item ' entry_date' which is a datebase item and i have set enabled false in property palette and i created an image item on the same form and i have an calendar icon on it .In when_image_pressed trigger for image item i have written this code
    SET_ITEM_PROPERTY('CLIENT_BLOCK.ENTRY_DATE',ENABLED,PROPERTY_TRUE);
    DATE_LOV.Get_Date(sysdate,'CLIENT_BLOCK.ENTRY_DATE');
    This is working perfectly but user can enter or delete date into the text_item through keyboard i want to restrict that they can only select date from calendar.
    I have tried setting item property enabled false in triggers but it is not working.
    Can someone help me what trigger i have to use and how?.
    Thanks
    Sri

    Hi,
    This is working perfectly but user can enter or delete date into the text_item >>>through keyboard i want to restrict that they can only select date from calendarSet Insert allowed to 'NO' in property pallete of item ENTRY_DATE.
    In ON-ERROR Trigger::
    BEGIN
    DECLARE
    err_code CONSTANT NUMBER := error_code;
    err_type CONSTANT VARCHAR2(3) := error_type;
    BEGIN
    IF (err_type = 'FRM'
    AND err_code IN (40200)) THEN
    Message('Updates Not allowed, Please Select Your Date from Calendar');
    Message(' ');
    ELSE
    NULL;
    END IF;
    END;
    END;
    Thanks,
    Bhujendra

  • Calendar to select date in a form

    I am creating a form that has a date field where the person
    has to input a date. Is there a good way to insert a little mini
    calendar in the form where the person simply can click on the date
    in the mini calendar and have the date clicked on feed into the
    form?
    Possibly have the calendar popup when the date text field is
    clicked on. Is this something dreamweaver can do?

    > Is
    > this something dreamweaver can do?
    Yes, but not without your help. You can Google "javascript
    calendar popup"
    or go to
    http://www.kaosweaver.com and
    get their Expert Calendar extension
    for DW.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Johnny the boy" <[email protected]> wrote
    in message
    news:gp62nr$c6o$[email protected]..
    >I am creating a form that has a date field where the
    person has to input a
    > date. Is there a good way to insert a little mini
    calendar in the form
    > where
    > the person simply can click on the date in the mini
    calendar and have the
    > date
    > clicked on feed into the form?
    >
    > Possibly have the calendar popup when the date text
    field is clicked on.
    > Is
    > this something dreamweaver can do?
    >

  • How to get date prompts from one date column

    i have a requirement where i have to filter the data between two date prompts. i have only one date column and the date in the prompts shuld be selected by calendar.
    i have seen may approaches to do this and i got one where two dummy date columns should be declared in repository and used to define the date prompts.
    but using other methods i could not get the calendar option in prompt.
    but is there any other way to get the prompts with calndar selection without defining the dummy columns in repository
    thanks

    you can do that first select the date column you want to use in dashboard prompt then select another column and in the dashboard prompts then open the fx of the date prompt you first selected copy that and paste it in the second column and in the control section click on calender it will work you can use same date column as two prompts with out creating new column.

  • Help needed with calendar prompts!!

    hi ..
    I have an issue in displaying the date difference between the user selected calendar prompt date and the time period date.
    TIMESTAMPDIFF(SQL_TSI_DAY , Fact.due_Date, @{selected_date}{CURRENT_DATE}) works fine,
    But when user selects a date from the calendar prompt, date format is not matching. Obiee uses YYYY/MM/DD but the calendar returns 'MM/DD/YYYY' as a character.
    Any idea how to cast a date function from MM/DD/YYYY to YYYY/MM/DD ??
    I tried using Evaluate, it hangs up the BI server. So is there any alternate way to achieve this??

    Hi,
    I had faced a similar issue:
    My work around was
    the date prompt column was cast to date in dashboard promt and set as calender control. The date value captured in presentatiion varaible 'date' and in the report the below calcuation on the presenation variable was done.
    calculation posted below for ur help.
    WHEN 'week' THEN (TIMESTAMPADD(SQL_TSI_DAY, DAYOFWEEK(EVALUATE('TO_DATE(%1,%2)' AS DATE,'@{date}','dd/mm/yyyy') )*-1+2,EVALUATE('TO_DATE(%1,%2)' AS DATE,'@{date}','dd/mm/yyyy')) )
    hope this will be of help.
    Aachala

  • Calendar Prompt in OLAP Universe does on resolved.

    Hi,
    I am using BO XI 3.1 with latest fix pack.
    I have created a OLAP universe based on SSAS 2005 Multicube  for reporting using WebI.
    I have a date field in my database but when i but when i created a Universe based on that cube the date field became of type STRING. One of my requirement is that i want a calendar popup in my WebI report when i create a filter on top of that date field.
    So i manually changed the type to Date format in Universe Designer in order to see the calendar popup in webi report.
    My concern is when i select a date value from the calendar it does not work and i cannot see the data for that date if though the data exist for that. But when i manually enter the date value for that filter changing back the data type as CHaracter in the Universe it works and i can the see the data . The date format i am using is M/D/YYYY which is the same as calendar prompt.
    Why we notice this such behavior for the date field  in the WebI and every time i want a  calendar prompt i have to change the date type to Date and if i have to manually enter i have to change to Character.
    Kindly suggest .
    Regards,
    Vibhav.

    Hi,
    this forum is about the Integration Kit for SAP and you are referring to a MSAS OLAP Universe. Would suggest you enter this in the Universe forum.
    regards
    INgo Hilgefort

  • Change format to Calendar Prompt

    Hi, i want to change the format to the calendar Prompt. The problem is that when i select a date the format used is d/m/yyyy and i need the yyyy-mm-dd format.
    I change the function function NQCSetDate(d, m, y) in Calendar.js (located in OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res\b_mozilla) but it doesn t work.
    My OBIEE is installled on a Unix machine and the version is 10.1.3.3.3
    Thanks

    http://108obiee.blogspot.com/search/label/DATE
    Leave NQCSetDate as in the previous state (original), you don't need to edit it for this problem (can be edited for other purspose, for example to show 1-Jan-2000 instead of 1-1-2009).
    If you want yyyy-mm-dd format in the calendar make changes in the localedefinitions.xml, it is well explained here: http://108obiee.blogspot.com/2009/03/how-to-change-date-format-mask-in-date.html.
    dateShortFormat: yyyy-MM-dd (this is used when placing default value to calendar prompt but before picking value from calendar)
    dateSeparator: - (this is used after selecting from calendar)
    dateOrder: ymd (this is used after selecting from calendar)
    If you want to show it with leading zeros (2009-01-01):
    http://108obiee.blogspot.com/2009/05/how-to-add-leading-zeros-after.html.
    Regards
    Goran
    http://108obiee.blogspot.com

  • %edittable / cancel prompt table / calendar prompt

    Hello,
    Context : in my page I have a string field "Value" that can contains a date, a string, ... according to a selection made by the user.
    In my record I have put a %EDITTABLE for prompt table on this field Value. The problem is that sometimes, I don't need a prompt and so in this case, I have the magnifying glass but when I click on it, I have a message saying that no prompt table is set. My question is :
    Is it possible to dynamically put a prompt table with %EDITTABLE to have the magnifying glass and sometimes to have no prompt table so no magnifying glass ?
    Other question, still in the same case where everything is dynamic : the field is a string but can contain a date. Is it possible to set the calendar prompt (the calendar which appears with dates) as prompt table instead of the magnifying glass for a string ?
    Thanks in advance for your help.

    Are you storing the date in a string (varchar2) field? If you can store the date and the string in different fields, or if this is just a derived/work record, then I recommend creating 2 fields, one that is a string with a prompt and the other that is a date. Then, in your FieldChange, RowInit, or whatever event would normally set the %Edittable, show or hide the appropriate field. On your page, place one field over the other so they both appear in the same place on the page when you show/hide the appropriate field.
    Since anything is possible, it is possible to show or hide the magnifying glass or show/hide a calendar prompt. To continue down your same path, investigate the HTML/JavaScript generated by your page and add a new HTML area with JavaScript to show/hide the appropriate type of prompt. I think it is easier to use two fields, but either solution is feasable.

  • How much space a Date , time , TimeStamp column occupy?

    Hi
    what is size of a Date , Time and TimeStamp type ?
    i mean how much bytes they require ?
    Thanks

    Apologies if this posts more than once. I got server errors.
    Laurent:
    Sysdate and systimestamp are actually different types than a date or timestamp column.
    SQL> CREATE TABLE dt (dt DATE, ts TIMESTAMP);
    Table created.
    SQL> INSERT INTO dt VALUES(sysdate, systimestamp);
    1 row created.
    SQL> COMMIT;
    Commit complete.
    DUMP(DT)
    Typ=12 Len=7: 120,106,6,2,17,43,10
    SQL> SELECT DUMP(ts) FROM dt;
    DUMP(TS)
    Typ=180 Len=11: 120,106,6,2,17,43,10,28,185,249,48
    SQL> SELECT DUMP(sysdate) from dual;
    DUMP(SYSDATE)
    Typ=13 Len=8: 7,214,6,2,16,50,17,0
    SQL> SELECT DUMP(systimestamp) from dual;
    DUMP(SYSTIMESTAMP)
    Typ=188 Len=20: 7,214,6,2,20,50,30,0,48,111,78,168,252,0,5,0,0,0,0,0I seem to recall reading somewhere that sysdate is actually a representation of the C struct_t time structure, while a date column is Oracle's internal format. It looks like something similar is going on with systimestamp, and with the date and timestamp casts you are doing.
    The inserts into the table above were done minutes before the selects, but definitely within the same hour. The byte values have no correlation, between the date field and sysdate, nor between the timestamp field and systimestamp, while the the date and timestamp fields are identical to the second. Similarly, the sysdate and systimestamp dumps are identical to the second.
    The vsize function reports the physical storage required for the expression passed. My guess would be that it is implicitly casting sysdate and systimestamp to the equivalent internal representation before calculating the size.
    John

Maybe you are looking for

  • Pro*c multithreaded application has memory leak

    Hi there, I posted this message a week ago in OCI section, nobody answer me. I am really curious if my application has a bug or the pro*c has a bug. Anyone can compile the sample code and test it easily. I made multithreaded application which queries

  • What can I do about an account who's owner has passed away?

    So theres an update on my iMac that my father purchased last year for Garageband, iMovie, and iPhoto. He passed away shortly after buying the it and I received the Mac. I've forgotten  the password we created for his account because its been a while

  • VF03 - Userexit to make column details invisible

    Dear techies, Following is my requirement in tcode VF03 & VF02: In line item details, i need to make data in column 'COST' invisible. I have gone through all userexits avaliable for tcode VF02 nad VF03. But none of them satisfies my requirement. Plea

  • KQL Query - Sharepoint 2013 Search - Filter by empty date value

    Hey, I'm using Microsoft.Office.Server.Search.Query.KeywordQuery class to query the search service. By using the following KQL query, I can get all the crawled items of a specific content type filtered by Expiration Date: (ContentType:"MyContentType"

  • Will the new Express help with this issue?

    In one corner of my house (upstairs and opposite end of house from Time Capsule) I get lousy WiFi reception. My upstairs has a previous generation Express connected to a Ethernet over Powerline extension from downstairs.  The EoPL is plugged into one