You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 4
Next »
在开发数据集插件/程序数据集的时候,通常都是需要能支持参数的,下面的例子就讲解如何来支持参数并且在设计器中预览的时候会要求输入参数值进行查询。
关键节点
插件配置
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<plugin>
<id>com.fr.solution.plugin.db.query</id>
<name><![CDATA[带参数的数据集]]></name>
<active>yes</active>
<version>1.0</version>
<env-version>8.0</env-version>
<jartime>2016-05-20</jartime>
<vendor>fanruan.richie</vendor>
<description><![CDATA[带参数的数据集示例。]]></description>
<change-notes><![CDATA[
[2016-10-08]初始化插件</p>
]]></change-notes>
<extra-core>
<LocaleFinder class="com.fr.solution.plugin.db.query.QueryLocaleFinder"/>
</extra-core>
<extra-report>
</extra-report>
<extra-designer>
<TableDataDefineProvider class="com.fr.solution.plugin.db.query.QueryTableDataDefine"/>
<ServerTableDataDefineProvider class="com.fr.solution.plugin.db.query.QueryTableDataDefine"/>
</extra-designer>
</plugin>
其中,第14到16行是引入的国际化文件实现,第20到23行是数据集界面接口的引入。
源码
源码地址:http://www.finedevelop.com:2015/projects/PB/repos/plugin-tabledata-parameter/browse