How to display another value if the column is null?

…衆ロ難τιáo~ 提交于 2019-12-20 07:48:40

问题


I am new to Birt reporting. My requirement is that, I want to display "N/A" when the actual value of the column is null.

For ex: select vendor from account where id=1;

o/p: NULL

so, in place of null values in the report I want to display those fields as N/A. How to do this?


回答1:


You can add a Value-Mapping in the Data-Cell where you want to display your value by the following:

Click in the Data-Cell where you want to display the value. Go to the "Property Editor" and select the Tab "Map". Click an "Add..." Select your value from the dropdown, select "Equal to" for the comparison, enter "null" for the value to compare to. Enter "N/A" for the alternative Value to display and click OK.



来源:https://stackoverflow.com/questions/36084594/how-to-display-another-value-if-the-column-is-null

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