on 12-14-2007 1:15 PM
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
Hello,
Here you have a sample to configure the environment, get access to KM and how to upload a file.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
anyone can share us with this? i am also having the same problem as he does
please do help~
Regards,
Leon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.