use style in database view

VaniK
Tera Contributor

Hi, I have created a database view to use it in a report. I have a decimal field which needs to be highlighted in the report based on certain condition. 

ex: if the number is above 36 it should highlight green, else red

I have tried using configure style option on the main table but it does not carry over to the table. Any suggestions to achieve this? 

TIA! 

1 ACCEPTED SOLUTION

Hi @VaniK,

 

As I mentioned earlier, please use the prefix of the field like current.Prefix_column_name.

Hope this will resolve your issue.

 

Thanks !

View solution in original post

6 REPLIES 6

Shashank_18
Mega Guru

Hi @VaniK ,

 

You can use Field Style to display the field with certain background color. 

Please create 2 entries in the Field style table using your DB View:

1st Condition:

Shashank_18_0-1676397355064.png

 

 

2nd entry will have condition shown below:

Shashank_18_1-1676397423324.png

 

 

Hope this will resolve your issue. Please mark it as helpful/correct if it resolves your issue.

Thanks !

Thank you @Shashank_18 for your reply. I did create 'field style' on the table field but the color is only appearing on the table list view and form view but neither in the database view (this is the data source for the report) nor in the report. 

Hi @VaniK ,

 

To make it visible in the Database View table, you need to pass the attribute along with the prefix of that column.

 

I have created it and its working fine in both DB View and Report.

 

If possible, please share the screenshot, so that I can have a view of it.

Hi @Shashank_18 , Here are my screenshots

First screenshot is database view list view, second screen shot is created a style but does not work. 

 

database_view_listview.PNGspace_area_style.PNG