Skip to Content
0
Former Member
Sep 26, 2005 at 09:43 AM

Resource URL or Relative path.

74 Views

Hi ,

In my webdynpro view i have a LinkToUrl button.I want to supply a URL to this button property Reference.

I have a HTML file in KM under documents/mydocs/test.html

my coding looks like this

IWDClientUser wdClientUser = WDClientUser.getCurrentUser();

com.sap.security.api.IUser sapUser = wdClientUser.getSAPUser();

IUser ep5User = WPUMFactory.getUserFactory().getEP5User(sapUser);

IResourceContext resourceContext = new ResourceContext(ep5User);

IResourceFactory resourceFactory = ResourceFactory.getInstance();

RID pathRID = RID.getRID(wdContext.currentContextElement().getPath());

IResource resource = resourceFactory.getResource(pathRID, resourceContext);

after this coding,i dont know how to get the URL or full path.I have checked getTargetUrl but it returns null.

Can someone help me with this. ??