cancel
Showing results for 
Search instead for 
Did you mean: 

How to get "Details" page from search results page thru coding?

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

hi Yoav & Dimitry,

Thanks a lot for both of your kind help.

It helped me a lot in satisfying the requirement.

Special thanks to Yoav for referring to "PathKey" which helps me in further needs. As I am new to this KM Index Management APIs, your inputs helped me a lot.

Best regds,

alagammai.