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

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.

主站蜘蛛池模板: 榆林市| 新巴尔虎右旗| 营山县| 罗定市| 沙洋县| 上饶县| 富阳市| 略阳县| 福泉市| 宝应县| 宁德市| 那坡县| 瓮安县| 修文县| 吉木萨尔县| 南溪县| 潼关县| 墨竹工卡县| 大名县| 滦南县| 渑池县| 凤庆县| 新安县| 中牟县| 南川市| 柳河县| 镇原县| 拉萨市| 桃源县| 合山市| 康定县| 获嘉县| 金门县| 安宁市| 集贤县| 芷江| 余干县| 民丰县| 宁蒗| 高尔夫| 石阡县|