on 02-22-2005 9:06 PM
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
Hi,
here an example for a RID to a Document in a Collaboration-Room:
Following the RID is
room_extensions/cm_stores/documents/workspaces/<room-id>/...
Regards,
Gerhard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.