Formatting a variable Date value containing presentation

Hi all

I created a dashboard command prompt by using a date field and used a presentation variable to store the value of the field date and passing to a report. I want to do an advanced search in the report rather than simple filtering based on the line of dashboard.

When I get the value of the variable of presentation in the report, it as DD/MM/YYYY and string. When I try to mount this Date / timestamp object, it throws the error message indicating that the system if he waits to DD/MONTH/YYYY format (LUN is JAN, FEB etc instead of 01, 02 etc.)

I'm looking for so a way to fit the date field in the prompt to MON/DD/YYYY dashboard so that I can throw directly into the report for any use. I would like to avoid making mainpulation chain with complex if the instructions to convert the MM and MY format in the target report

Appreciate your help

-John CRMIT

Vinciane,

This link has been posted before, but I thought I'd share with you once again: http://download.oracle.com/docs/cd/E12096_01/books/AnyUser/AnyUser_Requests11.html

In this paper, he describes this as the variable format: @{variables.} {} [format] where the value and the format are optional.

In addition, you can find out more about the formats here: http://download.oracle.com/docs/cd/E12096_01/books/AnyUser/AnyUser_Format8.html

I don't have the chance to test it, but maybe this you will get to be.

Thom

Published by: Thom L on April 14, 2009 09:12

Published by: Thom L on April 14, 2009 09:14

Tags: Oracle

Similar Questions

  • Variable Date format of presentation

    Hi all try to format a variable presentation from a Narrative perspective, is it possible that this can be done by using javascript or html that I can stick in narrative mode.

    I want something like ' the date used is @{indate} to the end of the month.

    Date format must also be JJ.mm.aaaa... his currenty displayed as yyyy/mm/dd... I don't want to add the columns in my report and hide as there seems to be a performance lag when I do this.

    Any ideas... Java gurus out there.

    I tried @{indate} [dd.mm.yyyy..] but it does not work.

    See you soon

    Jenny

    Published by: user5470064 on August 18, 2011 09:58

    Published by: user5470064 on August 18, 2011 09:59

    Here you go...

    I tried in my machine and its working very well...

    In the answers--> in the criteria TAB, in the column fx use under formula...

    «case when 1 = 1 then EVALUATE ('TO_CHAR(%1,%2)' as a varchar (20), date ' @{pv_date} {1998-07-05} ',' dd.mm.yyyy "") else ' ORE time Dim ".» End of the name of the month.

    pv_date is the variable of presentation and

    For "ore time Sun. "" MNTH name ' use any column of varchar data type ...

    Hope that's helpful...

    Thank you
    Ashish Gupta

  • Presentation of variable data

    Hi all

    We use the date as a presentation and using this variable presentation of the formula of reports column, but in quick date format shows MM-DD-YYYY, but in the report that it takes like YYYY-MM-DD because of this difference in data format it is in error on the dashboard but works well in the report results. If we change the format of date as tank and giving filter user input, it works fine but users want the prompt value as it is. So, how can we change variable presentation in the changing column formula?

    Tanks in advance.

    Your formula will be like this

    FILTER ("made - order'. "" Orders "to HELP ('lines'. "" Ship date "= (@{date1} {date ' 2013-01-01'}) and 'lines '. (("" Print date "= (@{date1} {date ' 2013-01-01'})))

    Date1 is your variable presentation and make sure there is no space between braces date1 and date braces.

  • a variable date formatting

    I want to format the date value that is in a variable (date_var) to MM-DD-YYYY format and print in a document.

    < td >
    #DateFormat(#date_var#, 'MMMM DD,YYYY') # does not work
    < table >

    does not work.

    How can I do?

    Please try this...

    <>

    var_date = now() >

    <>

    var = "" #t # ">"

    <>

    overwrite filename = "d:\testdate.pdf" = 'Yes' format = "PDF" > "

    #t #.

  • Where does FireFox get the default value for a preference of. What is the format of the file that contains the default value?

    Where does FireFox get the default value for a preference of. What is the format of the file that contains the default value? I need the actual default value for an individual preference.
    Topic: config shows some default values, but I need the source from which everything: config returns to the default value.
    Any help in this direction is greatly appreciated.

    User Agent

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x 64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    The preferences that are not hidden if they have by default are stored in two JavaScript text files in the Firefox program folder
    You can open them in a tab in Firefox through these links:
    resource:///defaults/pref/firefox.js
    resource:///greprefs/all.js

    (702598/forum/1/702598)

  • How to store that value in the variable date?

    Hi Sir,

    I have a request that is


    Select to_char (date ' 1900 - 01 - 01 + 1439 /(24*60), ' DD/MM/YYYY HH24:MI:ss') twice;



    When I run this query, I get this value: 01/01/1900 23:59
    and this value, I'm inserting in a variable that has the date data type.
    Here I put like this:



    v_nshiftmax: = to_char (date ' 1900 - 01 - 01 + 1439 /(24*60), "DD/MM/YYYY HH24:MI:SS");

    While storing get error: not one month valid

    How to store this variable?

    Thank you

    If you are holdiing to variable date why you switch to to_char?

    Just use to_date('1900-01-01','yyyy-mm-dd') + /(24*60) 1439

  • Error: Please enter the date value in the correct format DD-MON-RRRR

    Hi all
    First of all, I am 100% not learning financial oracle no technical information. I'm trying to run a report: - the calendar does not appear in order for me to choose the date - not to mention that when I enter the date IE 10/09/2010 or on 09/10/2010 the system gives me this error "" error: Please enter the date value in the correct format DD-MON-RRRR ".
    Please help me to solve this.

    Thank you

    Please enter date in format 12 October 2010.

    Kind regards
    http://www.oraerp.com

  • SQL error: ORA-01840: value not long enough for the format of the date of entry

    It is a delete SQL in a driver of demand, which gives no error, but does remove all the lines either. I have converted the removal 'from' to ' Select * ' and may see the following error:

    Select * FROM PS_GPDE_DV_TRIG40 WHERE EXISTS (SELECT FROM 'X'
    PS_GPDE_DV_ELIG_MO ELG WHERE ELG. EMPLID = PS_GPDE_DV_TRIG40. EMPLID AND
    ELG. EMPL_RCD = PS_GPDE_DV_TRIG40. EMPL_RCD AND TO_DATE (TO_CHAR (ELG. PRD_END_DT
    "YYYY"). TO_CHAR (ELG. PRD_END_DT, "MM"). '01', "YYYY-MM-DD") =.
    PS_GPDE_DV_TRIG40. GPDE_DV_EVT_EFFDT AND ELG. CAL_RUN_ID = "CAL_0812")
    Error report:
    SQL error: ORA-01840: value not long enough for the format of the date of entry


    The interesting thing is that if I attach a condition of emplid, then the SQL above does not give an error and return lines:

    Select * FROM PS_GPDE_DV_TRIG40 WHERE EXISTS (SELECT FROM 'X'
    PS_GPDE_DV_ELIG_MO ELG WHERE ELG. EMPLID = PS_GPDE_DV_TRIG40. EMPLID AND
    ELG. EMPL_RCD = PS_GPDE_DV_TRIG40. EMPL_RCD AND TO_DATE (TO_CHAR (ELG. PRD_END_DT
    "YYYY"). TO_CHAR (ELG. PRD_END_DT, "MM"). '01', "YYYY-MM-DD") =.
    PS_GPDE_DV_TRIG40. GPDE_DV_EVT_EFFDT AND ELG. CAL_RUN_ID = "FM_CG_0812")
    and emplid = "1234"

    now, if the number of lines is identified (by giving more number of emplids), it begins to give the error when the number of rows returned is greater than about 30. It is completely independent of what employee is used, so there is no question of data dependence.

    Function optimizer cost is off and a subquery nest is off on the init.ora file

    subquery UNNEST= false

    optimizercost_based_transformation = off


    I don't know if it has something to do with this problem.

    Explanations would be welcome!

    Thank you
    Vikas

    I think it is question of data combined with a not very sensible date format mask (it could fail when the null data, because of your concatenation with '01' and work when not null data).
    Have you tried with a simple TRUNC?

    Your code:

    ...TO_DATE(TO_CHAR(ELG.PRD_END_DT, 'YYYY') || TO_CHAR(ELG.PRD_END_DT , 'MM') || '01' , 'YYYY-MM-DD') =PS_GPDE_DV_TRIG40.GPDE_DV_EVT_EFFDT...
    

    After change:

    ...TRUNC(ELG.PRD_END_DT , 'MM') =PS_GPDE_DV_TRIG40.GPDE_DV_EVT_EFFDT...
    

    Nicolas.

  • Formatting string to date in BPEL

    Y at - it a way to format a string to date in BPEL value.

    I would date a string and I need to push this date value in Oracle data to a field that is of data type Date. I don't see no function in BPEL, which is allowing me to do.

    For example my entry of BPEL is ' 01/01/2010' and I need to convert this string in the variable of type date and assign one of the fields in one of the tables in the Oracle database.

    I use xp20:format - dateTime function, but it is also to give me the time that I am not able to introduce into the database of the field is specified as the date.

    I'm doing this conversion in the allocation and transformation process.

    Thank you
    Arun-

    Published by: user626948 on August 28, 2008 22:40

    I guess you are trying to insert in the database through the database adapter. The DB adapter always represents a database as XML dateTime date. The default format to create a dateTime is YYYY-MM-DD' you hh. To create a dateTime valid object to be inserted into your database with the given substring you would end up with an expression such as:

    XP20:format-DateTime(Concat(Substring('01/01/2010',7,4),'-',SUBSTRING('01/01/2010',1,2),'-',SUBSTRING('01/01/2010',4,2),'T00:00:00'))

    assuming that 1 January 2010 is in MM/DD/YYYY format. In the expression builder you will probably replace the 1 January 2010 "with a reference to a variable that contains the date value.

    Kind regards
    André Jochems

  • The use of the repository variable date in filter expression

    Hi gurus

    I get the error using repository variable date in filter expression. I use the formula below

    filter (with the HELP of Fact.calls"Sun Time".) ("' Fiscal months end date" = VALUEOF ("month_start"))

    I am getting below error

    The formula syntax is not valid.
    [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 22024] A comparison is performed between incompatible types. (HY000)
    Publ. SQL: SELECT filter (fact. Calls by using "Sun Time" ". Fiscal months end date"= VALUEOF ("month_start")) 'call DATA.

    Then I tried the below format I still get the error

    filter (with the HELP of Fact.calls"Sun Time".) "" Fiscal month end date "= DATE'(VALUEOF ("month_start"))") "

    The formula syntax is not valid.

    [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 46047] DateTime (VALUEOF("month_start")) (VALUEOF("month_start")) value does not match the specified format. (HY000)

    Publ. SQL: SELECT filter (using "Sun Time" Fact.Calls. ("' Fiscal months end date" = DATE '(VALUEOF ("month_start"))') 'call DATA.

    Please let me know what I'm missing or what is the correct syntax of same using the repository of date variable.

    Thanks in advance

    Concerning

    @li

    filter (with the HELP of Fact.calls"Sun Time".) ("' Fiscal months end Date" = CAST (VALUEOF ("month_start") date))

    Try this

    mark, if this can help

  • Error of variable data Type.

    I have a quick question. I'll put up a variable with a data type of number, when I declare the variable, it has a default value.

    I am trying to transfer data to the variable to an input text box but I get an error when I run the movie. I tried both a text entry box and a dynamic text box, but they both produce the same error.

    If I remove the variable declaration seizure figures series film and it updates the variable data but everything I read is not a good practice.

    I enclose the code, could someone please help me. I don't remember having such problems with ActionScript 2.

    Thanks for the help.

    Code:

    Shape: rectangle var;

    thick var: number = 2; line thickness
    var color: Number = 0x000000; Contains the value of color

    myButton_btn.addEventListener (MouseEvent.CLICK, onClick);

    function onClick(event:MouseEvent):void
    {
    Color = colorField_txt.text; (Line 11)
    thickness = lineThick_txt.text; (Line 12)
    Rectangle = new Shape();
    rectangle.graphics.lineStyle (thickness, color,. 5);
    rectangle.graphics.drawRect (10, 10, 100, 150);
    addChild (rectangle);
    }

    myButton_btn.buttonMode = true;


    ERROR MESSAGE:

    1067: constraint implied to a value of type String to a type unrelated to number. (Refers to line 11)
    1067: constraint implied to a value of type String to a type unrelated to number. (Reference to line 12)

    Thanks again for any help.

    Mike

    the text property of a textfield is a string, so to put this string in a variable of type number, you must first convert it to a number to
    for example.
    thickness = Number (lineThick_txt.text);

    ActionScript 2 performs this conversion automatically.

  • Anyone know how to enter values containing / by the numbers?

    Anyone know how to enter values containing / numbers?  I am trying to enter values of blood pressure requiring this symbol.  Thank you

    You can force numbers does not interpret the value as a number by typing the single quote... like this:

    120/72

    the column text format or

    or enter systolic diastolic and columns in then next:

    Systolic

    Diastolic

    120

    72

    124

    80

  • Date field format like: name/Date/month day

    Is there a way to validate a field 'date' to display a date in the form: Tuesday, July 5, 2016 instead of 05/07/2016? Even if abbreviated day (kills instead of Tuesday) name is "very well. I can't find out how to get in shape in this way. In addition, most date formats also have a value of time associated with them. I don't want / need time in this area.

    Just to try to make it clear!

    1. Add a Date/time field

    2. click on "templates...". '--> 'View' (in the 'Field' tab in the 'object palette")

    3. Enter the date {EEEE, MMMM D, YYYY} in the entrance area of 'model '.

    In my view, there is a preset that is almost identical to that of the predefined display templates aswell.

  • Display content based on comparable date values

    I hope someone can help with this one.

    I'm used to using something like this:

    <?php if ($row_rsProductA['LastUpdated'] > 0 AND $row_rsProductB['LastUpdated'] > 0) {  ?> Content to display if Product A and Product B have both been updated. <?php } ?>


    But how can I do to display the content according to which the date value is the most recent?

    I tried this:

    <?php if ($row_rsProductA['LastUpdated'] < $row_rsProductB['LastUpdated']){ ?> Content to display if Product A was updated more recently then Product B. <?php } ?>


    But it doesn't seem to work.

    If someone could post how to achieve this goal, which would be very much appreciated.

    Thank you.

    First, your comparison operator is pointing the wrong way. If A is more recent than B, then it is greater than B, no less.

    Other that that, we do not have enough information to see the problem. You can provide more explanation and code.

    Dates are stored in this format? AAAA-MM-JJ

    This is the right way to store dates in the database, and they must be stored using the date data type.

  • Parameter IN or OUT to missing index: 1 using the variable date ODI.

    Hello

    I created the variable of data type date as EXTRACT_FROM_TS and also the default value for this.
    Now I use this variable as a filter in the source table in the design of the Interface as below...
    LAST_UPDATE_DATE > = #p_extract_from_ts where LAST_UPDATE_DATE is the field in the source database with date data type not null not forced...
    I have lkm hv used SQL for Oracle...

    Above variable refresh and interface scenario running one after another in ODI package...
    Variable gets refresh every time successfully, but Interface fails at the step of loading data... error message as below...


    ODI-1227: SrcSet0 (load) task fails on the source of ORACLE R12DEV connection.
    Caused by: java.sql.SQLException: parameter IN or OUT to missing index: 1
    + oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1890) +.


    If we remove the filter LAST_UPDATE_DATE > = #p_extract_from_ts, then it works well...

    I do not know why this error pops up on adding filter... Please help on this...


    Thank you
    Roshan Y

    Hello

    put a step DECLARATION above all. After that in my opinion, it is better to put a TO_CHAR().

    Try putting your variable in text mode and change your filter in

    TO_CHAR (LAST_UPDATE_DATE, 'YYYYMMDDHHMI') > = TO_CHAR(#PROJ.) P_EXTRACT_FROM_TS, "YYYYMMDDHHMI")

    In your operator if you click on the variable whose value you see?

Maybe you are looking for