列的条件格式
问题描述:
我有一个简单的列表,其中的项目是在夜间/白天运行的SSIS作业,并报告其成功或失败的状态。 我想将状态列的颜色设置为绿色或红色。 我是一名程序员,但JSON超出了我的知识范围
,只是想知道是否有人可以帮助我或指导我朝着正确的方向发展。 我确实理解条件格式在列表设置中的位置,但我只需要编码帮助。
I have a simple list where items are SSIS jobs that are run during the night/day, and reports their status of Success or Fail. I would like to color that Status column either green or red. I am a programmer, but JSON is out of my realm of knowledge and just wondering if someone can help me or guide me in the right direction. I do understand where the condition formatting is in the list settings, but I just need the help with the coding.
谢谢
Brad Allison
Brad Allison
答
更新: 实际上我只是去玩一些JSON并进行列格式化,而且令人惊讶的是,列的设置中已经存在条件格式。 因此,基于该值,我能够为该列着色
UPDATE: Actually I just went to play with some JSON and do the column formatting, and much to mu surprise, there is a conditional formatting in the column's settings already. So based on the value, I was able to color that column