列表列中的计算唯一值 [英] Calculated Unique Value in list column

查看:117
本文介绍了列表列中的计算唯一值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有

我已经设置了2个列表,每周更新1个,时间段为8-10, 10-12等及其旁边的数字(插槽1,2,3等的数量)。另一个是我希望根据选择创建计算字段的日历 - 但是给出一个唯一值,例如01/01 / 19,8-10,1。

I have set up 2 lists, 1 which is updated weekly that has time slots 8-10, 10-12 etc and a number next to it (number of slots 1, 2,3 etc). the other, a calendar where I want to create a calculated field based on choices - but giving a unique value eg 01/01/19,8-10,1.

现在我可以让它从其他字段的选项中插入日期和插槽,但我需要计算

Now I can have it insert the date and slot from choices in the other fields but I need to calculate

if(" 01/01 / 19,8-10,1"不存在,允许它,否则"01/01 / 19,8-10,2"等等从第一个列表到最大值然后完全拒绝

if("01/01/19,8-10,1" doesn't exist, allow it, else "01/01/19,8-10,2" etc to the max from the first list and then reject it in full

任何想法?

Tom

推荐答案

嗨Tom,

默认情况下,我们无法在计算列中强制执行唯一值。

By default, we cannot enforce the unique value in the calculated column.

如果您想基于多个列强制执行唯一条目,您可以在表单中添加JavaScript代码。

And if you want to enforce unique entries based on multiple columns, you could add the JavaScript code in the forms.

更多参考:

基于Sharepoint中多列的唯一条目清单。

最佳标准ds,

Sara Fan


这篇关于列表列中的计算唯一值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆