cancel
Showing results for 
Search instead for 
Did you mean: 

retrieve document's name in collaboration room

Former Member
0 Kudos

Hi everyone, in a collaboration room there are a few documents uploaded in This room. I would like to know how to retrieve the current selected document's name and path or rid. Any hints will be appreciated. Thanks for early reply.

BR.

Wang

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

here an example for a RID to a Document in a Collaboration-Room:

http://portal:50000/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/room_extensions/cm_stores/docu...

Following the RID is

room_extensions/cm_stores/documents/workspaces/<room-id>/...

Regards,

Gerhard

Former Member
0 Kudos

Hi Gerhard, thanks for reply. If I need to make an application to retrieve this path or the document's name. Which methods should be used in order to get the reference of the current document ? Thanks for reply.

BR.

Wang

Former Member
0 Kudos

Dear Wang,

This question is similar to your other post, so as my answer (:

You can use the property in the profile, e.g.


<property name="path" value="/docs">
<property name="description" value="BROWSE_PATH"/>
<property name="plainDescription" value="path to the initial folder"/>
</property>

After maping it to the RID of the room you can get the / of the cRoom by simply calling:


String path = request.getComponentSession().getValue("path").toString();
RID rootDir = RID.getRID(path);

hope this helps && regards,

ds

Former Member
0 Kudos

Hello Dimitry, I am very glad to read the two replies from you. I have given a reply to you in another post. I am going to test it and give a reply soon. Thanks again.

Best regards.

Wang

Answers (0)