Help with Date/Time Field

Hi,
I'm very new at using Adobe LiveCycle Designer 7.0. For the past little while I've been using it to create a bunch of interactive forms. The only problem I've run into so far is a date and time stamp I've put in that is a Calculated - Read Only field. Only users with Adobe Reader and Professional can see this field. All other users with Adobe Standard can not see this field. Has anyone run into this same problem and know what I'm doing wrong?
The field is using a Runtime Property for the current date and time, instead of a Calculation Script

Thanks Niall,
The format of date and time is fine. When I open the file up myself (in Adobe Professional, not Designer), the form looks great and when others who only have Reader can also see this form fine. For some reason, it's only people with Adobe Standard that don't see this field and this field only in the form. Btw, we are all running Adobe 7.0 currently, but have plans in the future (hopefully soon) to upgrade.
Thanks again.
Rowena

Similar Messages

  • How to compare Date in the TextField or DateTime with Date/Time field?

    Hi All,
    I am facing an issue with respect Date comparinson. I tried to look into entire discussions but failed to get the answer.
    My issue is: I wanted to comparet Date/time field value with Date value which is in TextField.
    The functionality of my form is:
    I have dropdown list which lists the registered customer ids binded to XML Datasource. On selection of the customer id from the dropdown I am displaying customer registration date in the TextField or say Date/Time field as below code in dropdown change event.
    RegistrationDetails.PurchaseEntry.txtRegDate.rawValue = regDataNode.CREATION_DATE.value; (this is TextField control)
    In form I have an Date/Time field in which use will select the date of item purchase. In the validation part I want to make sure that, the purchase date selected in Date/Time field must be greater than the Customer Registraiton Date. I able to compare if the customer selects the date from two different Date/Time fields. But how to compare the dates which one is in Date/Time field and Date is in TextField?
    I have tried using Num2Date and Date2Num with "YYYY-MM-DD"  format to compare but not succeed!
    Can you guys help me in this? Thanks in advance
    Regards.

    Hi,
    Yes, I am able to display the date which I have assigned to the text box. In the message box it show the value as '31/05/2009', since in this format i am assigining the date in the text box.
    Here is the code which I am assigning the value:
    RegistrationDetails.PurchaseEntry.txtRegDate.rawValue = regDataNode.CREATION_DATE.value;
    Do I need to change the format while assigning value in text box?
    You have told that, you have attached your test form, nothing is the reply. Can you repost the file?
    Regards.

  • Problem with Date/Time field in Adobe LiveCycle

    I am trying to create a form that has a check-in and check-out dates. I want the user to enter those dates and then have the form automatically compute how many nights the user intends on staying.
    I have two fields, CHECKIN and CHECKOUT, set up as text fields. My third field, NIGHTS, has the following script to do the calculation:
    var strStart = CHECKIN.rawValue
    var strEnd = CHECKOUT.rawValue
    if(strStart.length && strEnd.length)
    var dateStart = util.scand("mmm d, yyyy",strStart);
    var dateEnd = util.scand("mmm d, yyyy",strEnd);
    var diff = dateEnd.getTime() - dateStart.getTime();
    var oneDay = 24 * 60 * 60 * 1000;
    var days = Math.floor(diff/oneDay);
    this.rawValue = days;
    else
    this.rawValue = 0;
    NOW...this is fine if the user inputs a four-digit year. If not, it's trouble. SO, what I want to do is change the CHECKIN and CHECKOUT fields to the date/time field so they select the date off the pop-up calendar.
    When I make the changes, I can't get the script to work for the NIGHTS field.
    CAN ANYONE HELP THIS NEWBIE?

    Make sure the format of the date strings provided by the calendar is what you are expecting. Or use the "formattedValue" for the input strings.

  • Help With date/time

    In need a time box that will convert “8pm” or “8 pm” or “8:00pm” or “8:00 pm” to military time.  I tried some javascript on exit but it doesn’t quite work.
    if (this.rawValue.length <= 5){
                var space = this.rawValue.indexOf(" ")
                this.rawValue = this.rawValue.substr(0,space) + ":00" + this.rawValue.substr(space,10)

    This is not a trivial problem. I started coding some regular expressions to parse the date string but I quickly realized how difficult it is. The attached contains some of that code. I ended up using drop downs and a radio button to calculate military time (I think it works correctly). It is easier (somewhat).
    // form1.page1.subform2.militaryTime::calculate - (JavaScript, client)
    if (!(form1.page1.subform2.hrs.isNull || form1.page1.subform2.mins.isNull || form1.page1.subform2.meridiem.isNull)) {
      var hrsStr = form1.page1.subform2.hrs.rawValue;
      if (form1.page1.subform2.meridiem.rawValue == "AM") {
        if (hrsStr == "12") {
          hrsStr = "00";
      else {
        var hrs = parseInt(hrsStr);
        if (hrs == 12) {
          hrs = 0;
        hrs = hrs + 12;
        hrsStr = hrs.toString();
      this.rawValue = hrsStr + form1.page1.subform2.mins.rawValue;
    Steve

  • For custom tables should we use UTC for date/time fields

    A general question.
    Can anyone confirm that SAP does seem to be moving towards storing date/time in UTC format?
    We're building custom tables and we're making it a standard to store date/time fields in UTC format.
    Regards,
    Lavaughn

    Hello Lavaughn,
    I can not speak for SAP, but from my personal experience TimeStamps are the state of the art to store time date info in db tables. Even with date/Time fields a conversion to the local timezone is necessary. Of course you can reuse your db definition on dynpros. But since UI and business logic will be divided anyway this is also not really a valid point.
    Best Regards
    Klaus

  • Automatically displaying date and time in a date/time field on form initialize

    Good day all;
    I am trying to have the current date and time automatically be generated in a “date/time” field when the form is opened.
    I went through the forum and found an entry from Srini “ xfa.host.messageBox("" + Date());” . Of course this brought up a system message box with the date and time.
    I then tried “DateTimeField1.rawValue = (“”+date())… This also gave me a system message box with the date and time…
    Please let me know where I am going wrong
    Chomp

    Found the answer... And yes... in was in the "help" section... What can I say I was making it a lot more crazy than I needed to.
    You can use a date/time field to automatically show the current date by using the Runtime Property option in the Value tab of the Object palette.
    When using a current date field, the date updates to reflect the system’s current date each time a user opens the form.
    1.
    In the Library palette, click the Standard category and drag a Date/Time Field object onto the form design.
    2.
    In the Object palette, click the Value tab and select Calculated - Read Only from the Type list.
    3.
    Select the Runtime Property option.
    4.
    View the form in the Preview PDF tab.

  • Default time in Date time field

    Hi,
    I have a date-time field. I want to default the time when a user selects the date.
    Currently when a user selects the date its takes the current system time. i would like it to take the time as 11:00.
    Can you please help me on this.
    Regards,
    Boris

    Hi,
    Check below links:
    Time picker along with Date picker
    Time as User input
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                   

  • Add 1 hour to date/time field in list

    I need some help understanding the Date/Time fields in SharePoint Online. I've created a list with 2 date/time fields... StartDate and EndDate. I want the StartDate field to default to the current date/time. I want the EndDate field to default to the current
    date/time + 1 hour. I've tried numerous formulas in the default calculated value for these fields, and couldn't get it right. I finally got it, but I don't understand why. Here is the scenario:
    ***Note: Time Zone is set to UTC+5 (EST). Current Time is 8:45am
    Attempt 1:
    StartDate - Selected "Today's Date" for the Default Value
    EndDate - Selected "Calculated Value" for the Default Value. Entered the formula
    =now()+TIME(1,0,0) 
    Actual Results - StartDate: 5/28/2014 9:00am  EndDate: 5/28/2014 6:45am
    Attempt 2:
    StartDate - Selected "Calculated Value" for the Default Value. Entered the formula
    =now()
    EndDate - Selected "Calculated Value" for the Default Value. Entered the formula =now()+TIME(4,0,0) 
    Actual Results - StartDate: 5/28/2014 5:45am  EndDate: 5/28/2014 9:45am
    Attempt 3:
    StartDate - Selected "Calculated Value" for the Default Value. Entered the formula =now()+TIME(3,0,0)
    EndDate - Selected "Calculated Value" for the Default Value. Entered the formula =now()+TIME(4,0,0) 
    Actual Results - StartDate: 5/28/2014 8:45am  EndDate: 5/28/2014 9:45am
    So on attempt 3, I finally got the results that I was looking for. However, I don't understand a couple things:
    1. Why does selecting "Today's Date" for the default value, not select the current time?
    2. Why do I needed to offset the hours by 3 to get the current time?
    Thanks in advance,
    cflbasser

    The now function in my environment gives me the time in which the server is housed. If I change the regional settings it does not have an effect on the time. I'm guessing this means that your server is hosted in the UK or somewhere near there and the regional
    settings don't have an effect.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • CDHDR date/time fields vs. changenr field - what's the proper order ?

    I have an application where I need to keep track of all the changes on sales orders.  Got it working pretty well, but in production it has the nasty habit of missing some changes ( it runs every 15 minutes and keeps track of the last date/time of an item it picked up ).  What's worse is that if I do a full run from scratch, the missing stuff appears.
    I think my algolrithim is flawed because of the missing things plus I found two entries who's entries look like the following (all in VERKBELEG) - yes, this is REAL data from my production system:
    changenr          udate     utime
    0004520883     2/27/2007     19:20:24
    0004522894     2/27/2007     19:16:31
    Apologies for the formatting - anyways, as you can see - which entry happened first?  Is the changenr field the authority on that or is the date/time fields ?  I have to think it's changenr because of the following:
    1 - changenr is part of the primary key - date and/or time is not
    2 - my program is missing changes
    What's even wierder is that the above two changes were made by the same person - and I have no idea which one they did first.
    bottom line - what determines order of changes ? - field changenr or date/time fields (which are udate and utime respectively).  I thought when I designed this the first time that it would been entry #2 above, but now I'm thinking it's entry #1.

    Tom;
    Thank you very much for the information - I did run transaction SNRO and I see on my dev box that it's buffered ( 10 numbers ).  This then leads to my next set of questions:
    1 - If you have multiple app servers and it's bufferered, where does it buffer ?
    2 - Are the change numbers still in order of the changes ( see #4 below ) ?
    3 - When a change number is buffered - does that mean the entire change is buffered or does that mean that only the number is buffered ?
    4 - If you have multiple app servers with multiple changes - do the changes appear in the database in order of the change numbers or out of order ?  Here's a simple example:
        change 1 - done by app server 1
        change 2 - done by app server 2
        change 3 - done by app server 1
        change 4 - done by app server 1
        change 5 - done by app server 2
    At any point, would I see any change number in the database which has a higher change number than one that doesn't yet exist in a commited form in the database ?  In order words, if I did the read just right, would I see changes 1,3,4 on one read and then 15 minutes later 1,2,3,4,5 ?  The reason I'm asking is because if you want to remember where you last left off, if a change number "appears" later and not in order, tracking the change numbers won't help either.

  • Is there a Java utility class to help with data management in a desktop UI?

    Is there a Java utility class to help with data management in a desktop UI?
    I am writing a UI to configure a network device that will be connected to the serial port of the computer while it is being configured. There is no web server or database for my application. The UI has a large number of fields (50+) spread across 16 tabs. I will write the UI in Java FX. It should run inside the browser when launched, and issue commands to the network device through the serial port. A UI has several input fields spread across tabs and one single Submit button. If a field is edited, and the submit button clicked, it issues a command and sends the new datum to the device, retrieves current value and any errors. so if input field has bad data, it is indicated for example, the field has a red border.
    Is there a standard design pattern or Java utility class to accomplish the frequently encountered, 'generic' parts of this scenario? lazy loading, submitting only what fields changed, displaying what fields have errors etc. (I dont want to reinvent the wheel if it is already there). Otherwise I can write such a class and share it back here if it is useful.
    someone recommended JGoodies Bindings for Swing - will this work well and in FX?

    Many thanks for the reply.
    In the servlet create an Arraylist and in th efor
    loop put the insances of the csqabean in this
    ArrayList. Exit the for loop and then add the
    ArrayList as an attribute to the session.I am making the use of Vector and did the same thing as u mentioned.I am using scriplets...
    >
    In the jsp retrieve the array list from the session
    and in a for loop step through the ArrayList
    retrieving each CourseSectionQABean and displaying.
    You can do this in a scriptlet but should also check
    out the jstl tags.I am able to remove this problem.Thanks again for the suggestion.
    AS

  • How to get calendar icon to show again when entering data in date/time field.

    Hello,
    First time posting on this site.  I am fairly new to using SQL Server Express.  I created a split-database in MS Access 2010 and have successfully migrated over the backend database to SQL Server Express.  When I was using the FE forms in
    Access, I use to be able to see a calendar icon where I could select the month and day in the date/time field.  
    I compiled the FE forms to binary format .accde so that I could distribute this to the users and they couldn't change my forms. After migrating the tables to SQL Server express for the BE, I am no longer able to see the calendar icon when I try to enter
    in data in the date/time field.   Same for the original .accdb file before the binary conversion to .accde.  
    How do I get the calendar icon back to show on the form when a user is entering in data?  I appreciate any assistance I can get. Thank you!
    Thai

    Hello Cheer,
    I don't believe the table changed when migrating from Access.  I had two tables before the migration, one was for the SwitchBoard Manager and the other table was for the database table.  I used the Switchboard to navigate to different menus, such
    as the Main Form, Power Form, Server Form, etc.  Let me know if I can provide any other information to help you narrow this down for me.   
    Thank you for your assistance. 
    Thai

  • How to prevent user to enter data in "Date/Time Field"?

    Hi folks,
         Back after long time to the forums, where I get answers which are helpful in making me good at utilizing designer.
         I am trying to validate the "Date/Time Field" using JavaScript but couldn't get a proper RegEx expression for various invalid user input formats. If anyone can help me out in finding a proper script that would Great.
         My script grown bigger and bigger to accepting invalid dates, but felt like hardcoding. So, instead I decided why can't we prevent a user to enter data into "Date/Time Field" and use only calendar dropdown. Is there is a way to do this?
    find my sample testing docment
    https://acrobat.com/#d=mYXkrhO2txuEesCfmvxNXg
    Thanks in Advance,
    Rajesh

    Hi Rajesh,
    I don't think there is a way of stopping the user from using the keyboard to enter a date.  You can use the following script in the change event to stop them typing a date but they will still be able to paste a date in.
    if (xfa.event.change.length === 1)
    xfa.event.change = "";
    This code works because if the date is selected from the calendar dropdown then the date xfa.event.change value will be the whole date and therefore longer than one character.
    I couldn't access your sample but if you were to set an display picture for the date field to something other than date{YYYY-MM-DD} then a valid date will have a formattedValue that is different than the rawValue.
    Dave

  • Output triggred in the invoice with Date/Time 1

    Output triggred in the invoice with Date/Time as 1 i e Send with periodically scheduled job.
    So could you  let me know when this gets triggeed if we maintain 1 in condition record?
    Thanks,
    Praveen

    Hi Praveen,
    When you maintain 1in the Date/Time column in the Condition Records for O/P of say the Invoice it means that you are telling the system to send the O/P with periodically scheduled job.
    To achieve this you must use the report program RSNAST00.The message is processed through report program RSNAST00. This report program can be scheduled periodically or started manually.
    For scheduling periodically you need to set up a batch process in SM35.
    Hope this helps,
    J Nagesh

  • Date picker is not available in date/time field

    Hi there,
    I'm wondering while using a date/time field. Since I made some changes on this field the date picker (Arrow down right next to the field to show up a calendar) is no longer available. Has anybody got a clou what the problem might be or how I can bring the date picker back to this field.
    Thanks in advance.
    Best,
    Maja.

    Hi there,
    I'm just wondering about the following settings/patterns:
    As you can see this field is from the type "Date/Time Field". So far so good, but when I'm opening the dialog "Patterns", this dialog is just for a "Date Field" and not for a "Date/Time Field". No trouble so far, but the confusion thing is that the date picker is available in this field. Has anybody a clou how this is working? Or can anybody help me to convert a "Date/Time Field" to a normal "Date Field" which provides this date picker?
    Thanks in advance and kind regards,
    Maja

  • Date time field problem

    Hello there
    This maybe a simple problem but on the Date time field object i have input a display pattern and put the error message in. When I preview the PDF and populate the object with random text the pop up box will display my error message.
    What it does not do is clear the text I have input so the date can be re-entered correctly, which is what I was expecting. Therefore the user can continue on without addressing the date correctly.
    Can anyone advise what I should do to get this to work?
    Thanks
    Darren

    Hi
    The first time I thinkanyone has answered their own post. So for the benefit of anyone else I added the folowing script to the exit event
    of the date field object
    if (page.subform.dateobject.rawValue == page.subform.dateobject.formattedValue) {
    xfa.host.resetData("xfa.form.Formtitle.Page.subform.datefieldobject")
    Not sure why it works but just played around with it.

Maybe you are looking for