how to get datetime value from field with java in lotus -
i use ibm notes , ibm domino designer. have form date/time field. field called 'orderdatum', java agent call field doing this:
orderdocument.getitemvaluedatetimearray("orderdatum")
if it's filled in works, if it's empty this:
notesexception: item value not date type @ lotus.domino.local.document.ngetitemvaluedatetimearray(native method) @ lotus.domino.local.document.getitemvaluedatetimearray(unknown source) @ javaagent.postorder(unknown source) @ javaagent.notesmain(unknown source) @ lotus.domino.agentbase.runnotes(unknown source) @ lotus.domino.notesthread.run(unknown source)
even if checks like:
if(orderdocument.getitemvaluedatetimearray("orderdatum") != null){ if(!orderdocument.getitemvaluedatetimearray("orderdatum").equals(null)){
i still error in console, how avoid this.
use this:
if(orderdocument.getitemvalue("orderdatum") != null){
Comments
Post a Comment