BusinessDataList Web 部件使用代码编辑视图
我正在 Sharepoint 中以编程方式添加 BDC 列表 Web 部件。 我也想使用代码编辑视图。 就像“满足这些条件的检索器项目”并允许分页...我尝试使用以下代码进行...
BusinessDataListWebPart consumer = new BusinessDataListWebPart();
consumer.View.AllowPaging = true;
consumer.View.AllowUserQueries = false;
consumer.View.QueryValues = "Project1";
consumer.View.FilterValues = "PRoject1";
在msdn上它说View.QueryValues属性(Microsoft.SharePoint.Portal.WebControls)和View.FilterValues属性(Microsoft. SharePoint.Portal.WebControls) 该成员保留供内部使用,不能直接在您的代码中使用。
有人知道怎么做吗?
I am adding BDC List Web Part programmaticaly in the Sharepoint. I want to edit view using code too.
Like "Retriever items that meet these criteria" and allow Paging...I tried to do using following code...
BusinessDataListWebPart consumer = new BusinessDataListWebPart();
consumer.View.AllowPaging = true;
consumer.View.AllowUserQueries = false;
consumer.View.QueryValues = "Project1";
consumer.View.FilterValues = "PRoject1";
On msdn it says View.QueryValues Property (Microsoft.SharePoint.Portal.WebControls) and View.FilterValues Property (Microsoft.SharePoint.Portal.WebControls)
This member is reserved for internal use and is not intended to be used directly from your code.
Anyone know how to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我对此的回答是推出您自己的 BusinessDataListWebPart。 我的意思是修改 SharePoint 中的 WP,然后将 wp(实际上是 xml)导出到 Visual Studio。 然后使用一项功能将修改后的 xml(新的 WP)添加到您的环境中。
更多信息:http://www.sharepointnutsandbolts.com /2007/05/deploying-web-parts-as-feature.html
My answer to this is to roll your own BusinessDataListWebPart. What I mean is to modify your WP in SharePoint and then export the wp (actually the xml) out to Visual Studio. Then use a feature to add that modified xml (the new WP) to your enviroment.
More info: http://www.sharepointnutsandbolts.com/2007/05/deploying-web-parts-as-feature.html