Current date as page parameter

Hi,
Anyone knows wether it is possible to pass the current date as a page parameter to a portlet (for example the omniportlet). System variables won't do it.
Thanx
Our portal: www.vcob.be

we have a similiar issue and we use javascript for that purpose, we build an html portlet to acomplish that
hope this help

Similar Messages

  • Please help! Looking for script to insert current date on page.

    I currently use a Dreamweaver Extension that lets you insert
    current date and time on your web page.
    The problem is, I don't know Javascript and cannot edit the
    Javascript codes to "remove the time"
    I only need the current date that will change every day.
    Do you know where I can get this script, I goggled and got
    several but I'm looking for something authentic.
    Also is it possible to have your page validate when you use
    Javascript embedded in your HTML?
    Thanks everyone,
    Patrick

    quote:
    Originally posted by:
    Newsgroup User
    Webethics wrote:
    > The problem is, I don't know Javascript and cannot edit
    the Javascript codes
    > to "remove the time"
    > I only need the current date that will change every day.
    JavaScript generates the date by using the clock on the
    computer of each
    visitor to your site. If a visitor's clock has the wrong
    date, your site
    will also display the wrong date.
    > Do you know where I can get this script, I goggled and
    got several but I'm
    > looking for something authentic.
    I don't know what you mean by "authentic". Date generation in
    JavaScript
    is one of the most basic features of the language, so if it
    works, it's
    "authentic".
    > Also is it possible to have your page validate when you
    use Javascript
    > embedded in your HTML?
    Yes, but you shouldn't embed JavaScript in XHTML.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/
    So mr. Powers are there people that use Javascript Date in
    their page?
    Would you recommend it?
    I could use PHP but I don't know PHP,
    How do I come up with the string in this format, say,
    Wednesday, October 29th, 2008 that will change to a new day
    according to the server time and date.
    Thanks so much for your help and I have two of your books! I
    will be taking PHP classes in December.
    Patrick

  • How to reference application version number and current date in page footer

    Am new to Apex and am creating first app for production users on Apex 4.0.1 ... I notice that Application Builder app itself displays the version number at bottom right of screen .. are there any substitution strings that I can use to get current date and application version in my own Apex app ... or do I need to create e.g Javascript to format the date and create my own substitution string ?
    Any help much appreciated .. thanks !

    I modified the Footer of our Default page template. Used JavaScript for the date, below is the code we use. The very last table is specific to our environment and it would need to be customized for your use or removed if not needed. I am a JavaScript novice so this may be crude but it does the job.
    Jeff
    <table width="100%" cellpadding="0" cellspacing="0"
    border="0">
    <tr>
    <td width="500">
    <script Language="JavaScript">
    <!--
    function GetDay(nDay)
         var Days = new Array("Sunday","Monday","Tuesday","Wednesday",
                              "Thursday","Friday","Saturday");
         return Days[nDay]
    function GetMonth(nMonth)
         var Months = new Array("January","February","March","April","May","June",
                                "July","August","September","October","November","December");
         return Months[nMonth]             
    function GetTime () {
      var curtime = new Date();
      var curhour = curtime.getHours();
      var curmin = curtime.getMinutes();
      var cursec = curtime.getSeconds();
      var time = "";
      if(curhour == 0) curhour = 12;
      time = (curhour > 12 ? curhour - 12 : curhour) + ":" +
             (curmin < 10 ? "0" : "") + curmin + ":" +
             (cursec < 10 ? "0" : "") + cursec + " " +
             (curhour > 12 ? "PM" : "AM");
      return time;
    function DateString()
         var Today = new Date();
         var suffix = "th";
         switch (Today.getDate())
              case 1:
              case 21:
              case 31:
                   suffix = "st"; break;
              case 2:
              case 22:
                   suffix = "nd"; break;
              case 3:
              case 23:
                   suffix = "rd"; break;
         var strDate = GetDay(Today.getDay()) + " - " + GetMonth(Today.getMonth()) + " " + Today.getDate(); strDate += suffix + ", " + Today.getFullYear() + " " ;
         return strDate
    //-->
    </script>
    <script Language="JavaScript">
    <!--
    document.write(DateString() + GetTime());
    //-->
    </script>
    </td>
    <td width="300" class="fineprint"><div align="right">
    </div></td>
    <td width="900" class="fineprint"><div align="right">
    &APP_USER.
    #APP_VERSION#
    </div></td>
    </tr>
    </table>
    <table width="100%" cellpadding="0" cellspacing="0"
    border="0">
    <tr>
    <td width="33%" align="left" valign="bottom"><img
    src="#WORKSPACE_IMAGES#iconseal-rust.gif" alt="NH State Seal" width="25"
    height="25" /></td>
    <td  width="33%" align="center" valign="bottom"><a href="http://www.nh.gov/" class="fineprint">NH.gov</a>
      <a href="http://www.nh.gov/disclaimer.html"
    class="fineprint">Privacy Policy</a>   <a
    href="http://www.nh.gov/wai/index.html" class="fineprint">Accessibility
    Policy</a></td>
    <td width="33%" class="fineprint"><div align="right">Copyright &#169 State of
    New Hampshire, 2007-2010</div></td>
    </tr>
    </table><br />
    #FORM_CLOSE#
    </body>
    </html>

  • OWL with Default Set containting Current Date as query parameter

    Hello Everybody,
    I have a custom BO which mainly consists of a name and a time period (start and end date).
    Now I'd like to create a Default set like
    "Give me all objects with today between start and end date."
    I already tried the following:
    Filling a field using UI-Scripting:
    $data.UIState.Today = $controller.DateTimeUtils.DateNow;
    Copy the field into the search parameter
    executing the query with this search parameter.
    However, I using this approach, I only managed to search for objects matching exactly todays date, but not using greater/lower comparators.
    Furthermore I also searched for a field transformation giving me the current date but did not succeed.
    Does anyone have any ideas how to achieve this or how to get one of the above ideas to work?
    Best regards,
    Ludger

    Hello Ludger,
    That`s what I expected: The fields do not define the interval.
    Therefore you need to define it by yourself via this "less or equal".
    What you can do in the UI Designer at the query definition is to provide an interval
    For the field "CurrentDate" provide
    - SelectOption = "between"
    - Low Value = your start date
    - High Value = your end date
    - Select Option = "include"
    HTH,
        Horst

  • How to display the Current Date on page using ADF Components

    Hi,
    Is there any way to display the system date on a page developed using ADF Components.
    I am thinking of writing the java code to display the date. Just wanted to check is there any pre-defined component of ADF that I can make use of.
    Could anyone tell me how to do this using ADF components?
    Thanks in advance.
    Sivaji....

    Please refer the below link.
    Prompt  with  default  date   (  currentdate-1  and current date-8)
    http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/
    http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/
    Regards,
    Bilahari

  • BIP & trying to auto-set the current date for a parameter

    I'm trying to allow for a date selector as a parameter for one of my reports. This is BIP 11.1.1.5.
    I've set up a field for the parameter and can pass it into the report but want to see if I can auto-fill this field with today's date, and then set the Date From to today and the Date To to 3 days from now. Is this possible? Is there a way to do something like "format-date:sysdate('MM/dd/YYYY');" in these fields? I've attached an image of my fields in my Data Model.
    My image - http://goo.gl/mcXS7
    Thanks.
    Edited by: thejame on Jun 7, 2011 9:38 AM

    Thank You! I came across this before but never saw you have to use the {$ to get to the value.
    {$SYSDATE()$} gets me today's date.
    So can I use these in the BIP's Query Builder or other areas where I want to populate fields?
    Example: I want to use it in the actual report's parameters but it just comes across as "{$SYSDATE()$}"

  • ACCESS CURRENT DATE in IP - FOX formula

    Dear Experts,
                    I need to pass current date as the parameter in the ATRT function but I do not have access to any infoobject of type date. If I try to access the value of a variable defined by SAP like 0dat I couldn't save the formula. Please help.
    DATA ZPM_TODAY TYPE  D.
    ZPM_TODAY  = VARV( 0DAT ).
    The CHECK function results ok but SAVE fails and there is dump in st22 on CX_RSR_COB_PRO_NOT_FOUND . Please suggest.

    I defined a function module in ABAP to return the current date when invoked then. You may try "varv" and define a variable with replacement path pointing to any pre-defined variable that gives you the current-date. Hope it helps
    Suresh Reddy

  • Retrieve current date

    I have the need to retrieve the current date in a parameter, to have the default report in the current date. Anyone knows how is it possible?
    Thanks

    The following is a tiny program that I wrote just to see if I can simulate your problem:
    import java.util.*;
    public class testDate {
       public static void main(String[] args) {
          Date d=new Date();
          System.out.println(d);
    }I am running JDK1.3.1 (but that shouldn't matter) on Windows 98SE and I am in CST. I was able to run the program without any problem at all....even after changing the time zone in my PC to several different time zones. Why don't you give my program a trial and see if you still have the problem.
    V.V.

  • Popup Data Entry Page

    I see a lot of things about Popup LOV pages, but I want to create a data entry popup page. I'd like to have a button on my current data entry page that will popup another data entry page based on the ID of one Page and the I_ID of the next page, which works now, but instead of a regular page, I'd like it in a popup so that you can see both pages at the same time. Any help for that?

    I just recently did this. The first javascript function I used to pop up the dialog. The second function is called from the dialog to close it
    function showProjectPopupLOV(){
    removeEmptyOptions(document.getElementById("P21_PROJECT_LIST"));
    var blueprintId = document.getElementById("P21_BLUEPRINT_ID").value;
    var url = 'f?p=&APP_ID.:7:&SESSION.::&DEBUG.::P7_BLUEPRINT_ID:' + blueprintId;
    w = open(url, "winLov", "Scrollbars=1, resizable=1, width=550, height=650");
    if(w.opener == null)
    w.opener = self;
    w.focus();
    function backToCaller(){
    opener.document.getElementById("P21_CONSULTANT_LIST").focus();
    close();
    .

  • Pages - How to get current date when opening a template!

    I have a stationery template with the date on itl When the template opens can I get it to display the current date.. It so how is that done.

    Yes, and the worst:
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=424&sid=ba144f60f149 4f75c94316b0c7fbff2b&mforum=iworktipsntrick
    If you had Pages previously it should be in your Applications > iWork folder.
    Peter

  • How to display the username and current date in OAF  page Footer region

    Hi,
    I need to display the username and Current-Date in footer region.If anybody knows the procedure then please share with me.
    Thanks
    Divya Agarwal

    Hi,
    Read this Thread:--
    You have to capture the UserName and Date in the Process Request Method of page Controller and invoke a method which will subsequently get and set the value in some attribute.
    String userName = pageContext.getUserName();
    How to populate Current Date and Time in OAF page through CO
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Current date parameter in concurrent program is not not taking current date

    Hi All,
    I have scheduled one concurrent request running very day @21:30 ,one of the parameter passed is current date ,which defined as default value at the time of defining concurrent program.Surprisingly its taking next day date as parameter.Can someone help me resolving this issue.
    From where this current date is taken.
    When I am logged in unix as oracle user and executing following query I am getting follwoing results
    SQL> alter session set nls_date_format='MM/DD/YYYY HH24:MI:SS';
    Session altered.
    SQL> select current_date from dual;
    CURRENT_DATE
    05/25/2010 07:40:11
    SQL> select sysdate from dual;
    SYSDATE
    05/25/2010 07:40:20
    date
    Tue May 25 07:40:35 SAUST 2010
    When I logged in unix as applmgr user:
    SQL> select current_date from dual;
    CURRENT_DATE
    05/25/2010 04:41:17
    SQL> select sysdate from dual;
    SYSDATE
    05/25/2010 07:41:19
    date
    Tue May 25 07:41:04 SAUST 2010
    Unix level date is correct and sysdate is also correct in both cases.
    But current_date when logged in s applmgr user is wrong,is this reason for the issue.
    If so how can I change it
    Version : 11.5.10.2
    Database : 10.2.0.4
    OS : AIX 5.3
    Thanks in advance

    Hi;
    Please check below and see its helpful:
    Scheduled Request Set Using 'Current Date' In Parameters Will Set Parameters One Day Out [ID 242654.1]
    The parameter Argument 2 (GL DATE) does not select the Current Date when schedule [ID 250431.1]
    Regard
    Helios

  • XL - Reporter - To set current system date as the PARAMETER to run a report

    Hi
    Version : SAP 2007 B
    Patch : 10
    Using the XL -  Reporter we had designed a stock report as per the client rquested format. In that Report , we use parameter function to get the start date and End date ( 2 PARAMETERS) for which the report should be generated.
    Using the Report Organizer , JOB was created for the above report scheduling that the report should run daily night 9 Clock and save it in Local Computer.
    Now comes the problem , how to provide the parameter ( Start and End Date - which is nothing but the server date or computer date)
    Is there is any way to set the XL-Reporter Parameter - as current date or server date .
    Thanks

    Hi Balaji,
    Check the following thread its solves your problem
    Re: XL Reporter Date Function
    *Close the thread if issue solved.
    Regards
    Jambulingam.P

  • How to set page number & current date in sqlplus result

    how to set page number & current date in sqlplus result

    Hi,
    Use the TTITLE command. For example:
    SET     PAGESIZE     15
    TTITLE     LEFT  &_date     RIGHT  "Page:" FORMAT 999 sql.pno     SKIP 2
    SELECT     ROWNUM
    ,     ename
    FROM     scott.emp
    ;Output:
    12-Jan-2011                    Page:   1
        ROWNUM ENAME
             1 SMITH
             2 ALLEN
             3 WARD
             4 JONES
             5 MARTIN
             6 BLAKE
             7 CLARK
             8 SCOTT
             9 KING
            10 TURNER
    12-Jan-2011                    Page:   2
        ROWNUM ENAME
            11 ADAMS
            12 JAMES
            13 FORD
            14 MILLER 
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and the results you want from that data. If your question is based on commonly available tables, like those in the scott schema, then you don't have to post any sample data: just post the output.
    Explain how you get those results from that data.
    Always say what version of Oracle (and other relevant softward, SQL*Plus in this case) you're using.

  • Need current date embedded in scheduled request parameter

    Hi Experts,
    Need current date embedded in scheduled request parameter
    I have a concurrent program
    This is scheduled to run every day.
    One of the requests has a parameter that I need to set with the current date (YYYYMMDD), I tried fnd_standard_date, date value sets in the parameter..
    I tried using a SQL Statement (select to_char(sysdate, 'YYYYMMDD') from dual), but it appears to only run this when the request if first submitted and not on subsequent resubmissions. So the date never changes.
    The box is checked to "Increment date parameters each run" but since this is a date value in a regular parameter, it is not getting incremented.
    Any ideas how I can get this value to change every day?
    Please help it's very urgent.
    With Regards,
    Kumar.

    Hi,
    Please see if the following documents help.
    Note: 861953.1 - Request Set Date Parameters Are Not Defaulted As Per Setup
    Note: 339849.1 - Unexpected Behavior Using Increment Date Parameter Each Run
    Regards,
    Hussein

Maybe you are looking for

  • Motion opens and close when we try to open a template

    Me friend and l we are trying to install a motion on his computer it worked. But when we try to opem a template it close by it self. We try to remove the . plist Reinstall The message we got was. The Application motion quit unexpectedly. We did insta

  • Index/Key Insert Design Question

    Assume I am dealing with a customer object, and its properties which I'm attempting to insert into the database; one table called customer, with a key/index called id which is a unique number for each customer. As I understand it, this is a typical s

  • RH8: Bold Text in Paragraph Appears Heavier in Firefox

    Noticed recently that bolded text in a paragraph appears differently in Firefox than it does in IE and Chrome. In Firefox the bold text is heavier. We're creating webhelp output using RoboHelp 8 (8.0.2.208). Note that we have recently upgraded to Win

  • Catching an exception in an JSF page

    Hi, I have made the following example: In my jsf page I have: <a4j:commandButton id="save" action="#{settings.save}" reRender="attributes" /> <h:outputLabel value="Save" for="save" /> <table width="100%" cellpadding="0" cellspacing="0"> <!-- <tr> <td

  • Steps to remove entrie Oracle 10gR2 (10.2.0.4) RAC on linux

    Hi Gurus, We have 10gR2 RAC (10.2.0.4) is running on RHEL5.5 on development servers. I would like to set up 11gR2(11.2.0.3) RAC on these development servers. Could you please let me know the steps to cleanup existing 10g RAC on these 2 node RAC. My e