cancel
Showing results for 
Search instead for 
Did you mean: 

How to access KM folder from link in WebDynpro application

Former Member
0 Kudos

Hi

I need to display link to some KM folder in my WebDynpro application.

I have View with UI element of type LinkToUrl with reference to string attribute in the context.

The question is how to init this context attribute with link to /documents/xxx folder?

Thanks

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

It's work!

Use PathKey.NAVIGATION_PAGE

Former Member
0 Kudos

This is the code:

try{

RID rid = RID.getRID("/documents/News/");

IURLGeneratorService urlgen =(IURLGeneratorService)

ResourceFactory.getInstance().getServiceFactory().getService

(IServiceTypesConst.URLGENERATOR_SERVICE);

String folderUrl = urlgen.getResourcePageUri

(PathKey.CONTENT_ACCESS_PATH, rid, null).toString();

wdContext.currentContextElement().setFolderUrl(folderUrl);

}

catch.......

When application is running and I click the link, I see this message:

http://server:port/irj/go/km/docs/documents/News

The folder you are looking for has no displayable content.

You can try one of the following:

Access the folder using the Navigation user interface.

Access the folder as a Web folder. Your operating system and browser dictate whether or not this will work.

When I choose "Access the folder using the Navigation user interface" I can see it. But how to access the folder without the message?

Former Member
0 Kudos

Hi,

To access km file through LinktoURl. the URl should like this

http://hostname:port/irj/go/km/xx/xx/xxx

Regards,

Naga

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

Check this Blog

/people/bobu.georgeputheeckal/blog/2006/12/22/getting-an-image-from-km-documents-to-be-used-in-web-dynpro

Regards

Ayyapparaj

former_member751941
Active Contributor
0 Kudos

Hi Ola,

Check this threads,

Regards,

Mithu