简体   繁体   English

使用BCS筛选器限制外部列表上的项目

[英]Limit items on external list using BCS Filter

I have an external list which I want to filter without user input but try as I might I cannot see a solution?? 我有一个外部列表,我想在没有用户输入的情况下进行过滤,但是尝试一下,因为我可能看不到解决方案?

In my list I have a series of names and an archive flag, I want to show the names in a picker where the archive flag is set to false which I thought would be simply a case of setting a default value on a filter but no matter what I do. 在我的列表中,我有一系列名称和一个存档标志,我想在将存档标志设置为false的选择器中显示这些名称,我认为这只是在过滤器上设置默认值的情况,但无论如何我所做的。 The filter will not work unless there is a user added value 除非有用户附加值,否则过滤器将不起作用

grateful for some advice as I am slowly going cuckoo 感谢我的建议,因为我正在慢慢地布谷鸟

I am using on prem SP2013 with the BCS set to a SQL 2012 database 我在将SPS和BCS设置为SQL 2012数据库的SP2013上使用

If you are creating the External Content Type from SharePoint designer you can assign a default static value and even create a more complex filter with variables. 如果要通过SharePoint Designer创建外部内容类型,则可以分配默认静态值,甚至可以创建带有变量的更复杂的筛选器。 Be aware that if you are creating filters they can be wrong and you need to manually edit the *.ect file. 请注意,如果要创建过滤器,它们可能是错误的,因此您需要手动编辑* .ect文件。 I have an article in my blog about that, unfortunately it is in Swedish and about ODATA as the datasource, but the principle is the same. 不幸的是,我的博客中有一篇文章用瑞典语写,关于ODATA作为数据源,但原理是相同的。 Perhaps Goog... translate is able to help you a bit on your way: https://itgeneralisten.wordpress.com/2015/03/10/sharepoint-hosted-app-odata-och-filter/ 也许Goog ...翻译能够在您的工作中为您提供一些帮助: https//itgeneralisten.wordpress.com/2015/03/10/sharepoint-hosted-app-odata-och-filter/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM