Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Shawn Li
A table report portlet template based on a single SQL statement
1 de febrero de 2013 20:13
Respuesta

Shawn Li

Ranking: New Member

Mensajes: 8

Fecha de incorporación: 1 de febrero de 2013

Mensajes recientes

A single SQL statement actually gives you all the information to create a full-fledged web portlet for a simple table report:

(1) Number of rows.
(2) Number of columns
(3) Column names

Based on XSLT and JSP, I created a table report portlet template based on a single SQL statement.

This is a simple SQL statement running on MySql:



This is a simple table report portlet built within 5 minutes on the template:



This is the xslt style sheet which is built automatically by the template sysytem. You can do further modification for your own need.

Hitoshi Ozawa
RE: A table report portlet template based on a single SQL statement
2 de febrero de 2013 3:41
Respuesta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensajes: 7949

Fecha de incorporación: 23 de marzo de 2010

Mensajes recientes

Are you going to make your portlet available?
David Ilechukwu
RE: A table report portlet template based on a single SQL statement
2 de febrero de 2013 16:47
Respuesta

David Ilechukwu

Ranking: Regular Member

Mensajes: 128

Fecha de incorporación: 7 de junio de 2010

Mensajes recientes

Sounds interesting Shawn!
Have you tried running your report with data in one of the rows not containing anythings (is equal to NULL)?
Please keep us posted on how this turns out.

Cheers