cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing KM Content using Webdynpro Tree Application

Former Member
0 Kudos

Hi,

I want to create a webdynpro tree structure application which pulls out the KM Content into the tree Structure. How can i do that? Where can i give the KM path and make the KM documents reflect in the tree?

Does any body have code samples related to this? Can anybody help me out in fixing this issue.

Regards,

Divya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Here you have a sample to configure the environment, get access to KM and how to upload a file.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a099a3bd-17ef-2b10-e6ac-9c1ea42af...

Here, you have a sample code, where you instance a resource (a folder or file into KM repository) and you can do with it whatever you want.


final IResourceFactory aResourceFactory = ResourceFactory.getInstance();
RID rid = new RID(strRid); --> path where your are looking for your folders. "/documents", for instance.
ResourceContext resourceContext = new ResourceContext(WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service"));
IResource r = aResourceFactory.getResource(rid, resourceContext);

Try and catch are missing, but that is the code to have an instance of a KM resource.

Regards,

David.

Answers (1)

Answers (1)

Former Member
0 Kudos

anyone can share us with this? i am also having the same problem as he does

please do help~

Regards,

Leon