根据条件限制SharePoint列表的条目数 [英] Restrict number of entries for SharePoint list based on criteria
问题描述
你好
这些论坛的长期用户提供了令人难以置信的洞察力,使我成为了我的工作中的摇滚明星.
Long time user of these forums as they have provided incredible insight that has allowed me to become a rock star at my job.
这可能是InfoPath问题,但无法找到该类别.我使用InfoPath创建了一个表单,并将其发布以在SharePoint上使用.我们正在更新此过程,每个月每个员工只需要17个条目. 我在SharePoint列表上设置了第二个数据连接,在SharePoint上打开新表单时,该表单用于检索数据.我想发生的是,当我在人员"或组"框中键入名称时,它会计算该名称的次数 在[分析师]列中列出.如果计数达到或超过我们的限制,则会显示一条错误消息,并且/或者将无法提交该记录.如果名称计数少于我们的限制,则允许创建新记录. 有什么想法吗?
This might be be an InfoPath question but was unable to locate that category. I created a form using InfoPath and published it to use on a SharePoint. We are updating this process where we only need 17 entries per employee for each month. I set up a second Data Connection to the SharePoint list where this form is used to retrieve data when a new form is opened on SharePoint. What I want to happen is when I type in a name in a Person or Group box it counts the amount of times that name is listed in the [Analyst] Column. If the count matches or exceeds our limit, an error message will populate and/or the record won't be able to be submitted. If the name count is less than our limit, a new record is allowed to be created. Any ideas if this is possible?
感谢任何方向,
-Nate
推荐答案
您可以在SharePoint服务器中创建Web服务,然后从InfoPath调用该Web服务以检查用户的商品计数.跨度>
SharePoint中的自定义Web服务.
https://www.youtube.com/watch?v=YBaIJvwmB44
http://www.c -sharpcorner.com/blogs/how-to-create-a-custom-web-service-in-sharepoint-2010
从InfoPath 2010调用Web服务
https://wmostafaw.wordpress. com/2012/08/07/calling-web-service-from-infopath-2010-with-parameters/
最好的问候,
Lee
这篇关于根据条件限制SharePoint列表的条目数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!