sharepoint - Why do I get this error in SPFieldCollection.AddFieldAsXml()? "The specified field name is too long" -


When I call SPFieldCollection.AddFieldAsXml () then I get an error.

Why is that so? Here I am using the string:

"field type =" note "required =" false 'NumLines =' 6 'RichText =' FALSE 'Sortable =' FALSE 'id =' Aaaaaaaaaaaaaaaaaaaaaaaaaaaaa 'Static name = "Temffild" name = "Temffild' / & gt;"

of course, I'm using a different grid. Edit

To: MOSS2007 / WSS3.0 EDIT2: Retrieved as question.

I forgot DisplayName attribute the following:

" Field type = 'note' required = 'wrong' NumLines = '6' rich text = 'wrong' Sortable = 'FALSE' ID = '{aaaaaaaaaaa -aaaaaaaaaaaaaaa}' DisplayName = 'tempField' StaticName = 'tempField' name = 'tempField "/ & gt;"


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -