SuperKelvin Tai 1.Dec.09 02:33 AM a Web browser Lotus Records Manager for Lotus Domino Document Manager All Releases All Platforms
HI All,
I have some problem on document creation. Here is my source code.
theCabinets = theLibrary.Cabinets
theCabinet = theLibrary.Cabinets(CabinetName)
theBinder = theCabinet.Binders(BinderName)
theDocuments = theBinder.Documents
theNewDocument = theDocuments.Add
Call theNewDocument.SetContents(DocumentName)
theNewDocument.Title = FileName
theNewDocument.Description = Trim(DocDescp)
theProfiles = theCabinet.DocumentProfiles
theProfile = theProfiles.ItemByName("Lesson") <-- I don't know what's mean that ? Where can I found it ?
theNewDocument.Profile = theProfile
theNewDocument.Profile.Fields("IndexKey1").Value = InKey1
theNewDocument.Profile.Fields("IndexKey2").Value = InKey2
theNewDocument.Profile.Fields("IndexKey3").Value = InKey3
Call theNewDocument.Save()
Call theNewDocument.CheckIn(1, 2, False, "")
Please help


|