|
Hello, Does someone know how generate dynamical result table,
without using <esql:get-columns/>? I would like to get column, where in the first line will be label's of column and another lines will be Generated directly from result. I am in this way: �������������������������������� <esql:results> ��������������������������������������� <xsp:logic> �������������������������������� ����� int columns = <esql:get-column-count/>; �������������������������������� ����� </xsp:logic> ��������������������������������������� <table class="dotted" cellspacing="0" cellpadding="2" width="100%"> ���������������������������������������������� <row> ���������������������������������������������������� <xsp:attribute name="bgcolor">#AAAAAA</xsp:attribute> ���������������������������������������������������� <xsp:logic> ���������������������������������������������������� for (int x=1; x < columns+1; x++) {�������������������������������������������������������������������������������� ������ ���������������������������������������� ������ �� ����������������������������������������������������������� <data> ������������������������������������������������������������������ <b> ������������������������������������������������������������������������ <esql:get-column-name column="1"/> ������������������������������������������������������������������������ ������������������������������������������������������������������ </b> ����������������������������������������������������������� </data> ���������������������������������������������������� } ���������������������������������������������� </xsp:logic> ���������������������������������������������� </row> ���������������������������������������������� <esql:row-results> ���������������������������������������������������� <row> ����������������������������������������������������������� <xsp:logic> ���������������������������������������������������� for (int x=1; x < columns+1; x++) {�������������������������������������������������������������������������������� ������ ���������������������������������������� ������ �� ����������������������������������������������������������� <data> ������������������������������������������������������������������������ <esql:get-ascii column="1"/> ������������������������������������������������������������������ </data> ��������������������������������������� ������������ } ���������������������������������������������� </xsp:logic> ���������������������������������������������������� </row> ���������������������������������������������� </esql:row-results> ��������������������������������������� </table> �������������������������������� </esql:results> Everything is fine, but I don't know how I could
change attributes number COLUMN in tags <esql:get-column-name/> and
<esql:get-ascii/> and remove value "1" by value of variable "x". Thanx for some suggestion and help. JayKay ---------------------------------------------------------------------------------------------
Jaroslav Kazmir phone:
+43-316-876-1140
fax: +43-316-876-1191 |
- RE: esql - dynamic result table "Kazm�r, Jaroslav"
- RE: esql - dynamic result table Artur Bialecki
