DFS -get, query or search??

funzeye
edited January 20, 2009 in Documentum #1

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

  • however
    edited January 20, 2009 #2

    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