cancel
Showing results for 
Search instead for 
Did you mean: 

how to retrive data from KM

Former Member
0 Kudos

Hello Everyone,

i am using accessing Km from WebDynpro.i have successfully uploaded the files into km.but i am unable to retrive the file content from KM.

my requirement is when user click on the KM file i want to show that file in seperate window.

any suggestions will be appriciated

Regards

Naidu

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi Rohit,

thanks for ur replay

i did the same thing.i am displaying tha all the files and folders on the screen.but i am unable to retrive the content in files.

Regards

Naidu

Former Member
0 Kudos

Hi Naidu,

Go though the link to add the jar files and the code to access the km and show the details of files in webdynpro application

http://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutoria... on using knowledge management functions in web dynpro - 26.htm

define a context attribute as path

in do init give path as

wdContext.currentContextElement().setPath("/documents/Public Documents/Elearning");

You can alter the path by concatenating additional folders if necessary

for example

wdContext.currentContextElement().setPath(wdContext.currentContextElement().getPath()"/"<folder name>);

In the link to action event handler write code for opening window

IWDWindow newwindow = wdComponentAPI.getWindowManager().createExternalWindow(

"/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs"wdContext.currentContextElement().getPath()"/"+name,"from km repository",false);

Hope this helps you

Regards

Rohit