Hi,
We are developing a .Net application using dfs to get folder path of all existing folders from a cabinet. We use Documentum 6.5 sp2.The folder path returns an semi colon(;) in front of the folder path while executing a dql query through the dfs.
The .Net script is as shown below
DQLQuery.QueryString = "select acl_name, acl_domain, r_folder_path from dm_folder where cabinet('/cabinet1')";
QueryExecution DQLQueryEx = new QueryExecution();
DQLQueryEx.CacheStrategyType = CacheStrategyType.DEFAULT_CACHE_STRATEGY;
OperationOptions DCTMOperationOptions = null;
QueryResult DCTMQueryResult = DCTMQueryService.Execute(DQLQuery, DQLQueryEx, DCTMOperationOptions);
DataPackage DCTMResultPackage = DCTMQueryResult.DataPackage;
List<Emc.Documentum.FS.DataModel.Core.DataObject> DCTMDataObjects = DCTMResultPackage.DataObjects;
if (DCTMDataObjects.Count > 0)
{
foreach (Emc.Documentum.FS.DataModel.Core.DataObject DCTMObjects in DCTMDataObjects)
{
PropertySet DCTMDocProperties = DCTMObjects.Properties;
ACLName = DCTMDocProperties.Get("acl_name").GetValueAsString();
ACLDomainName = DCTMDocProperties.Get("acl_domain").GetValueAsString();
FolderPath = DCTMDocProperties.Get("r_folder_path").GetValueAsString();
MessageBox.Show("Folder path is " + FolderPath);
}}
The system popups as the folder path “; /cabinet1/Test folder”
"; /cabinet1/Test folder A"
Is there anyway we can filter the semicolon (;) from the folder path which is not correct.
Thanks & regards
blessing