Using color codes in list component in ireport designer [duplicate]

戏子无情 提交于 2019-12-12 06:59:56

问题


I want to display a list of items ordered by their sales amount. I want to use some color code for displaying high, medium and low with actual values. i.e. each item in list will contain the no, item name, color code(in a square) and sales amount. Is this possible in iReport designer? Also I want to apply a vertical scroll bar to my list. How both this can be achieved in iReport designer. Thank you.


回答1:


what I understand from above your question, I think you need to display different color based on high, medium, etc. with sales amount.

By applying Conditional Styles, you can able to get your requirement

Formatting field data color based on condition

For example, if salesamount is between X and Y, you can apply a specific style using the color you want.

conditional style reference

Hope this helps you.



来源:https://stackoverflow.com/questions/25010627/using-color-codes-in-list-component-in-ireport-designer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!