How do I put a timestamp in a form field in a business process?
at specific step in process, when user approves form, put name , timestamp in text field locked. think there different ways this, each has own issues.
javascript in form:
i via javascript before form submitted, how know step in process in?
business process:
i don't think can directly access form process. can read form, cannot set values, correct?
custom render process:
i have custom render process need extract data form, merge xml new field, merge in document. not sure how this.
any ideas on best way handle be?
thanks
hi,
you can use executescript component set timestamp in form or varible. mention below example timestamp in dd/mm/yyyy format.
java.text.dateformat dateformat = new java.text.simpledateformat(
"dd/mm/yyyy");
java.util.date date = new java.util.date();
string datetime = dateformat.format(date);
system.out.println("current date time : " + datetime);
patexeccontext.setprocessdatastringvalue("xpath of form field or variable", datetime);
regards,
waqas
More discussions in LiveCycle Workspace
adobe
Comments
Post a Comment