This topic is locked
[SOLVED]

 Force a field to use the default set for add when using the copy function

3/26/2015 3:56:19 PM
ASPRunnerPro General questions
M
mfred author

I need to force a field to use the default set for add when using the copy function. Is there a place to set that in ASPRunner or will I need to edit the code after compilation?

admin 3/26/2015

Could you elaborate what "force a field to use the default set" means?

M
mfred author 4/1/2015

Sure.
I am using "year(now()) & Month(now()) & Day(now()) & hour(now()) & minute(now()) & second(now())" as the default for a project number field. The only issue is that the copy function needs to load the resulting new number instead of what is in the entry being copied.

admin 4/9/2015

Use CopyOnLoad event and the following code:

values("FieldName") = year(now()) & Month(now()) & Day(now()) & hour(now()) & minute(now()) & second(now())