todays date and time

  4 posts   Feedicon  
Replies: 3 - Last Post: December 09, 2010 09:36
by: jcd
showing 1 - 4 of 4
 
Posted: October 14, 2010 10:05 by ppaessler
Hello,

i need todays date and time in a record field, but don't know how to do it. I wrote a groovy Function "AktuellesDatum.groovy"

package jisisgroovie;

import java.text.SimpleDateFormat;
import java.util.Date;

def AktuellesDatum() {

def date = new Date();
def sdf = new SimpleDateFormat("yyyyMMddhhmmss");
return sdf.format(date);
}
AktuellesDatum()


Then I wrote AktuellesDatum.pft

&AktuellesDatum('aa')


and it works - nice.
I can use this format exit, but I don't know how to use it during data entry for automatically entering todays date and time in a record field. May be it is the wrong way anyway.
Any Help welcome.
 
Posted: November 18, 2010 13:12 by jcd
Hello,

Thank you for raising this issue. I have just modified J-ISIS so that you can enter Print Format commands as default value in a workksheet. This will work for a field or subfields in the advanced worksheet editor.
Thus entering &AktuellesDatum('aa') as default value for a field or subfield produces the value 20101118020144
right now.

This functionality will be available in next beta version. Let me know if you wish to get the J-ISIS developpement version of today. I will now implement the copy/paste of records.

Best wishes,

JCD
 
Posted: November 23, 2010 13:24 by ppaessler
Hello,

thanks a lot - I will wait for the next release.

mercy,

pp
 
Posted: December 09, 2010 09:36 by jcd
Hello,

I have just uploaded a new release of J-ISIS (8 December 2010) that provides the facility for putting a PFT (possibly with a Groovy function like in AktuellesDatum.pft) in the default value of a worksheet. It works for "Data Entry" and
"Advanced Data Entry"

jcd
Replies: 3 - Last Post: December 09, 2010 09:36
by: jcd
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close