on 2005 Jul 25 12:35 PM
hi KM-TREX Gurus,
Does anybody have any idea about how to get the "Details" page from the search results page? I am using the KM IndexManagement API for getting the search results page.
Any clue about the class/method that helps in getting the details page will be really helpful and will be suitably rewarded.
Please help me out. It is an urgent requirement.
best regds,
alagammai.
Hi Alagammai,
Here is a code create a link to the details page of a resource:
r is a resource, i is its index in the results.
IURLGeneratorService urlgen = (IURLGeneratorService)ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.URLGENERATOR_SERVICE);
Link details = new Link("details_" + i);
details.addText("details");
try {
details.setReference(urlgen.getResourcePageUri(PathKey.DETAILS_PAGE, r.getAccessRID(), null).toString());
} catch (Exception e) {
}
details.setTarget("_blank");
For other resource related links, explore PathKey's options.
Hope that helps,
Yoav.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
What do you mean exactly by getting details page?
Do you want to build-in a link which directs to this page? In this case you can make use of com.sap.km.cm.uidetatais component in the format $server_url/com.sap.km.cm.uidetatais/$your_resource.
Regards,
Dimitry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
10 | |
9 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.