我想了解如何在dataTable上執行計算可見屬性以隱藏某個字段/行(如果狀態爲啓用或禁用狀態)。XPages dataTable控件,計算可見
下面的代碼是什麼我已經使用,但一直得到錯誤
var userName=rowData.getColumnValue("userName")
var status:NotesView = database.getView("(UserProfile)");
var doc:NotesDocument = status.getDocumentByKey(userName);
var active = doc.getItemValueString("Status")
if(active == "Enabled") {
return true
}else{
return false
}
什麼錯誤?以及XPages日誌文件說什麼? – 2015-02-09 18:49:54
我打印(用戶名)檢查名稱是否在視圖「(UserProfile)」中的第一個排序列中,並保持geting行= 4,col = 18:'doc'爲空 – 2015-02-09 18:52:16
。它必須是相同的拼寫... – 2015-02-09 18:54:16