- I’m (vainly) attempting to do things with attachments in postSaveDocument using SSJS. “Help” says:
getAttachmeList(fieldName:string) : java.util.Vector
This is inaccurate. As posted on this Forum (discovering after elementAt() was not found), this is actually returning java.util.ArrayList. Okay. Verify this with typeof(getAttachmentList()), then use get() instead. Got it.
-
“Help” also “describes” the return value as “The attachments”. I have to say that’s about as useless as humanly possible. What ARE the attachments? String? NotesRichtext? Jabberwocky? Something more arcane?
-
The same post that says getAttachmentList() returns ArrayList instead of Vector also says it should contain NotesEmbeddedObject. Sadly when I do getAttachmentList().get(0).getSource() it says that method can’t be found. That can’t be good.
-
So I do typeof(getAttachmentList().get(0)) and it says:
com.ibm.xsp.model.domino.wrapped.DominoDocument$AttachmentValueHolder
Looks like the latter, “Something more aracane?” I would expect package.NotesEmbeddedObject. Instead it’s some automagically obfuscated nonsense that makes it utterly and completely impossible to actually ascertain what is valid to call upon it, or why getSource() can’t be found.
-
HOW do I use the elements of getAttachmentList()??? This should be trivially simple, not consume two full days and still not even be able to do squat.
-
I called this a Problem because, far as I’m concerned, the total inability to perform even simple attachment processing, due to missing and outright bogus information, plus incomprehensible obfuscation of objects, is a critical problem. Literally show-stoppingly critical.
Thanks for your time…