Message 1 of 4
Not applicable
12-02-2015
05:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey,
in this code there no Error, but i dosent can see the Property in File???
- checkout the file
- update the file
- check inthe file
no changes to see in Vault on the Propertys
PropInstParamArray[] oPropInstParamArray = new PropInstParamArray[] { new PropInstParamArray { Items = new PropInstParam[] { new PropInstParam {
PropDefId = wecVaultTools.Modules.wecVaultTools.getFilePropDefIdByPropertyName(false, "Firma"),
Val = "Test Mario"
} } } };
File oclsFile = clsGlobal.oDocSvc.GetLatestFileByMasterId(e.FileMasterId);
try
{
ByteArray oByteArray;
File oVaultFile = clsGlobal.oDocSvc.CheckoutFile(oclsFile.Id, CheckoutFileOptions.Master, Environment.MachineName, @"c:\\test\\", @"PropUpdate", out oByteArray);
clsGlobal.oDocSvc.UpdateFileProperties(new long[] { e.FileMasterId }, oPropInstParamArray);
FileAssocArray oFileAssocArray = clsGlobal.oDocSvc.GetFileAssociationsByIds(new long[] { oclsFile.Id }, FileAssociationTypeEnum.All, false, FileAssociationTypeEnum.All, false, true, true).First();
oVaultFile = clsGlobal.oDocSvc.CheckinUploadedFile(oVaultFile.MasterId, "test Property", false, System.DateTime.Now, oFileAssocArray., null, false, oVaultFile.Name, oVaultFile.FileClass, oVaultFile.Hidden, null);
}
catch (Exception ex)
{
Debug.WriteLine(ex.ToString());
}
thx
Mario
Solved! Go to Solution.