- Pentaho 5.0 Reporting by Example
- Mariano García Mattío Dario R. Bernabeu
- 225字
- 2021-08-13 16:24:35
Time for action – adding functions
We will add a function to color the rows in an alternating manner, differentiating between the even and odd rows, just as they appear in the finished report.
- In the Data tab, we right-click on Functions, and in the drop-down menu, we select the Add Functions... option.
- Now we will see the following window:
- This window contains all of the functions that we can create in PRD grouped into categories. In this case, we choose the Row Banding function in the Report category and click on OK to create it:
- Next, we configure its name, background color, and the name of the element/object that the function will be applied to:
- Function Name =
RowBanding
- Active Banding Color =
#ccff66
- Apply Element(s) Named =
oddEvenRowBanding
- Now that the function has been defined, we can apply it
- Function Name =
- In the Structure tab, navigate to Master Report | Group | Details Body | Details:
- In this tab, we configure the following:
- Attributes.name =
oddEvenRowBanding
This will apply the
oddEvenRowBanding
function to this object. - Attributes.name =
- We see what the report looks like at this point. Press the preview button. We should obtain the following result:
What just happened?
We added a function to alternately color the rows of our report. We configured this function according to our needs and we applied it to our report.
推薦閱讀
- Office 2016辦公應(yīng)用從入門到精通
- 和秋葉一起學(xué):秒懂WPS文字處理
- Excel 2013應(yīng)用技巧實(shí)例大全
- 普通WPS Word規(guī)范排版公文格式
- Flash CS6核心應(yīng)用案例教程(全彩慕課版)
- Excel經(jīng)典教程:公式與函數(shù)
- Word 2007辦公應(yīng)用融會(huì)貫通
- Excel 2007使用大全
- 中文版Office 2016三合一辦公基礎(chǔ)教程
- Excel/PPT 2013辦公應(yīng)用從入門到精通
- Pentaho 5.0 Reporting by Example
- 電腦辦公從新手到高手(超值版)
- 快·易·通:2天學(xué)會(huì)Excel表格與數(shù)據(jù)處理(2016版)
- 新印象 Premiere Pro CC 2018短視頻剪輯基礎(chǔ)與實(shí)戰(zhàn)
- 指尖上的效率,Excel快捷鍵手冊(cè)