cancel
Showing results for 
Search instead for 
Did you mean: 

issues in using KM APIs in Webdynpro

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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