以编程方式将值设置为共享点列表2010中的下拉列表 [英] Set programmatically value to a dropdownlist in share point list 2010
本文介绍了以编程方式将值设置为共享点列表2010中的下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经在sharepoint 2010 for teamsite的teamsite中创建了一个列表名称Expense。
现在,当我在visual studio 2010中添加该列表的顺序工作流时。
我想以编程方式将值设置为visual studio工作流代码中该列表的下拉列表。
解决方案
使用工作流代码访问项目并使用以下技术进行设置:< br $>
项目[columnname] =value;
Item.update();
其中columnname =下拉列表的名称
value =您要设置的值
I have created a list name Expense in teamsite of sharepoint 2010 for workflow.
Now when I am adding the sequential workflow for that list in visual studio 2010.
I want to set the value to the dropdownlist of that list in visual studio workflow code programmatically.解决方案Access the item using workflow code and set using the technique below:
Item[columnname] = "value"; Item.update();
where columnname = Name of the dropdownlist column
value = the value you want to set
这篇关于以编程方式将值设置为共享点列表2010中的下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文