on 01-05-2008 4:35 PM
Hi all,
I have a requirement to use KM API, to upload doc files to a specific repo & to display a list for user download files.
Now I get two problem:
1, how to write description while creating a resource.
I know how to create resource, but after new a Content, I tried to new instance of IMutableProperty and write in, there's ReadOnlyPropertyExcetion, I do not know where to set property of this resource.
2, I did above test by setting sharing reference in webdynpro reference & import some external jar files, this works fine for standalone component. But if I want to checkIn it as a DC to NWDI, I got compile error, what kind of used DC shall I import, I guess this is the way DC can accept.
Thank you
William
Hi William,
try this code to set the description for the IResource:
String description = "My description";
res.setProperty(Property.createDescriptionProp(description));
Can't comment on NWDI though, never seen a properly working one...
regards,
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi William,
Check the document Knowledge Management Search and Replace - Web Dynpro Java KM-API Example
Regards
Pavel
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.