Hi guys,
I have one question regarding to add a visual web part to a Schema.XML.
If I have this visual Webpart:
<?xml version="1.0" encoding="utf-8"?><webParts><webPart xmlns="http://schemas.microsoft.com/WebPart/v3"><metaData><type name="SharePoint_Z_Drive_Project.WP_ErrorField.WP_ErrorField, $SharePoint.Project.AssemblyFullName$" /><importErrorMessage>$Resources:core,ImportErrorMessage;</importErrorMessage></metaData><data><properties><property name="Title" type="string">Error</property><property name="Description" type="string">Error Field WebPart</property></properties></data></webPart></webParts>
How do I have to add it to the Schema.xml of a list Definition in the forms area?
I tried this way:
<Form Type="EditForm" SetupPath="pages\form.aspx" WebPartZoneID="Main" Url="MyEditForm.aspx" Default="TRUE"><WebParts><AllUsersWebPart WebPartZoneID="Main" WebPartOrder="1"><![CDATA[<WebPart xmlns="http://schemas.microsoft.com/WebPart/v3"><Assembly>$SharePoint.Project.AssemblyFullName$, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly> <TypeName="SharePoint_Z_Drive_Project.WP_ErrorField.WP_ErrorField, $SharePoint.Project.AssemblyFullName$"></TypeName><FrameType>None</FrameType></WebPart> ]]></AllUsersWebPart></WebParts> </Form>
Is there something wrong?
Because when I edit an item in the list, I got this error message:
|