Tuesday, September 29, 2009

List Fields

I underline these fields
EncodedAbsThumbnailUrl item in picture list, image thumbnail url
EncodedAbsWebUrl item in picture list, image url

ATTENTION:

Fields are common to all items of a list.
Adding or removing fields reflects on all items.

List of Fields in Picture Library
_________________________________

Field: ContentTypeId Field Type: ContentTypeId
Field: _ModerationComments Field Type: Note
Field: FileLeafRef Field Type: File
Field: Modified_x0020_By Field Type: Text
Field: Created_x0020_By Field Type: Text
Field: File_x0020_Type Field Type: Text
Field: HTML_x0020_File_x0020_Type Field Type: Text
Field: _SourceUrl Field Type: Text
Field: _SharedFileIndex Field Type: Text
Field: PreviewOnForm Field Type: Computed
Field: FileType Field Type: Computed
Field: ImageSize Field Type: Computed
Field: Title Field Type: Text
Field: ImageWidth Field Type: Integer
Field: ImageHeight Field Type: Integer
Field: ImageCreateDate Field Type: DateTime
Field: Description Field Type: Note
Field: Keywords Field Type: Note
Field: BkColor Field Type: Text
Field: textx Field Type: Text
Field: texty Field Type: Text
Field: picturex Field Type: Text
Field: picturey Field Type: Text
Field: textcolor Field Type: Text
Field: textbgcolor Field Type: Text
Field: ID Field Type: Counter
Field: ContentType Field Type: Text
Field: Created Field Type: DateTime
Field: Author Field Type: User
Field: Modified Field Type: DateTime
Field: Editor Field Type: User
Field: _HasCopyDestinations Field Type: Boolean
Field: _CopySource Field Type: Text
Field: _ModerationStatus Field Type: ModStat
Field: FileRef Field Type: Lookup
Field: FileDirRef Field Type: Lookup
Field: Last_x0020_Modified Field Type: Lookup
Field: Created_x0020_Date Field Type: Lookup
Field: File_x0020_Size Field Type: Lookup
Field: FSObjType Field Type: Lookup
Field: PermMask Field Type: Computed
Field: CheckedOutUserId Field Type: Lookup
Field: IsCheckedoutToLocal Field Type: Lookup
Field: CheckoutUser Field Type: User
Field: UniqueId Field Type: Lookup
Field: ProgId Field Type: Lookup
Field: ScopeId Field Type: Lookup
Field: VirusStatus Field Type: Lookup
Field: CheckedOutTitle Field Type: Lookup
Field: _CheckinComment Field Type: Lookup
Field: LinkCheckedOutTitle Field Type: Computed
Field: _EditMenuTableStart Field Type: Computed
Field: _EditMenuTableEnd Field Type: Computed
Field: LinkFilenameNoMenu Field Type: Computed
Field: LinkFilename Field Type: Computed
Field: DocIcon Field Type: Computed
Field: ServerUrl Field Type: Computed
Field: EncodedAbsUrl Field Type: Computed
Field: BaseName Field Type: Computed
Field: FileSizeDisplay Field Type: Computed
Field: MetaInfo Field Type: Lookup
Field: _Level Field Type: Integer
Field: _IsCurrentVersion Field Type: Boolean
Field: SelectTitle Field Type: Computed
Field: SelectFilename Field Type: Computed
Field: Edit Field Type: Computed
Field: owshiddenversion Field Type: Integer
Field: _UIVersion Field Type: Integer
Field: _UIVersionString Field Type: Text
Field: InstanceID Field Type: Integer
Field: Order Field Type: Number
Field: GUID Field Type: Guid
Field: WorkflowVersion Field Type: Integer
Field: WorkflowInstanceID Field Type: Guid
Field: ParentVersionString Field Type: Lookup
Field: ParentLeafName Field Type: Lookup
Field: EncodedAbsThumbnailUrl Field Type: Computed
Field: EncodedAbsWebImgUrl Field Type: Computed
Field: SelectedFlag Field Type: Computed
Field: NameOrTitle Field Type: Computed
Field: RequiredField Field Type: Computed
Field: Thumbnail Field Type: Computed
Field: Preview Field Type: Computed


You can find out field names for any list type
foreach (SPField field in MyList.Fields)
{
writer.Write("Field "+field.InternalName + "<br />");
}

No comments:

Post a Comment