DFS -get, query or search??
hi im using dfs to retrieve documents from a repository in D6.5.
but im a little confused as to what to use to do this as there seems to be more than one option.
1. i want to query the repository for documents
then display these (lets say the title of each document) in a listbox on a .net form.
2. then i want to be able to retrieve the contents of the document when i choose one of them from the list box.
should i use search services, or query service, or the object service .get to do the first task?
i assume i would need to use the .get to carry out the second task, but again im unsure?
i was trying to use the search service with execute/clusters and all that but it seemed a little over complicated, so thats
why i thought maybe there was an easier way. am i right??
thanks in advance
funz
P.S.
when using search i did get it to work and return results -Emc.Documentum.FS.DataModel.Core.ObjectIdentity
this is what it returned in the console.writeline - can i get it to return something meaningful - like the object title or object_name instead?
Comments
-
For the first step, l suppose it depends what is your selection criteria.
I would do it with query as it is easy to complile a DQL and send it in.
It will return a DataPackage.
resultDp.getDataObjects() contains Data Objects.
dObj.getIdentity().getValueAsString() is your object ID.
dObj.getProperties().get("object_name").getValueAsString() is your object name.
to get the content you have to use object.get
0
Categories
- All Categories
- 107 Developer Announcements
- 53 Articles
- 104 General Questions
- 141 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 898 Cloud Fax and Notifications
- 76 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 118 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management