如何使用SharePoint中其他列表中的项目在newform.aspx中创建下拉列表列/字段? [英] How to create a dropdownlist column/field in a newform.aspx with items from another list in SharePoint?
本文介绍了如何使用SharePoint中其他列表中的项目在newform.aspx中创建下拉列表列/字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在newform.aspx中创建一个列/字段,其中包含SharePoint中其他列表中的项目。基本上,在列表中创建新项目时,他们应该会看到一个下拉列表,其中包含SharePoint中另一个列表中列中的项目。
注意:新项目是在外部列表,因此查找字段不是一个选项。
清单1:
承包商(专栏)
ABC
CDE
FJG
新表格ASP.NET代码:
I would like to create a column/field in a newform.aspx with items from another list in SharePoint. Basically while creating a new item in the list they should see a dropdownlist with items in columns from another list in SharePoint.
NOTE: The new item is been created in an External List, so lookup field is not an option.
List 1:
Contractor (Column)
ABC
CDE
FJG
New Form ASP.NET Code:
<SharePoint:FieldLabel Grid.Column="0" Grid.Row="4" ControlMode="New" FieldName="Contractor" />
<Comment FieldName="Contractor" FieldInternalName="Contractor" FieldType="Text" />
<SharePoint:FormField Grid.Column="1" Grid.Row="4" ControlMode="New" FieldName="Contractor" IncludeDescription="True"/>
谢谢。
Thanks.
推荐答案
这篇关于如何使用SharePoint中其他列表中的项目在newform.aspx中创建下拉列表列/字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文