SharePoint视图格式 - 如果为空和

问题描述 投票:0回答:1

我有一个SP列表,并使用一些JSON格式化了视图,但在'打开'我想也包括IF打开和“人员选择器字段null”基本上我想要高亮显示一些未分配给某人的东西

{“schema”:“https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json”,“additionalRowClass”:“= if([$ Status] =='Open','ms-bgColor-green ms-fontColor-black',if([$ Status] =='Closed ','ms-bgColor-magentaLight ms-fontColor-black',if([$ Status] =='On Hold - 3rd Party','ms-bgColor-magentaLight ms-fontColor-black',if([$ Status] =='暂停 - 第三方','ms-bgColor-neutralLighterAlt ms-fontColor-black',if([$ Status] =='暂停 - 用户信息','ms-bgColor-purpleLight ms-fontColor-black ',if([$ Status] =='Closed','ms-bgColor-magentaLight ms-fontColor-black',if([$ Status] =='Request Completed Fulfilled','ms-bgColor-teal ms-fontColor -black',if([$ Status] =='Cancelled','ms-bgColor-yellow ms-fontColor-black',if([$ Status] =='Rejected Atlas','ms-bgColor-orangeLight ms- fontColor-black'if([$ Status] =='拒绝iHub','ms-bgColor-neutralSecondary ms-fontColor-black',''))“}

任何帮助都会很酷

json sharepoint formatting sharepoint-online
1个回答
0
投票
=if(@currentField <= @now && [$RAG] != 'Live', '#bc1010', '')"

&&用作和运算符。在上面的示例中,我正在查看时间是否现在,以及RAG列是否与Live不相等。

© www.soinside.com 2019 - 2024. All rights reserved.