发新话题
打印

创建主从报表_问题

创建主从报表_问题

管理员:您好
今天下午,我在本地测试了一下贵公司网站上进阶视频里的主从报表例子。
我按照视频一步一步在本地操作,但是提示不成功。
我用的mysql数据库。
能解释一下${$.orderid} 的作用吗?
错误如下:
脚本解析错误[null]:
Sourced file: inline evaluation of: ``$.orderid;'' : Class or variable not found: $.orderid

Sourced file: inline evaluation of: ``$.orderid;'' : Class or variable not found: $.orderid : at Line: 1 : in file: inline evaluation of: ``$.orderid;'' : $ .orderid

期待您的回复!谢谢!

TOP

请把模板文件,发上来.

${$.orderid} 是说从表的sql,需要以主表上的orderid字段,作为过滤条件.

TOP

回复 2# admin 的帖子

主从.xml如下:
<?xml version="1.0" encoding="UTF-8"?><jatools Class="jatools.ReportDocument" Name="jatools report template"><VariableContext/><Page><Children ItemClass="PagePanel"><Item0><Width>753</Width><Height>612</Height><Children ItemClass="Panel"><Item0><NodePath>employee/Row</NodePath><PrintStyle>print-mode:everypage;visible:true;repeat-count-x:auto;repeat-count-y:2;</PrintStyle><X>1</X><Y>79</Y><Width>735</Width><Height>533</Height><Children><Item0 Class="Text"><Variable>=$.employeeid</Variable><X>235</X><Y>25</Y><Width>110</Width><Height>23</Height></Item0><Item1 Class="Text"><Variable>=$.city</Variable><X>235</X><Y>48</Y><Width>110</Width><Height>23</Height></Item1><Item2 Class="Text"><Variable>=$.scope</Variable><X>235</X><Y>72</Y><Width>110</Width><Height>23</Height></Item2><Item3 Class="Text"><Variable>=$.enterprise</Variable><X>235</X><Y>96</Y><Width>110</Width><Height>23</Height></Item3><Item4 Class="Label"><Text>id</Text><X>114</X><Y>24</Y><Width>110</Width><Height>23</Height></Item4><Item5 Class="Label"><Text>city</Text><X>114</X><Y>48</Y><Width>110</Width><Height>23</Height></Item5><Item6 Class="Label"><Text>scope</Text><X>114</X><Y>72</Y><Width>110</Width><Height>23</Height></Item6><Item7 Class="Label"><Text>enterprise</Text><X>114</X><Y>96</Y><Width>110</Width><Height>23</Height></Item7><Item8 Class="Text"><Variable>=$.orderid</Variable><X>235</X><Y>118</Y><Width>90</Width><Height>20</Height></Item8><Item9 Class="Label"><Text>name</Text><X>115</X><Y>123</Y><Width>90</Width><Height>20</Height></Item9></Children></Item0></Children><Type>100</Type></Item0><Item1><Y>802</Y><Width>753</Width><Height>280</Height><Type>103</Type></Item1><Item2><Y>612</Y><Width>753</Width><Height>190</Height><Type>102</Type></Item2></Children></Page><NodeSource><Children ItemClass="DatasetNodeSource"><Item0><Children ItemClass="RowNodeSource"><Item0><Children ItemClass="DatasetNodeSource"><Item0><Children ItemClass="RowNodeSource"><Item0/></Children><Reader Class="SqlReader"><Name>employee_order</Name><Sql>select * from order_new where orderid='${$.orderid}'</Sql><Connection><Driver>org.gjt.mm.mysql.Driver</Driver><User>root</User><Password>root</Password><Url>jdbc:mysql://localhost:3306/test</Url></Connection></Reader><TagName>employee_order</TagName></Item0></Children></Item0></Children><Reader Class="SqlReader"><Name>employee</Name><Sql>select * from employee</Sql><Connection><Driver>org.gjt.mm.mysql.Driver</Driver><User>root</User><Password>root</Password><Url>jdbc:mysql://localhost:3306/test</Url></Connection></Reader><TagName>employee</TagName></Item0></Children></NodeSource></jatools>

TOP


你先在本地运行下这个模板看看是否可以运行。
附件: 您所在的用户组无法下载或查看附件

TOP

回复 4# three 的帖子

管理员:您好
zhucong.rar里的这个模板是可以运行正常的。

TOP

你留一下你的QQ。。。我帮你远程看下。。。

TOP

回复 6# three 的帖子

qq:403923736

TOP

在three的帮助下,顺利把问题解决了。多谢管理员。

TOP

引用:
原帖由 haohadon 于 2009-12-18 11:24 发表
在three的帮助下,顺利把问题解决了。多谢管理员。

TOP

发新话题