Script for current date

I have a document javascript that used to work. It prints the current date upon first opening the PDF into a field called Today. Thereafter, the date does not change no matter how many more times the PDF is opened.
var f = this.getField("Today");
if (f.value == "") f.value = util.printd("mm/dd/yyyy", new Date());
I'm using Acrobat 9 Pro, and for some reason this script no longer works in version 9. If anyone can assist to correct this sript, I would greatly appreciate it.

It works fine for me in Acrobat 9.2.0 (under Windows 7). If the field is empty when the form opens, it inserts the current date. If the field is not empty, it does not do anything.
Are you absolutely sure that the field 'Today' is empty when you open the PDF?

Similar Messages

  • How to Flip the Sign using Calculation script for historical data

    I am currently using Essbase 9.3.1. Its required to flip sign for a specific set of accounts for that i am currently using UDA's to flip the sign.
    But now i need to flip the sign for the historical data too. Is there any possible way to flip the sign using calculation scripts for historical data. Kindly let me know your suggestions.
    Many thanks in Advance...
    Edited by: [email protected] on Jul 30, 2009 9:37 PM
    Edited by: [email protected] on Jul 30, 2009 10:58 PM
    Edited by: [email protected] on Jul 30, 2009 11:01 PM

    Of course there is. This is the kind of calc script that only gets run once, so make usre you test it well before doing it on production and make a backup of production before doing it.
    It would be something like
    Fix(time frame, accounts to be flipped, level zero other dimensions)
    actual = actual * -1;
    EndFix
    Cal dim dimensions
    Note, I chose actual, but you could do it for any dimension that has a single or only a couple of members. What ever dimension you choose to do the calculation on, it can't be included in the fix statement

  • Dynamic Date Calculation for Current Date - 1

    I am trying to create a variant with a dynamic date calculation attribute.
    I am following the instructions as they are posted to the web but I get an error message.
    I want to get all data EQ to the current date -1
    In the object for selection screen I enter a D for Selection Variable, for Name of Variable I enter an I to include specific values and the option EQ for current date +/- ??? days.  Then I enter 1- for the number of days.  I have tried to enter this many times and in many ways but it doesn't work.  I keep getting this message "lower limit of interval is greater than upper limit"

    Hi,
    Welcome to SDN.
    Selection-screen has four values -
    SIGN
    OPTION
    LOW
    HIGH
    Pass your date value in the option low for the screen.
    Sign you have already pass as I and option as EQ.
    Regard,
    Amit
    Reward all helpful replies.
    Can you paste your code here.
    Message was edited by:
            Amit Khare

  • Create a formula variable using replacement path for current date

    Hi All,
    I created a formula variable using replacement path for current date.
    But when i used this variable am getting an error message saying .
    " This Variable cannot be used in this query".
    Could you please let me know the reason?
    Thanks,
    Zehra

    Hi All,
    Thanks for all your help...
    I just found a solution via the below link
    in Bex Formula variabel, Current calander day(sap exit) missing.
    Here he is trying to use the existing formula variable.
    My doubt here is, Even i could not find this varaible in BEX formula variable, But could see this in BI Content path as mentioned in the above link.  DO i have to transport this varaible , or i simply can activate it in production?
    I just could find this in BI Content but not in MetaData Repository.
    Thanks,
    Zehra

  • Automate script for import data

    automate script for importing data to the cube from txt files.
    Ex: - I have below 2 files for import
    aaaa.txt
    bbbb.txt
    For the above simply i can write esscmd or Maxl script for importing files .
    Esscmd :
    IMPORT 3 "\aaaa.txt" 4 "N";
    IMPORT 3 "\bbbb.txt" 4 "N"
    my question , suppose if some more files added to the existing files, for example cccc.txt got added ,how can i write a code for this?

    Well I guess this will do
    dataDir=" " # Give the data directory path here
    maxlFile="maxl1.msh"
    cd $dataDir
    for file in `ls *` ;
    do
    maxlStmt="import database sample.basic data from data_file '$file' using rules_file 'xxx.rul'
    on error write to 'xxx.log';";
    printf $maxlStmt >> $maxlFile
    done
    ls * is lists all the files in the directory. If you want to be more specific and if you yhink tat your data folder may contain more files then you can use "ls *.txt" if your file extension to load is txt.
    Well I haven't tested this as I am on vacation...So you can just follow the similar way.
    This is only for the 3rd point which you said

  • "Exp" utility script with current date dmp file format

    Dear All,
    I want to creat a window batch file script "oralce database 11gr2" in such a way that dmp file automatically created in c:\test folder with oralce _sid and current date.
    C:> exp file=c:\test\ora-sid_date_format.dmp owner=test
    Any help would be appreciated.
    Regards,

    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\comp>exp system/sm file=c:\%ORACLE_SID%_%date%_forma
    t.dmp owner=test
    ^C
    C:\Documents and Settings\comp>exp system/sm@test file=c:\%ORACLE_SID%_%date%_
    format.dmp owner=test
    Export: Release 10.2.0.2.0 - Production on Wed May 19 12:41:11 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit
    Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user TEST
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user TEST
    About to export TEST's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export TEST's tables via Conventional Path ...
    . . exporting table AGENTSINFO 7 rows exported
    . . exporting table ARCHIVE_SETT 3 rows exported
    . . exporting table ARC_CPAYMENT 0 rows exported
    . . exporting table ARC_CREDIT 2596 rows exported
    . . exporting table ARC_DEBET 4 rows exported
    . . exporting table ARC_DPAYMENT 4 rows exported
    . . exporting table BRANCHESCASH 2 rows exported
    . . exporting table CANCELCOUPON_OPRCODES 17 rows exported
    . . exporting table CHECK_PAYMENTREQUEST 36 rows exported
    . . exporting table CORPCODES 0 rows exported
    . . exporting table CREDIT_MESS 0 rows exported
    . . exporting table CREDIT_PAYMENT 0 rows exported
    . . exporting table CURRENCIES 1 rows exported
    . . exporting table DEBET_MESS 0 rows exported
    . . exporting table DEBET_PAYMENT 0 rows exported
    . . exporting table DIRECTORY 1 rows exported
    . . exporting table MAILSETTINGS 2 rows exported
    . . exporting table PAYCOUPON_OPRCODES 22 rows exported
    . . exporting table PAYMENT_OPRCODES 21 rows exported
    . . exporting table PAYMENT_REQUEST 53 rows exported
    . . exporting table PAYMENT_RESPONSE 53 rows exported
    . . exporting table REP_CANCELCOUPON 0 rows exported
    . . exporting table REP_PAYCOUPON 70 rows exported
    . . exporting table REP_VERIFYCOUPON 121 rows exported
    . . exporting table REQ_CANCELCOUPON 0 rows exported
    . . exporting table REQ_PAYCOUPON 108 rows exported
    . . exporting table REQ_VERIFYCOUPON 124 rows exported
    . . exporting table VERIFYCOUPON_OPRCODES 18 rows exported
    . exporting synonyms
    . exporting views
    . exporting stored procedures
    . exporting operators
    . exporting referential integrity constraints
    . exporting triggers
    . exporting indextypes
    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting materialized views
    . exporting snapshot logs
    . exporting job queues
    . exporting refresh groups and children
    . exporting dimensions
    . exporting post-schema procedural objects and actions
    . exporting statistics
    Export terminated successfully without warnings.
    C:\Documents and Settings\chinar>date
    The current date is: 19.05.2010
    Enter the new date: (dd-mm-yy)
    C:\Documents and Settings\comp>SET ORACLE_SID
    ORACLE_SID=SB
    C:\Documents and Settings\comp>
    and result is SB_19.05.2010_format.dmp

  • Date rule for current date

    Hi.
    I have a date type for which I would like to fill DATE FROM field with current date, but the field DATE TO should stay empty for manual entry.
    I defined the following rule which I assigned to my date type but the problem with this rule is that it fills both fields (date from and date to) with current date.
    <?xml version="1.0"?>
    <TimeRule>
       <TimeRuleSource>
          <ruleline>
             <AssignTimeExp displaytype="AssignTime">
                <VarTimeExp displayType="VarTime"
                            name="RESULT"
                            position="F">
                </VarTimeExp>
                <ConstLocTimeExp displaytype="ConstLocTime"
                              date="now"
                              time="000000"
                              timeunit="DAY">
                   <VarObjectExp displaytype="VarObject" name="SYSTEM"/>
                </ConstLocTimeExp>
             </AssignTimeExp>
          </ruleline>
       </TimeRuleSource>
    </TimeRule>

    solved by other way

  • How to get list of orders for current date.

    Hi,
    My requirement is to get list of orders for the date on which order was created such that I don't have to change the date in my application.
    Every time I run my application it should generate orders created on that current date without manually giving current date.
    This has to be done directly using BAPI and without creating a RFC. 
    I tried with bapi " BAPI_ALM_ORDERHEAD_GET_LIST " using parameter OPTIONS_FOR_START_DATE  but there I can't enter sy-datum and hence, every time I hence to change the date.
    Please tell me if there is any possible way to get fulfil above requirement.
    Thanks.
    Shilpi Agarwal.

    Hi Shilpi,
    This looks simple to me.
    Just create a variant in IW38 with U_your UserId as shown in the picture (Dynamic date selection for Created On set to Current Date)
    The status settings obviously would be
    Jogeswara Rao K

  • How to make an insert script for CLOB data types?

    I need to have an insert script for Oracle 11g where I insert large texts into a CLOB field
    I exported data from a source table using TOAD's export dataset and the insert statements option, so it generates a script of just simple insert into statements with the clob strings in the values clause within single quotes.
    While most of the inserts succeed, several fail with the error: string literal too long
    How can I insert long texts into clobs?
    One workaround I was considering, is maybe breaking up those inserts which are too big, so that it inserts a chunk, and then does an update to append additional chunks? not sure if that would work either
    first wanted to get any ideas from the oracle experts here in case there is a much easier, non-manual labor intensive way.

    Thank you for that informative link, Raj
    I wouldn't be able to use SQL Loader for this though, this is something that gets submitted to a DBA in a request and it must be in a script that can be run in Sql Plus, and it cannot pull it from a table or file.

  • CUIC 9.1.1 Report scheduling issue - getting data only for current date

    Hi,
    CUIC : 9.1.1
    ICM: 9.0.3
    Description:We have CUIC publisher and Subscriber deployed in Cisco UCS C series server. When we schedule a report in Subscriber, we are getting data of current date even we schedule for old dates. Eg. If I schedule a report for yesterday, getting output as today's data. This is applicable for all the historical reports.
    There is no such issue in Publisher.
    Regards,
    Alag

    Try this...
    {TableName.DateField} < DateAdd("d", -2, CurrentDate)
    HTH,
    Jason

  • Displaying Graph for current date

    Hi,
    I want to pass a dynamic value to display graph. Let say I want to display graph for the current date, so that whenever user opens the web page, he sees the data for the current date. Can anyone suggest any solution for this.
    Regards.

    solved by other way

  • Change pointer report scheduling for current dat

    Hi Gurus
    I want to schedule change pointer report RBDMIDOC from current date .
    But i want that This report genrate idoc only for today's changes not for older days.
    Any way to set the Sy-date in Variant??
    or any other idea ..pls suggest.
    Thanks
    SA

    tk

  • Odd Date for Current Date and Time

    I am modifying a column in a list to get current date and time using =TODAY()+NOW() in the calculated field and get a time that is behind by 1 hour but the date is 4 months 114 years ahead (2128). How can I fix this field?

    http://sharepointsolutions.com/sharepoint-help/blog/2011/04/how-to-add-and-subtract-hours-and-minutes-from-date-and-time-fields-in-sharepoint-lists/

  • Problem in sap script for Item data

    Hi Guys ,
    Although I am working in ABAP for last 1 year but I am new to SAP script , This is first time I am doing this -
    I am creating excise invoice profarma and able to print all that data except J_1IEXCDTL ( Item data ) that I have to display in loop ,
    I am using
    LOOP AT ITAB_J_1IEXCDTL.
      CALL FUNCTION 'WRITE_FORM'
           EXPORTING
                ELEMENT = 'ITEM_VALUES'
                WINDOW  = 'MAIN'
           EXCEPTIONS
                ELEMENT = 1
                WINDOW  = 2.
    ENDLOOP.
    My problem is that this is working fine for 1 record but if there are more than 1 record in ITAB_J_1IEXCDTL. , it is showing only first record ,
    Other thing i want to know what is connection of element between Driver program and sap script , Can we give any name to element and it doesnt make any impact on Sap script
    i have done same in my program ,
    Thanks in advance
    Amit

    my problem is solved now ,
    Thanks

  • OTL SQL script for timecard data

    Hi,
    I'm looking for a sql script to create a view to quiry timecard data including status, employee name, hours, project, task, type, etc.
    Any help or pointers will be greatly appreicated.
    Joon

    The query will depend on a lot of factors related to the OTL setup and timecard layouts. You can't just have a generic query.
    --Shiv                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • Unable to open the events in Iphoto or transfer photos to create a book?

    Unable to open the events in Iphoto or transfer photos to create a book. The events are there but I am when double clicking they are not opening up. Also I am unable to drag photos to create a book. Any suggestions??

  • ACH Setup for California Child Support

    Hi, We need to pay by ACH from FI to child support garnishment vendors. I have setup everything correctly but not able to get addenda record 7 correctly as per Bank Of America's requirement. I get the below line in record "7", but it does not show an

  • Dynamic radio buttons in for loop

    Hello, what i am trying to do is create several radio buttons in a while loop, then assign an action listener and also some text to them. After doing this i want to add the radio button to a panel, so far i have the following code: JPanel content = n

  • How is liability relieved column calculated in Account Payables.

    Hello all, I am unable to find the exact definition of Liability relieved. How is it calculated in "Payables Posted Payment Register" report in Account payables module in oracle r12?. I know that its amount of the liability that is relieved after you

  • Authenticator.getPasswordAuthentication: NTLM Caching

    Hello, I have written a subclass of java.net.Authenticator and implemented the getPasswordAuthentication method for use with NTLM authentication. Then I call Authenticator.setDefault(myAuth); At the first web service call to an IIS server the getPass