I have written a schema for a list which will only add one column to the default custom list, which is a number field. The area called is shown on the default view and is actually built on the list. This list is autopopulated with values that are set correctly. The problem is that the field does not appear on display / editing / new pages, it can be set through datasheet view. I do not understand why I'm not showing this especially when setting in schema.
Lots of suggestions will be preferred.
& lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; List xmlns: ows = "Microsoft SharePoint" title = "review duration" folder credential = "wrong" direction = "$ resource: instructions;" URL = "Listings / Review Duration" type the content enabled = "true" baseipip = "0" & gt; & Lt; Metadata & gt; & Lt; CONTENTTYPES & gt; & Lt; ContentTypeRef id = "0x01" & gt; & Lt; Folder target name = "item" /> & Lt; / ContentTypeRef & gt; & Lt; / CONTENTTYPES & gt; & Lt; Fields & gt; & Lt; Field id = "{B99EB797-4057-4a75-90BF-B40D0F89A9D9}" type = "number" decimal = "0" min = "0" max = "100" percent = "wrong" name = "month" required = "TRUE "Group =" SEED "DisplayName =" month "static name =" months "Show INDISplayForm =" TRUE "ShowInEditForm =" TRUE "ShowInNewForm =" TRUE "& gt; & Lt; / Field & gt; & Lt; / Fields & gt; & Lt; View & gt; & Lt; View BaseViewID = "0" type = "HTML" WebPartZoneID = "Main" DisplayName = "Default View" DefaultView = "True" SetupPath = "pages \ viewpage.aspx" ImageUrl = "/ _ Layout / Image / General" URL = " AllItems.aspx "& gt;
... hidden stuff ...
& lt; Viewfilled & gt; & Lt; FieldRef Name = "LinkTitle" & gt; & Lt; / FieldRef & gt; & Lt; FieldRef name = "month" & gt; & Lt; / FieldRef & gt; & Lt; / ViewFields & gt; & Lt; Query & gt; & Lt; OrderBy & gt; & Lt; FieldRef name = "title" & gt; & Lt; / FieldRef & gt; & Lt; / OrderBy & gt; & Lt; / Query & gt; & Lt; / View & gt; & Lt; / View & gt; & Lt; Form & gt; & Lt; Form Type = "DisplayForm" Url = "DispForm.aspx" SetupPath = "pages \ form.aspx" WebPartZoneID = "Main" /> & Lt; Form Type = "EditForm" Url = "EditForm.aspx" SetupPath = "Page \ form.aspx" WebPartZoneID = "Main" /> & Lt; Form type = "newform" url = "newform.expx" setuppath = "page \ form.expx" webpages = "main" /> & Lt; / Form & gt; & Lt; / Metadata & gt; & Lt; / List & gt;
The issue is that you add fields to the list, but at the same time the content Enable the type and specify that the item (0x01) is to use only the content type, in which the field is not included, then you are adding / editing the item and then you do not get the field.
There are two solutions:
- Do not enable content types (and still Create a new content type with the field and instead of adding that content type, the item
No comments:
Post a Comment