다음을 통해 공유


SP.FieldCollection.addDependentLookup(displayName, primaryLookupField, lookupField) Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Remarks
Applies To

Adds a secondary lookup field that depends on a primary lookup field for its relationship to the list where it gets its information.

var value = SP.FieldCollection.addDependentLookup(displayName, primaryLookupField, lookupField);

Parameters

displayName

Type: String

The display name for the secondary lookup field.

primaryLookupField

Type: SP.Field

The primary lookup field.

lookupField

Type: String

The internal name of the primary field in a related list.

Return Value

Type: SP.Field

The new secondary lookup field.

Remarks

In a multicolumn lookup, the primary field is the SP.FieldLookup Class object that establishes the relationship with the list that is the source of the lookup field's value. One or more secondary fields can then depend on the primary field for their relationship to the source list.

Applies To

SP.FieldCollection Class

See Also

Reference

SP.FieldCollection Methods

SP.FieldCollection Properties

SP Namespace