I need to export a multi-valued token into a text entry created for the purpose. Any SDK pointer?
Question
Question
Answer
SELECTED ANSWER
replied on June 2, 2014
See PageInfo.WriteTextPagePart in your SDK documentation.
0
0
replied on June 2, 2014
Thank you Miruna!
0
0
replied on June 3, 2014
Could anyone share any example VB Code for doing this? I was using an SDK script to slip my own detailed comments into new document versions but now have to change gears as we're now using a folder for the starting entry instead of a document? I'm not a professional coder, but I know my way around VB fairly well. Getting started is the hardest part for me; I can do a whole lot if I've got some 'starter code'
Here is the code I've been using to insert version comments and increment the version:
(Private Sub followed by a Shared Sub that is called.)
Protected Overrides Sub Execute() Dim comments As String Dim entry As ILFEntry comments = "some detailed comments" entry = me.Entry MySharedScripts.Versioning(comments, entry, 1) End Sub Public Shared Sub Versioning (ByRef comments As String, ByRef entry as ILFEntry, _ Optional ByRef bCO As Boolean = False, Optional ByRef bCI As Boolean = True) ' bCO is Check Out - True/False. ' As in "do you want the doc checked out?" ' Default value is False ' bCI is Check In - True/False. ' As in "do you want the doc checked back in?" ' Default value is True Dim document As ILFDocument Dim versioninfo As ILFVersionControlInfo If entry.EntryType = Entry_Type.ENTRY_TYPE_DOCUMENT Then document = DirectCast(entry, ILFDocument) versioninfo = document.VersionControlInfo If Not versionInfo.IsVersionControlled Then document.Comment = comments document.Update() versionInfo.PutUnderVersionControl() document.Dispose Else If bCO Then versioninfo.CheckOut() End If document.Comment = comments document.Update() If bCI Then versionInfo.CheckIn(0) End If End If End If End Sub
Any help is much appreciated.
(Apologies if this really needs to be a new topic, I will create one.)
~John
0
0