我在SSJS庫中有一個函數。我想在庫中獲取客戶端警報。我試過的沒有奏效。我想我錯過了什麼。 :(SSJS庫中的警報
function docAlive()
{
try
{
var otherDoc:NotesDocument= null;
if (funcDoc.getItemValueString("DocUNID")!="")
{
var otherDoc:NotesDocument = dbKontak.getDocumentByUNID(funcDoc.getItemValueString("DocUNID"))
if (otherDoc==null)
{
hataKod = "10001";
hataMsg = "There is no document :(Created One";
print (hataKod +": "+hataMsg);
view.postScript("alert('"+hataKod + " - " +hataMsg+"');");
}
}
return otherDoc;
}
catch (e)
{
e.toString();
}
}
你的代碼駐留在哪裏(event,value,...)? –
看看這裏http://notesspeak.blogspot.de/2013/08/viewpostscript-only-works-for-certain.html和這裏http://www.intec.co.uk/xpages-calling-client- side-javascript-from-server-side-javascript/ –
提交時按鈕後面.. –