I just tried to implement something like this in a querySaveDocument event of a document datasource:
var wDt1 = new Date();
var wMs = wDt.getUTCMilliseconds();
Upon submit I then receive an error:
=============
Error source
Page Name:/home.xsp
Control Id: _id4
Property: querySaveDocument
Exception
Error saving data source dominoDocument2
Error while executing JavaScript action expression
Script interpreter error, line=38, col=39: Unknown member ‘getUTCMilliseconds’ in Java class ‘java.util.Date’
=============
I then tried
wDt.getMilliseconds();
instead, with the same result.
Can someone confirm this? And, if so, please open a PMR for me, if none exists yet?
Thanks,
-Lothar