Board logo

标题: 指定sql查询问题 [打印本页]

作者: x_xiao_m    时间: 2010-7-8 10:34     标题: 指定sql查询问题

我按使用手册上的操作做的指定sql查询,怎么也不成功,高手帮忙看下哪里出了错。下面是我生成的xml文件。谢谢

<?xml version="1.0" encoding="UTF-8" standalone="no"?><jatools Class="jatools.ReportDocument" Name="jatools report template"><VariableContext/><Page><Children ItemClass="PagePanel"><Item0><Width>753</Width><Height>80</Height><Type>100</Type></Item0><Item1><Y>802</Y><Width>753</Width><Height>280</Height><Type>103</Type></Item1><Item2><Y>80</Y><Width>753</Width><Height>722</Height><Children ItemClass="Table"><Item0><X>67</X><Y>35</Y><Children ItemClass="Label"><Item0><Name>$mysql</Name><Text>=anytable/Row</Text><Border/><Cell><Row>0</Row><Col>0</Col></Cell><InitPrint>builder = new jatools.component.table.DynamicColumnTableBuilder(me,anytable.getDataset());
builder.build();
</InitPrint></Item0><Item1><Text>=$now</Text><Border/><Cell><Row>1</Row><Col>0</Col></Cell><InitPrint>builder = new jatools.component.table.DynamicColumnTableBuilder(me,anytable.getDataset());
builder.build();
</InitPrint></Item1></Children><ColumnWidths>60</ColumnWidths><RowHeights>20,20</RowHeights></Item0></Children><Type>102</Type></Item2></Children></Page><NodeSource><Children ItemClass="DatasetNodeSource"><Item0><Children ItemClass="RowNodeSource"><Item0/></Children><Reader Class="SqlReader"><Name>anytable</Name><Sql>${mysql}</Sql><Connection><Driver>${property("driver")}</Driver><User>${property("user")}</User><Password>${property("pwd")}</Password><Url>${property("url")}</Url></Connection></Reader><TagName>anytable</TagName></Item0></Children></NodeSource></jatools>
作者: admin    时间: 2010-7-8 12:24

感觉你少了一个rowpanel板,要创建一个,并且绑定到Row节点
具体可参照:  功能演示/特殊报表效果/动态列报表.xml
作者: x_xiao_m    时间: 2010-7-8 14:02     标题: re:admin

我不知道你是那个版本的Demo,我下载的Demo里没有动态列报表.xml文件,你能发一个给我吗
作者: three    时间: 2010-7-8 14:08

简表最新的下载都会在网站首页的
http://www.jatools.com/jor/
作者: x_xiao_m    时间: 2010-7-8 14:29     标题: re:three

我刚下载了Demo没有发现Demo包括有“动态列添加.xml”的文件,请你们检查一下好吗,或者有其他动态列添加的例子麻烦作为附件贴出来好吗?
谢谢!
作者: admin    时间: 2010-7-8 16:08

见附件
作者: admin    时间: 2010-7-9 14:21

可以回吧




欢迎光临 杰表技术论坛 (http://bbs.jatools.com/) Powered by Discuz! 6.1.0