


Views
Replies
Total Likes
Yes ...there is a FormCalc function that will return the number of seconds form a point in time (called an Epoch). If you use the time() function it will return that number. As long as 2 users do not open th eform at exactly the same time then you can be guaranteed a unique number.
Paul
Views
Replies
Sign in to like this content
Total Likes
I found this thread on a search, as I have the same issue. Piggybacking on this question, this does work assigning a unique number, however for me, that PDF is e-mailed to another group as well as saved by the user. But now, when either of those people open that PDF, the number continues to incriment. Is there a way to make it not change once the PDF has been saved/e-mailed? My thought would be to make the entire form become read only, but I am not sure that would even fix it?
Views
Replies
Sign in to like this content
Total Likes
Do a check on the field to see if it is empty before doing the calculation. This way if the field is empty then the calc will fire...if there is already something in the field (presumably a form number) then it will not recalc.Something like this:
if (this.rawValue == null){
do number calculation
}
Paul
Views
Replies
Sign in to like this content
Total Likes
Another option is to inject a unique number into the form within the process itself.
This component generates a sequential number with optional prefix and suffix, and allow you to inject it into the form.
Doc: http://avoka.dnsalias.com/confluence/display/Public/Unique+ID+Generator+DSC
Download trial: http://www.avoka.com/avoka/escomponents.shtml
Howard
Views
Replies
Sign in to like this content
Total Likes
You could inject the unique number from the process.
You can use the process variable /process_data/@id, which will give you an unique identifier for your instance.
Jasmin
Views
Replies
Sign in to like this content
Total Likes