on 11-30-2006 7:15 AM
we have an issue.
We have an application written in servlets to retrieve KM attributes.
We are now trying to embed it with webdynpro. We just extracted what we require from servlet code and used it in WebDynpro.
But from the errors it is showing what we understood is that the objects are not supported by WebDynpro or may be they are deprecated.
So what we want to know is that
Whether we will be able to call the servlet itself from webdynpro
Where we will get later versions of KM APIs and how to use it.
Whether the approach we take is wrong
This is our action part
public void onActionon_retrieve(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionon_retrieve(ServerEvent)
IUser serviceUser = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
//IUser serviceuser = WPUMFactory.getUserFactory().getEP5User(request.getUser());
ResourceContext c = new ResourceContext(serviceUser);
// Retrieve a resource from the KM repository framework
IResource r = ResourceFactory.getInstance().getResource(RID.getRID("/documents"), c);
// read some information from the IResource and print it on the
// servlet request
//s.append("<b>Access RID</b>: "r.getAccessRID().toString()"<br>");
// s.append("<b>Display Name</b>: "r.getDisplayName(true)"<br>");
// s.append("<b>Properties list</b>: "r.getProperties().toString()"<br>");
// s.append("<b>Current user</b>: "r.getContext().getUser().getDisplayName()"<br>");
String s = r.getproperties.toString();
//@@end
}
Can anyone please help us on what to do?
Thanks
gayathri.
Hi Gayatri
Did you get a chance to complete the above mentioned task.If so please suggest me too, since I do have a simillar task for me to complete.
Thanks
Bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.