- 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.
推薦閱讀
- Word/Excel/PowerPoint 2013三合一高效辦公超級(jí)手冊(cè)
- Office 2016辦公應(yīng)用從入門到精通
- 計(jì)算機(jī)聯(lián)鎖圖冊(cè)(第二版)
- Excel大神是怎么做表的
- PPT制作應(yīng)用大全2019
- 中文PowerPoint 2003應(yīng)用基礎(chǔ)
- 一看即會(huì):新手學(xué)網(wǎng)上開(kāi)店與經(jīng)營(yíng)(超值視頻教學(xué)版)
- Word/Excel/PPT 2016辦公應(yīng)用從入門到精通
- 如何高效辦公:Excel 2013經(jīng)典應(yīng)用技巧大全
- Unity 3D\2D手機(jī)游戲開(kāi)發(fā):從學(xué)習(xí)到產(chǎn)品(第3版)
- Office 2013應(yīng)用技巧實(shí)例大全
- WPS Office高效辦公一本通:文字·表格·演示·PDF·腦圖
- 辦公自動(dòng)化全能一本通
- Excel統(tǒng)計(jì)分析:方法與實(shí)踐
- 隨身查:Office辦公高手應(yīng)用技巧