@IsNewDoc() JavaScript Example for XPage Title

Mindwatering Incorporated

Author: Tripp W Black

Created: 12/29/2011 at 03:13 PM

 

Category:
Notes Developer Tips
XPages

Code Snippet:

var tmptitle = 'Domino CSS Resource - ' + currentDocument.getItemValueString('DS_Title');
if (@IsNewDoc() == 1) {
return 'New Domino CSS Resource';
} else {
return tmptitle;
}


previous page