Foros de discusión

onclick for row in a search container

thumbnail
Priyanka Dhingra, modificado hace 11 años.

onclick for row in a search container

Liferay Master Mensajes: 501 Fecha de incorporación: 20/12/11 Mensajes recientes
I want to implement an onclick call for rows in the searchcontainer table. I want to show the details of the clicked row in some other page

Thanks in Advance

Regards
Priyanka
thumbnail
Priyanka Dhingra, modificado hace 11 años.

RE: onclick for row in a search container

Liferay Master Mensajes: 501 Fecha de incorporación: 20/12/11 Mensajes recientes
Any help plz
thumbnail
KK rajput, modificado hace 11 años.

RE: onclick for row in a search container

Expert Mensajes: 266 Fecha de incorporación: 10/04/08 Mensajes recientes
You can use ResultRow object on jsp for this.
example:
ResultRow row = new ResultRow(...);
row.addJSP([Your_jsp_page_path], application, request, response);

HTH
KamalKant
thumbnail
Priyanka Dhingra, modificado hace 11 años.

RE: onclick for row in a search container

Liferay Master Mensajes: 501 Fecha de incorporación: 20/12/11 Mensajes recientes
How does that help...can u be more detailed @Kamalkant?
thumbnail
KK rajput, modificado hace 11 años.

RE: onclick for row in a search container

Expert Mensajes: 266 Fecha de incorporación: 10/04/08 Mensajes recientes
Priyanka Dhingra:
How does that help...can u be more detailed @Kamalkant?

In the listing page some thing like this

List resultRows = searchContainer.getResultRows();

for (int i = 0; i < results.size(); i++) {
SDataReminder sdr = results.get(i);

ResultRow row = new ResultRow(sdr, sdr.getScheduleId(), i);

row.addJSP("/html/record/record_display.jsp", application, request, response);



// Add result row

resultRows.add(row);
}


in record_display.page you can get info

<%
ResultRow row = (ResultRow)request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);

SDataReminder sdr = (SDataReminder)row.getObject();


%>