原创文章,转载请注明出处: http://qq85609655.iteye.com/blog/2444142
Pentaho 社区版 8.2 终于提供了动态布局插件LayoutEditor
下载地址:
下载后
有bug无法正常使用,
cd /opt/pentaho/pentaho-server
vim pentaho-solutions/system/layoutEditor/resources/amd-components/LayoutEditor/resources/js/editor.js
变量名包点号(.),需要替换:
$elem.data('group').replace(/ /g, '_') + '_' + $elem.data('title').replace(/ /g, '_') + '_' + a_id.toString(); 替换如下 $elem.data('group').replace(/ /g, '_') + '_' + $elem.data('title').replace(/[. ]/g, '_') + '_' + a_id.toString();
替换后,结果如下:
root@b189494a75af:/opt/pentaho/pentaho-server# vim pentaho-solutions/system/layoutEditor/resources/amd-components/LayoutEditor/resources/js/editor.js
selectWidget: { elemSelector: '.widgetSelectorButton', eventName: 'click', eventFunction: function (event, editor, status, $html) { event.stopPropagation(); Logger.info('Widget selected clicked'); var $elem = $(event.currentTarget), d = new Date(), a_id = +d, title = $elem.data('title'), key = $elem.data('group').replace(/ /g, '_') + '_' + $elem.data('title').replace(/[. ]/g, '_') + '_' + a_id.toString(); //a_widget = $elem.data('group').replace(/ /g, '_') + '_' + $elem.data('title').replace(/ /g, '_'); if ($elem.hasClass('active')) { var widgetId = $elem.attr('widgetId'); editor.status.removeFromStatus('widgets', widgetId); $elem.children().eq(3).removeClass('active'); $elem.removeClass('active'); $elem.removeAttr('widgetId'); if (_.isEmpty(editor.status.getStatus()['widgets'])) { $('.addButton').prop('disabled', true); $('.addButton').addClass('disabled'); } } else { var value = { id: $elem.data('group').replace(/ /g, '_') + '_' + $elem.data('title').replace(/[. ]/g, '_') + '_' + a_id.toString(), group: $elem.data('group'), title: $elem.data('title'), desc: $elem.data('desc'), link: $elem.data('link'), placeholder: $elem.data('group').replace(/ /g, '_') + '_' + $elem.data('title').replace(/[. ]/g, '_') + '_' + a_id.toString(), type: 'wcdf', rendered: false }; editor.status.addToStatus('widgets', key, value); $('.addButton').prop('disabled', false); $('.addButton').removeClass('disabled'); $elem.addClass('active'); $elem.attr('widgetId',key); $elem.children().eq(3).addClass('active'); } } }
...
相关推荐
Learning Pentaho CTools Color Images Learning Pentaho CTools Color Images pentaho数据可视化 CTools 套件学习 使用书籍
Being an introductory chapter Chapter 1, Getting Started with CTools andChapter 9: Pentaho App Builder, Chapter 10, Embed, Deploy, and Debugdoes not contain code files. Chapter 1, Getting Started ...
learning-pentaho-ctoolslearning-pentaho-ctoolslearning-pentaho-ctoolslearning-pentaho-ctoolslearning-pentaho-ctoolslearning-pentaho-ctoolslearning-pentaho-ctools
Pentaho and CTools are two of the fastest and most rapidly growing tools for practical solutions not found in any other tool available on the market. Using Pentaho allows you to build a complete ...
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, ...
作为介绍性章节,第1章,CTools入门和第9章:Pentaho App Builder,第10章,嵌入,部署和调试不包含代码文件。 第1章“ CTools入门”简要介绍了CTools的历史。 它还将向您介绍该工具的用途,并教您安装社区工具...
1:Learning Pentaho CTools(PACKT,2016).pdf 2:Pentaho Data Integration Beginner's Guide, Second Edition.pdf 3:Packt.Pentaho for Big Data Analytics.2013.pdf 4:pentaho kettle solutions.pdf 5:[Packt ...
赠送jar包:pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar; 赠送原API文档:pentaho-aggdesigner-algorithm-5.1.5-jhyde-javadoc.jar; 赠送源代码:pentaho-aggdesigner-algorithm-5.1.5-jhyde-sources.jar; ...
[Packt Publishing] Pentaho 5.0 报表实例开发 初学者指南 (英文版) [Packt Publishing] Pentaho 5.0 Reporting by Example Beginner's Guide (E-Book) ☆ 图书概要:☆ Create high-quality, professional, ...
pentaho kettle中文开发手册
Pentaho Solutions Pentaho Solutions
解决 Cannot resolve org.pentaho:pentaho-aggdesigner-algorithm:5.1.5-jhyde jar放入D根目录执行: 以下命令加入本地maven库 mvn install:install-file -DgroupId=org.pentaho -DartifactId=pentaho-aggdesigner-...
Pentaho Data Integration(原Kettle)和 Data Reporting工具最新版9.0.0.2.530百度云下载地址 ETL工具及报表展示工具
org / pentaho / pentaho-aggdesigner-algorithm / 5.1.5-jhyde / pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar,解决maven引入hive的jar包时依赖报错Could not find artifact org.pentaho:pentaho-aggdesigner-...
Pentaho笔记 3 2 使用MySQL作为Pentaho默认数据库 4 2.1 创建数据库 4 2.2 配置Pentaho 4 1配置Pentaho使用FoodMart数据 6 1.1注册数据源 6 1.2定义多维数据schema 7 1.3注册schema 7 1.4配置Pentaho使用filesystem-...
解决maven引入hive的jar包时依赖报错Could not find artifact org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.5-jhyde in xxx的问题,maven路径org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho...
创建 Pentaho Solutions 中文
Pentaho Reporting(2014) 资源挺多的
pentaho4.8版本的汉化总结 其中包含绝大部分的汉化
Pentaho Solutions Business Intelligence and Data Warehousing with Pentaho and MySQL