官术网_书友最值得收藏!

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.

  1. In the Data tab, we right-click on Functions, and in the drop-down menu, we select the Add Functions... option.
  2. Now we will see the following window:
  3. 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:
  4. 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
  5. In the Structure tab, navigate to Master Report | Group | Details Body | Details:
  6. In this tab, we configure the following:
    • Attributes.name = oddEvenRowBanding

    This will apply the oddEvenRowBanding function to this object.

  7. 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.

主站蜘蛛池模板: 师宗县| 宾阳县| 昆山市| 富源县| 建水县| 盐源县| 纳雍县| 永顺县| 诸暨市| 印江| 财经| 华阴市| 咸阳市| 台山市| 海宁市| 会东县| 长岛县| 南充市| 土默特左旗| 军事| 泌阳县| 辛集市| 眉山市| 岳普湖县| 闽侯县| 叙永县| 泾源县| 福鼎市| 汽车| 交口县| 松原市| 修水县| 玉林市| 武威市| 马公市| 晋江市| 尉氏县| 南阳市| 凤凰县| 仙游县| 丰宁|