Xpages send attachment from a document to another -
I have a document that is coming to the scanner, the scanner sends an email to my database and from one view I Access the document and view attachments and topics.
Is there a way in which I can use attachments and put it in another document? I have been able to send the subject rich text using session session, but it is not working with attachments.
I have a file downloader in the destination document.
Which would be the best way to do this?
Notes ReachTest Itam's appenditim ()
method:
Example:
var doc originating: notes document =. ..; Var docNew: Notes document = database.creditable document (); DocNew.replaceItemValue ("Form", "Test"); Var Bodies: NotchTestItem = DoctorOrige.Trastemt ("Body"); Var Bodinewin: Notes Rich TestItem = docNew.createRichTextItem ("body"); BodyNew.appendRTItem (bodyOrig); DocNew.save (); Example 2: The same code embedded in a single button of a XPage with the data source "document1". Copy the rich text item "body" with all the documents along with all the documents from the current document "document1" and
Opens a XPage "test.xsp" for the newly created document < / Ul> & lt; Xp: Button value = "Create and open a new document with the copy of the object of the current document" id = "button1" & gt; & Lt; Xp: EventModer Event = "OnClick" = "True" RefreshMod = "Full" & gt; & Lt; XP: this.action & gt; & Lt; Xp: Open page name = "test.exp" target = "edit document" & gt; & Lt; Xp: this.documentId> & Lt ;! [CDATA [# {Javascript: var Doctors: Notes Document = document1.getDocument (); Var docNew: Notes document = database.creditable document (); DocNew.replaceItemValue ("Form", "Test"); Var Bodies: NotchTestItem = DoctorOrige.Trastemt ("Body"); Var Bodinewin: Notes Rich TestItem = docNew.createRichTextItem ("body"); BodyNew.appendRTItem (bodyOrig); DocNew.save (); Return docNew.getUniversalID ();}]] & gt; & Lt; / Xp: this.documentId> & Lt; / XP: openPage & gt; & Lt; / XP: this.action & gt; & Lt; / XP: eventhandler & gt; & Lt; / XP: Button & gt;
Precondition for both instances: The attachment should be in the "body" of the current document item.
Comments
Post a Comment