on 01-25-2008 9:42 AM
Hi All
We are doing a Webdynpro application and we need to access the data of a textfile which is stored in the KM.
The actual problem is :I have a textfile in Knowledege Management(KM) , /documents folder .Now i need to access the contents of that textfile.
Please kindly help me in this regards as its urgent requirement for us.
Thanks in Advance
Thanks and Regards
Nishita Salver
Hi,
This could help you
KM Search and Replace: Web Dynpro Java KM-API Example
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Thank you so much
The Problem is resolved.using your code i could get the data.
Thanks once again.
Thanks and Regards
Nishita Salver
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thank you So much for a quick reply .It is regarding the KM retrieval.But i could not follow it properly.I would be grateful if you can send me the code itself as i very less time to implement it.
Thanks in Advance
Thanks and Regards
Nishita Salver
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try the following
RID rid = RID.getRID("/documents/testext.txt");
try {
com.sapportals.wcm.repository.IResource resource = ResourceFactory.getInstance().getResource(rid, resourceContext);
if (resource != null) {
String text = "";
BufferedReader in = new BufferedReader(new InputStreamReader(resource.getContent().getInputStream()));
while ((text = in.readLine()) != null) {
wdContext.currentTextElement().setText(text);
}
}
} catch (RuntimeException e2) {
// TODO Auto-generated catch block
}
/thread/90181 [original link is broken]
Regards
Ayyapparaj
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
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.