on 10-15-2013 9:36 AM
Hi there,
I made a script button in my persona screen in transaction IW24 to set the notification time to 'this current moment' via a little bit of javascript.
The script:
var d = new Date(); args.time=d.getHours() + ':' +(d.getMinutes()<10?'0':'') d.getMinutes()':'+d.getSeconds();
Then I paste args.time to the field.
The script is ok because it does this the first time right, but when I try to do it again it fails.
Any idea why?
Hi Jasper,
This sounds like a typical case where a program keeps some session data and behaves differently the next time you open one of its transaction. To find out what is wrong with you script, I would recommend to open the transaction in Basic View after login, then get out and open it again. Did something change? Maybe a popup that comes only the first time or, a field that is prefilled? If you find this difference, you can handle it in your scripts using IF conditions.
Cheers,
Tobias.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.