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

Tags: Business Intelligence

Similar Questions

  • 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

  • In the presentation variable date format

    Dear Guru,

    My guest has a calendar month edit box that is in the format "YYYY / MM". I put this as a variable presentation p_month.

    Now, I need to add 1 month to this presentation variable in the filter, I tried to write the sql code but it's complicated, and it does not work. Could someone help?

    Thank you very much
    Joe

    An approach more:

    using filter based on another request...

    create a query containing the following columns... (Assuming that YYYY / MM column is: A).

    Min (A)

    "and keep the filter on A > ' @{p_month}"
    Save this report with a name: RapportB

    Your main report on A filter should be like this:

    filter on a column > advanced > filter based on another request, now browse the RapportB and then to specify the unique column present in this report to be filtered...

    hope you understand this approach...

  • 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 #.

  • Date format changes in the variable of presentation

    Hello
    I have a problem with the date stored in the variable of presentation.

    I have simple guest with the calendar control (default value date is set to session or deposit to the current date variable). Selected date is stored in the variable of presentation PP_DATE.
    I have a simple report with the title to view the contents of the variable PP_DATE.

    And now the problem.

    When I navigate to the page of dashboard with this report, I will get date of variable PP_DATE in a format (there are difference when I use the variable session or repository). After that I have will push the Start button, I get a different date format of variable PP_DATE.

    Screenshots are stored and described in this PDF file: [PDF with screenshots: https://docs.google.com/uc?export=download & id = 0B2LOPOBteIShMDRmYTJlYTItNmYyZC00ODdkLWE5NjktNzI1N2RlNWMwZjBk]

    There is difference between session variable and repository. When I use the reference variable I'll get "TIMESTAMP."... "the variable PP_DATE, which is the default initialization in variable Repository Manager. I tried to remove the boot by default, but I automatically added after saving changes.
    What is the default value of crimped guest of session variable, I get another date variable PP_DATE format that refers to DATE_TIME_DISPLAY_FORMAT = "yyyy-mm-dd hh:mi:ss.mss" (from NQSConfig.ini). I changed standard value DATE_TIME_DISPLAY_FORMAT ' yyyy/mm/dd hh' to "yyyy-mm-dd hh:mi:ss.mss" because I am reading data from excel, where dates are stored in the format MSSQL. But this isn't the reason for my problem. I have the same problem also with standard DATE_TIME_DISPLAY_FORMAT.

    The result of this strange behavior is that I get errors when I do some calculations (e.g. TimeStampDiff) to the variable PP_DATE. I get the error when I am accessing the dashboard page. Everything is ok after that I will push the Start button.

    You have some tips?

    Thank you

    Kishore Guggilla wrote:

    But I need sometimes current day default value in the command prompt, sometimes first day of the month etc...

    How do you manage that using variables to repository then?

    I have a block of initialization to initialize a few variables to repository.
    Initialization block a 1 day refresh interval.

    Select trunc (sysdate, 'mm'),
    LAST_DAY (trunc (sysdate, 'MM')),
    trunc (sysdate, 'DD'),
    trunc (sysdate, 'YYYY'),
    TO_DATE (' 31,12' | to_char (sysdate, 'YYYY')),
    TO_NUMBER (to_char (sysdate, 'YYYY')),
    TO_NUMBER (to_char (sysdate, 'MM')),
    TO_NUMBER (to_char (sysdate, 'DD')),
    trunc (ADD_MONTHS (sysdate-1), 'MM'),
    trunc (LAST_DAY (ADD_MONTHS (sysdate-1))),
    trunc (ADD_MONTHS (sysdate-2), 'MM'),
    trunc (LAST_DAY (ADD_MONTHS (sysdate-2))),
    trunc (ADD_MONTHS (sysdate,-3), 'MM'),
    trunc (LAST_DAY (ADD_MONTHS (sysdate,-3)))
    of the double

  • 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.

  • PHP convert the variable date of table format

    I can not explain this without showing all the code...

    I have a script which basically scrape information off the myspace site and updates the information in a table.  I then had the script put this in tabular form.  The problem that I'm hoping to get help, I would like to change the date format, and I don't know how I can do this since it is Setup how to loop through the table.  If anyone can show me a better way to do it without a loop or a way to convert the date, I'd be very happy.

    18/06/2009 22:00-Thursday, June 18, 2009 22:00

    <? PHP

    include('simplehtmldom/simple_html_dom.php');

    $myspace_url = "url I'm scraping."

    ini_set ('user_agent', ' scratch/2.5');

    $html = file_get_html ($myspace_url);

    $i = 0;

    foreach ($html-> find ('input [type = "hidden"]') as $k = > $v) {}

    If ($v-> name == "calEvtLocation") {}

    $shows [$i] ['location'] is $v-> value;.

    }

    If ($v-> name == "calEvtCity") {}

    $shows [$i] ['city'] is $v-> value;.

    }

    If ($v-> name == "calEvtState") {}

    $shows [$i] ['State'] is $v-> value;.

    }

    If ($v-> name == "calEvtDateTime") {}

    $shows [$i] ['date'] is $v-> value;.

    $i++;

    }

    }

    ? >

    < table border = "0" align = "center" cellpadding = "8" cellspacing = "0" >

    < b >

    < e style = "text-align: left;" do-size: 12px; "> < /th > venue

    < e style = "text-align: left;" do-size: 12px; ' > city < /th >

    < e style = "text-align: left;" do-size: 12px; "> Status < /th >

    < e style = "text-align: left;" do-size: 12px; "> date/time < /th >

    < /tr >

    <? PHP

    foreach ($shows as $show)

    {

    echo "< tr >";

    foreach ($show as $item)

    {

    echo "< td > < table > $item";

    }

    echo "< /tr >";

    }

    ? >

    < /table >

    Move the $i ++ should not have any effect on the way in which items are displayed thereafter.

    How I would deal with the table is like this:

    ";
    }
    ?>
    
  • convert date format period

    Hi all

    Here are my existing query which I run another tool to extract data from oracle-

    Select * from transactionTbl

    WHERE

    DATE > = TO_DATE (' $(vAppStartDate)', "DD/MM/YYYY")

    AND DATE < = TO_DATE (' $(vAppEndDate)', "DD/MM/YYYY")

    variables-

    -vAppStartDate = 06/01/2014

    -vAppEndDate = 30/06/2015

    Rather than use the Date column in the WHERE condition, I want to use PeriodID of column existing in the same table, to make the query faster.

    The period column is in below format.

    PeriodID format-> 201294 //means 2012Q 4. So 9 means Q

    Since I'm on variables, the values are always to the date format, so my requirement is first change variable date from periods of format.

    I wrote the pseudo-code, because I of course know how to convert date format periodID. Q also means in the periodID 9.

    Select * from transactionTbl

    WHERE

    PeriodID > = period_function (TO_DATE (July 1, 14 ',' DD/MM/YYYY '), 'YYYYxx')

    AND PeriodID > = period_function (TO_DATE (July 1, 15 ',' DD/MM/YYYY '), 'YYYYxx')

    Please help me with the query.

    Thank you!

    Calling a user-defined function is likely to slow down your query.

    What's the problem with just using regular date formatting strings for example

    SQL > select to_char (to_date('15/09/2014','DD/MM/YYYY'), 'YYYY "9" Q') of double;
    TO_CHA
    ------
    201493

    1 selected line.

  • Date formats incompatible of apex between weekly and daily calendar

    I use the Apex ajax calendar to view activity.  My user has noticed that the date format changes between the weekly and daily life, that is to say the 07/08 (MM/JJ) and 08/07 (JJ/MM) respectively.  Is this a bug or is at - there somewhere some control of date format?

    I use the following to call pages

    Weekly

    JavaScript:apex.widget.Calendar.ajax_calendar ('W', 'same'); void (0);

    Every day

    JavaScript:apex.widget.Calendar.ajax_calendar (', 'same'); void (0);

    Thank you

    Drew

    Request Express 4.2.3.00.08

    Hello

    You can check your calendar template (shared components-> models-> calendar or go to the page that contains the schedule-> tree of shared components-> choose the calendar), if it uses the same date format for weekly view masks and every day? You will see variables substitution as #MM #, #DD # and so on.

    Concerning

    Patrick

    Member of the APEX development team

    My Blog: http://www.inside-oracle-apex.com

    APEX Plug-Ins: http://apex.oracle.com/plugins

    Twitter: http://www.twitter.com/patrickwolf

  • 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

  • Possibility of variable data

    I'm creating a single sales for a customer presentation. They would like to be able to customize the presentation for each individual contact by customizing a title with their name, as the variable data. Is it possible to do this without having to resubmit a publication every time? Perhaps by linking the presentation to a HTML file that is updated with each sales pitch?

    You can use Web content Overlay to dynamically load the content using a URL.

  • Date formatting cpInfo...

    Hi all

    I have a certificate that I need to set a date for the formatting with the 'MONTH' in January, February, March... format y at - there a way to do this? It seems that CP only spit numbers... i. e 03/08/2012...this is not the format for my project...

    I'm hoping (even if possible) that I don't have to use advanced Actions (i.e. IF cpInfoCurrentMonth IS EQUAL to '1' ASSIGN January... for all 12 opportunities)... and using this approach would imply I have to use three variables (cpInfoCurrentMonth, cpInfoCurrentDay, and cpInfoCurrentYear) as separate text boxes to create the DATE format, I want to...

    ... I probably just answered my own question but you never know

    Thank you.

    You can either use advanced Actions, but I prefer JavaScript for things like the date conversion.  This is nice JS utility funciton that Steve Levithan set in place:

    http://blog.stevenlevithan.com/archives/date-time-format

    Jim Leichliter

  • Group by month/year DATE FORMAT column

    Hi Chaps,
    I have a recordset that retrieves data from a database and then presents the data in a table. The data are grouped by "PROJID', which is repeated for each"PROJID"with a control to show/hide to show all the"jobid"relating to this particular"PROJID.
    That's what I have so far:

    Code:
    SELECT              
    tbl_projects.projid,
    tbl_projects.projtitle,
    tbl_projects.projdue, DATE_FORMAT(tbl_projects.projdue, '%%d/%%m/%%Y') as projdue_format,
    tbl_projects.projtype, 
    tbl_projects.projinvtype,
    tbl_projects.FK_custid,
    tbl_projects.projcompletedate
    tbl_languaget.langtname,
    tbl_doctype.doctypename,
    tbl_jobs.jobid,
    tbl_jobs.FK_projid,              
    tbl_jobs.jobname,              
    tbl_jobs.FK_langid,              
    tbl_jobs.jobpages,              
    tbl_jobs.jobshipped,
    tbl_jobs.jobinvsent,   
    tbl_jobs.jobtranslatorcharge,    
    'tbl_jobs' as fromtable,
    tbl_customers.custid,
    FROM tbl_projects  
    INNER JOIN tbl_jobs              
    ON tbl_projects.projid=tbl_jobs.FK_projid  
    INNER JOIN tbl_languaget              
    ON tbl_languaget.langtid=tbl_jobs.FK_langid  
    INNER JOIN tbl_customers              
    ON tbl_customers.custid=tbl_projects.FK_custid
    INNER JOIN tbl_costs
    ON tbl_costs.FK_custid=tbl_customers.custid 
    INNER JOIN tbl_doctype
    ON tbl_doctype.doctypeid=tbl_jobs.FK_doctypeid
    WHERE tbl_projects.projstatus='Complete'        
    AND tbl_projects.projinvtype='Costing Sheet'
    AND langtname!='TH'
    AND langtname!='ID'
    AND langtname!='KO'
    AND langtname!='JP'
    AND jobinvsent='y'
    AND FK_custid = %s
    ORDER BY projid ASC", GetSQLValueString($colname_rsInvPending, "int");
    $rsInvPending = mysql_query($query_rsInvPending, $conndb2) or die(mysql_error());
    //$row_rsInvPending = mysql_fetch_assoc($rsInvPending);
    $totalRows_rsInvPending = mysql_num_rows($rsInvPending);
    Code:
    // REPEAT - FOR EVERY PROJECT
      <?php
      $previousProject = '';
      if ($totalRows_rsInvPending > 0) {
      // Show if recordset not empty
        while ($row_rsInvPending = mysql_fetch_assoc($rsInvPending)) {
          if ($previousProject != $row_rsInvPending['projid']) {
          // for every Project, show the Project ID
      ?>
    Code:
    // SHOW/HIDE CONTROL
        <tr>
        <td colspan="9" class="highlight"><span class="blueBold"><a href="#" onclick="toggle2('proj1<?php echo $row_rsInvPending['projid'] ?>', this)"><img src="../../Images/plus.gif" border="0" /></a> <?php echo $row_rsInvPending['projid'] ?> - </a></span><span class="blueNOTBold"><em><?php echo $row_rsInvPending['projtitle'] ?></em></span></td>
        </tr>
    Code:
    // SHOW/HIDE 
        <?php $previousProject = $row_rsInvPending['projid']; } ?>
        <tr class="proj1<?php echo $row_rsInvPending['projid'] ?>" style="display:none">
        <td>column 1</td>
        <td>column 2</td>

    What I want, is to put in another grouped by stage, where the "PROJID" themselves is in a region of show/hide, grouped by "projcompletedate" (year/month). 'projcompletedate' is in the DATE format, but how to get to PHP/SQL to make the month and year and then group them correctly?

         0) {
          // Show if recordset not empty
          do  {
          if ($previousMonth != $row_rsInvPending['themonth']) {
          // for every Month, show the Month Name
       ?>
        
  • In one of your rows in the table, you have style = "" display: none; "." This would prevent the entire line to be displayed, even if she had some data in it.

  • The variable "date" is also defined in the regular transition is used?

    Hello

    I needed to understand if the variable "date" is also set when the due transition is used. The reason I ask is the scenario that we saw:

    1. There is a regular transition form an interactive activity on an automatic
    2. the automatic was an error of syntax (typo) in a SQL statement
    3. when the proceedings reached this automatic... instance abandoned... [level of process Exception Management is not present :(]

    My first thought was that there is an instanceExpiration exception, but wasn't sure.

    A son would be nice...

    As you know, there are two deadlines:

    1. a delay of the process defined by the predefined variable of time and
    2. a period for one instance of a work item within an Interactive activity which has a regular transition.

    The column "Deadline" by default in the workspace shows one of two deadlines that will expire the first.

    Dan

  • CS3 breaks date format in MS Access on insert record

    It's strange.

    I worked on one of my old sites, built in MX 2004. After updating the record insertion on the page using CS3 behavior, I noticed that my date fields are messy. My LCID is set to 2057 UK date (dd/mm/yyyy) format, but it is now getting back to mm/dd/yyyy.

    I recall it being a 'Date, MS Access' option in the ' submit under "fall down on the insert record behavior MX 2004, but this seems to be missing.

    I have nothing on the output allows to reverse the change, so now my old disks display dates in the correct format, and new records have the wrong date on them.

    And of course, you don't notice this error before the 12th of the month, after which the system can decide who should be the month.

    So my clients resonate me up to two weeks after that day to tell me that their application is broken. Arrgh.

    Is there an extension for this problem / add the necessaru to the insertion of a plug or someone behavior at - it a snippet of code that works?

    Is this something a bug in CS3?

    OK, I found a solution quick and dirty, which is basically does not submit the field as a date.

    I found that I needed to change this line of code:

    Quote:
    MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param5", 135, 1, -1, MM_IIF (UploadFormRequest ("article_date_updated"), UploadFormRequest ("article_date_updated"), null)) ' adDBTimeStamp

    with this:

    Quote:
    MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param5", 202, 1, 150, MM_IIF (UploadFormRequest ("article_date_updated"), UploadFormRequest ("article_date_updated"), null)) ' adDBTimeStamp

    The difference being these settings: "135, 1, - 1" becomes "202, 1, 150".»

    I don't understand what these are (can't find a reference for them), but the third should be the length of the string, the first of the type of data (e.g. variable text, number, date) and one in the Middle, unsure, whether his need maybe?

    If the first of these parameters can be set for the exact date, it would be the right solution, but I don't know if this is possible.

    Anyway, the work around is OK - condition that there is sufficient validation on the form to choose the invalid date formats.

  • Maybe you are looking for

    • Pressing FN + F5 message: module IGFXEXT has stopped working

      Pressing FN + F5 message: module IGFXEXT has stopped workingI use VistaModel - Portege M700

    • How to remove avg safe search

      I can't get rid of AVG safe search, I uninstalled avg and it always appears when I search from the navigation toolbar.

    • Help... Recovery disc does not

      I bought the set of recovery, and as shown in the disk system load first.  I get as much as you please wait for a moment with the rotation of the circle, but no father happens to allow me to insert the first recovery cd.

    • machine virtual Windows 7 for xp, files became broken in xp

      Load Rockwell software to Virtual XP and after addition of XP updates for windows that it wiped out the files. Now I can't find the files that were loaded, I did a search, and windows cannot find files, even in deleted files. Where are the files stor

    • M1319f mfp: m1319f -! Light, not printing

      Printer worked without problem before a short power failure. I tried all the steps mentioned in other posts. The printer will be turned, makes noises during the warm-up - then the! lights up and there is nothing on the screen.

    Venue City State Date/Time
    {$show['Location']}{$show['City']} {$show['State']}{$show['Date']}
    ,
    ', this)"> -