欢迎来到天天文库
浏览记录
ID:7298975
大小:280.09 KB
页数:4页
时间:2018-02-10
《qrs sharepoint smartobject methods》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、SMARTOBJECTSCREATEDWITHK2SITESETTINGSINSHAREPOINTCreatingSmartObjectsforListsandLibrariesMethodNameMethodDescriptionanduseStep1:GetListRetrievealistofdocumentswithmetadatafromtheOpenK2SiteSettingsforthesitewherethelists/librariesexistSharePointLibrary.Thedocumentc
2、ontentisnotdownloaded,butalinktothedocumentwillbeavailableinthereturnedproperties.Youmaypassvaluesintotheinputpropertiesofthelistmethodtofilterthelistofreturneddocuments.LoadReadonespecificdocument’smetadatafromalibrary.YouwillneedtoprovidetheNameofthedocument.The
3、documentcontentisnotdownloaded,butalinktothedocumentwillbeavailableinthereturnedproperties.CreateAddsanewdocumenttothetargetlibrary.Youmustprovidevaluesfortherequiredproperties(metadata)ofthelibrary,andcanalsoprovideadditionalinputvalueslikethefoldertosavethedocum
4、entto(thefoldermustexistalready).Step2:mentLibrariesThedocumentcontentmustbepassedinasaFile(binary)ClickK2SmartObjectSiteListsandLibrariesdatatype.ThismethodwillreturntheID,Name,FolderandalinktotheDocunewdocument.UpdateDocumentUpdatesthecontentofanexistingdocument
5、inaSharePointlibrary(andoptionally,folder)Youmustprovidethefilecontentinbinaryformat,andthismethodwilloverwritetheexistingfilewiththenewfile.UpdateDocumentMetaUpdatethemetadataforanexistingdocumentinalibrary.dataYoumustprovidethenameofthedocumenttoupdateaswellasan
6、yrequiredpropertiesofthelibrary.RetrieveDocumentDownloadsthespecifieddocumentfromSharePoint.YoumustprovidetheName(andoptionally,folder)ofthedocumenttoretrieve.Step3:ThedocumentcontentwillbedownloadedtoabinaryFileSelecttheListsandLibrariestoexposeasSmartObjects,sel
7、ectpropertyintheSmartObject.optionsandclickCreateDeleteDocumentDeletesthespecifieddocumentformtheSharePointLibrary.YoumustprovidetheName(andoptionally,folder)ofthedocumentthatwillbedeleted.CheckInChecksinadocumentthatischeckedout.Youmustprovidethename(andoptionall
8、y,folder)oftheMethodsforSmartObjectsbasedonitemtobecheckedin.Note:Thismethoddoesnotuploaddocumentitself,youmustusetheUpdateDocumentmethodtodoso.CheckOut
此文档下载收益归作者所有