flex - 创建数据透视或表格报告的方法?
寻找一些关于从 Flash Builder / Flex 4 创建报告的想法、策略、工具等。
我有一个 Flex 应用程序,允许从后端数据库创建/读取/更新/删除客户信息。它使用 Web 服务(zend amf -> mongo db 或 mysql)。例如,我已经通过网络服务将客户端数据作为集合存储在 Flex 中。
用户请求能够生成报告 - 在表格 Excel 样式网格(最有可能是数据网格)中显示特定年龄以下的客户列表。它将按人口统计(例如“保险类型”)进行排序和小计。理想情况下,用户希望能够选择报告(或数据网格/数据透视表)中允许的保险类型。
我知道一个选择是向用户提供一系列复选框或多选列表来选择保险类型。然后,向他们提供数据网格或高级数据网格组件来显示“报告”。
人们还使用过哪些其他技术、选项或组件?
Looking for some ideas, strategies, tools, etc. on creating reports from Flash Builder / Flex 4.
I have a flex application that allows create/read/update/delete of client information from a back-end database. It uses web services (zend amf -> mongo db or mysql). I already have the client data IN flex via the web service as a collection for example.
A user requests the ability to generate a report - to display a list of clients under a certain age in a tabular excel style grid (datagrid most likely). It will be sorted and subtotaled by a demographic such as "insurance type". Ideally the user would like to be able to select the insurance types allowed on the report (or in the datagrid/pivot table).
I know one option would be to present the user with a series of check boxes or a multi-select list to choose the insurance types. Then, present them with a data grid or advanced data grid component to display the 'report'.
What other techniques, options or components are available / have people used?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
你将无法避免你必须自己做一些工作的事实。您的解决方案对于商业选项来说过于定制,因为只有您知道要显示的数据。
您需要创建某种界面,让用户可以在报告中说出他想要的内容,同时 Flex 查询服务、获取需要显示的数据并知道如何正确显示它。您需要弄清楚每个部分才能发挥作用。
You won't be able to avoid the fact that you're going to have to do some work on your own. Your solution will be way too custom for a commercial options since only you know the data to display.
You need to create some kind of interface that the user can say what he wants in the report, while Flex queries the services, gets the data it needs to display and knows how to display it properly. You need to figure out each part for this to work.
我想我会将其发布为答案,希望人们可以贡献其他解决方案:
到目前为止我找到的报告解决方案:
OLAP 数据网格组件 (http://livedocs.adobe.com/flex/3/html/help .html?content=olapdatagrid_2.html) - 与高级数据网格相比,它的优势是什么?
MecGrid (http://www.mechansp.com/prod_mecgrid.php) 看起来免费?
flexreport (http://code.google.com/p/flexreport/) 开源(它会进行数据透视吗?)
daoflex 过时的 Flex 2,但基于 Java 代码生成 Flex 应用程序
商业选项 - 我有看到了一些具有枢轴功能的数据网格组件的不同商业选项,但我希望有一个免费或内置的解决方案
提到他们,
I thought I would post this as an answer and hopefully people can contribute additional solutions:
Reporting solutions I have found so far:
OLAP Data Grid component (http://livedocs.adobe.com/flex/3/html/help.html?content=olapdatagrid_2.html) - whats the advantage of this over the advanced data grid?
MecGrid (http://www.mechansp.com/prod_mecgrid.php) looks free?
flexreport (http://code.google.com/p/flexreport/) open source (will it do pivot?)
daoflex obsolete flex 2, but generated flex apps based on java code
Commercial options - I have seen a few different commercial options for data grid components with pivot capability, but I am hoping for a free or built in solution
To mention them,
也看看这里的示例:
http://www.adobe.com /devnet-apps/flex/tourdeflex/web/
选择数据可视化,然后选择 Flex Monster 文件夹下的数据透视表和图表。
那里有大量的信息和样本。
一个样本:
// return (Application.application.parameters['swfFilePath'] == null) ? 'flexmonster/' : Application.application.parameters['swfFilePath'];
}
have a look at the samples here too:
http://www.adobe.com/devnet-apps/flex/tourdeflex/web/
Select data visualization, and then Select pivot tables and charts, under the Flex Monster folder.
There is a wealth of information and samples there.
One sample:
// return (Application.application.parameters['swfFilePath'] == null) ? 'flexmonster/' : Application.application.parameters['swfFilePath'];
}
webpivottable 有一个纯 JavaScript 解决方案。没有flex,没有插件,没有任何后端技术依赖。这是 演示 。
There is a pure javascript solution at webpivottable . No flex, no plugin, no any back end technology dependence. Here is demo .