-
1. Re: Dynamic Stamps - Java Script
Bernd Alheit Sep 1, 2017 2:56 AM (in response to p.gerner)What happens when you use the stamp?
-
2. Re: Dynamic Stamps - Java Script
p.gerner Sep 1, 2017 3:00 AM (in response to Bernd Alheit)The stamp is already ok, the date is automatically updated but the user-id is missing.
-
3. Re: Dynamic Stamps - Java Script
Bernd Alheit Sep 1, 2017 3:10 AM (in response to p.gerner)1 person found this helpfulIt works for me.
-
4. Re: Dynamic Stamps - Java Script
try67 Sep 1, 2017 3:13 AM (in response to p.gerner)1 person found this helpfulAre there any error messages in the JS Console when you apply the stamp? Press Ctrl+J to open it.
-
5. Re: Dynamic Stamps - Java Script
formsdoctor Sep 2, 2017 10:45 AM (in response to p.gerner)1 person found this helpfulIt works for me. I hope this isn't a stupid question but is that your entire script and did you wrap the script in:
if ((event.source.forReal)&&(event.source.stampName == [the stamp name]))
{
//your stamp script
}
?
If not, your calculation would run when you closed the text field properties in the stamp but it would be missing identity.name because this is not accessible in this context. Then when you apply the stamp you are actually applying a static stamp with the date and other information that saved in the field when you set the calculation.
-
6. Re: Dynamic Stamps - Java Script
p.gerner Sep 3, 2017 10:36 PM (in response to try67)No there are not any errors.
-
7. Re: Dynamic Stamps - Java Script
p.gerner Sep 4, 2017 12:30 AM (in response to formsdoctor)Thanks for your answere!
So I found the failure! The script does not work because we work with DATEV, the script where it gets the User-ID is blocked because at the DATEV environment we do not have a name, just a number like "1902734B239845ß1345901".
But thanks to all of you and your help, this is a great forum with really helpful people!
Sorry for my "stupid" question but if you are focused on something you already forget the simplest things arround your project.Best greetings from Bavaria!