Skip to Content
author's profile photo Former Member
Former Member

Retrieve room’s info from a customer's class for Room UI Command

Hi, everyone

I have developed a class for our own UI Command in a room on the basis of the example code SimpleOneStepScreenflow at https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/implementing flexible ui one-step-screenflow.article.

This class can be executed by our own label that has been added in the Hover Menu Encapsulating Command. The hover menu is attached to each document that has been uploaded under directory Documents in a collaboration room.

Now I need to implement retrieving the current room’s info, like room’s name, room’s owner etc,

How can I get RID object for the current room?

Any hint will be appreciated.

Best regards.

Wang

Message was edited by: Yantong Wang

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jun 14, 2005 at 11:11 AM

    Hi Wang,

    I'm not sure (and have no time to check out) if there is an officially-to-be-used API to get back the way from a room's folder ID to the room ID. At least, you could do it "manually":

    Under room_structures/<RoomRID> you'll find links to the corresponding folders under room_extensions/cm_stores/documents/workspaces. From your command you will have some Resource RID path like /room_extensions/cm_stores/documents/workspaces/48a118fe-0101-0010-5780-8d175b3669a6/...; searching through the first repository given above for a link pointing to such a folder would return the corresponding room (from the room repositories, the rooms are linked to the folders, but not back from the folders to the rooms.

    UPDATE: Just saw that on the folder /room_extensions/cm_stores/documents/workspaces/48a118fe-0101-0010-5780-8d175b3669a6 you'll find a property consumer_id, having the room RID 😊 (and beneath this, the consumer_name with the room DisplayName). Sometimes things are relatively easy 😊

    Hope it helps

    Detlev

    PS: The question isn't marked as question, did yoe de-mark it or is it a system failure?!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.