Unable to add selected webpart(s)

Stef Heyenrath
  • Unable to add selected webpart(s) Stef Heyenrath

    I've created a Custom List ('Tooltips') in SharePoint. After this I used SPSource to reverse engineer the list into a feature.

    After installing and activating this feature, I want to add this list in a WebPart zone.

    When doing this, I get an error message :

    Tooltips: List View Web Part could not be added, list may be hidden.

    What's wrong with the list?

    feature.xml

    <?xml version="1.0" encoding="utf-8"?>
    <Feature Id="70d49f3d-233a-482d-97e3-dcec2c236171"
             Title="MyApp - Tooltips"
             Description="Creates a Tooltips list which can be used for mouse-over texts in InfoPath and FormWrapper."
             Version="12.0.0.0"
             Hidden="FALSE"
             Scope="Web"
             DefaultResourceFile="core"
             ReceiverAssembly="MyApp.WebServices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1de0ffdb1fdf1b80"
             ReceiverClass="MyApp.WebServices.TooltipsReceiver"
             xmlns="http://schemas.microsoft.com/sharepoint/">
      <ElementManifests>
        <ElementManifest Location="elements.xml" />
        <ElementManifest Location="tooltips_manifest.xml" />
        <ElementFile Location="Tooltips\schema.xml" />
        <ElementFile Location="Tooltips\DispForm.aspx" />
        <ElementFile Location="Tooltips\EditForm.aspx" />
        <ElementFile Location="Tooltips\NewForm.aspx" />
        <ElementFile Location="Tooltips\AllItems.aspx" />
      </ElementManifests>
    </Feature>
    

    elements.xml

    <?xml version="1.0" encoding="utf-8" ?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    </Elements>
    

    schema.xml download schema.xml

  • Order of operations? Are you trying to add it to the zone before the list was created?

Related questions and answers
  • ()); } UPDATE: Based on feedback from Wictor, I tried the following: &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;webParts> &lt;webPart xmlns="http://schemas.microsoft.com/WebPart/v3"&gt; &lt...;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;"; //webPartXml = webPartXml + "&lt;WebPart xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns.../WebPart/v2/ContentEditor\" /&gt; &lt;PartStorage xmlns=\"http://schemas.microsoft.com/WebPart/v2/ContentEditor\" /&gt;&lt;/WebPart>"; var webPartXml = "&lt;?xml version=\"1.0\" encoding=\"utf-8

  • to be listed under the custom group. Any ideas on how I can debug this? Any constructive advice is greatly appreciated. Home elements.xml &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Elements xmlns...;Property Name="Group" Value="Custom" /&gt; &lt;/File> &lt;/Module> &lt;/Elements> IdeaEditor elements.xml &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Elements xmlns="http...="GhostableInLibrary" &gt; &lt;Property Name="Group" Value="Custom" /&gt; &lt;/File> &lt;/Module> &lt;/Elements> IdeaGrid elements.xml &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Elements

  • " xmlns="http://schemas.microsoft.com/sharepoint/"&gt; &lt;ElementManifests> &lt;ElementManifest Location="elements.xml"/&gt; &lt;/ElementManifests> &lt;/Feature> Element.xml &lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;Elements xmlns="http://schemas.microsoft.com/sharepoint/"&gt; &lt;Module Name="WebPartPopulation" Url="_catalogs/wp" RootWebOnly="TRUE"&gt...; } } } } finally { if (site != null) site.Dispose(); } } In the feature.xml i have this below &lt;?xml version="1.0" encoding="utf-8

  • (I have also asked this question on Stack Overflow) I have a SharePoint feature I'm using to add some custom aspx files to the Pages Library. When I activate the feature, I can visit the pages in-browser and they are visible in SPDesigner, but when I "View All Site Content" they are not there. Why is this the case? The Feature's Elements File: &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Elements Id="9e85eb79-6d8d-4ff3-b0d4-64d55c3bb577" xmlns="http://schemas.microsoft.com/sharepoint/"&gt; &lt;Module Name="Pages" Url="Pages"&gt; &lt;File Path="Example.aspx" Url

  • someone else has cracked this nut. &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Elements xmlns="http://schemas.microsoft.com/sharepoint/"&gt; &lt;Module Name="Pages"&gt; &lt;File Path="" Url="default.aspx"&gt; &lt;AllUsersWebPart WebPartZoneID="Left" WebPartOrder="1"&gt; &lt;![CDATA[ &lt;WebPart xmlns="http://schemas.microsoft.com/WebPart/v2" xmlns:iwp="http... to be able to add a web part to the "AllItems.aspx" form of a list, so I also tried to add the web part via the SCHEMA.XML file as described here: Add Web Part through the SCHEMA.XML but this didn't

  • information using GetList. I use the List GUID as the list name. An exception is thrown. The SOAP body is shown below. &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;soap:Envelope xmlns:soap="http...;errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/"&gt; Die Liste ist nicht vorhanden. Die ausgewählte Seite enthält eine Liste, die nicht vorhanden ist. Die Liste könnte von einem anderen Benutzer gelöscht worden sein. &lt;/errorstring> &lt;errorcode xmlns="http://schemas.microsoft.com/sharepoint/soap/"&gt;0x82000006&lt;/errorcode>

  • I have a content type defined in Elements.xml and I want to add an Event Receiver. My Elements.xml looks like this: &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Elements xmlns="http...://schemas.microsoft.com/sharepoint/events"&gt; &lt;spe:Receivers xmlns:spe="http://schemas.microsoft.com/sharepoint/events"&gt; &lt;Receiver> &lt;Name>ItemAdded</Name>... version="1.0" encoding="utf-16"?&gt; &lt;ContentType ID="0x0104008A424DE98660457481EB7D8DDB5161EE" Name="News Posting" Group="News" Description="A News Posting" Sealed="TRUE" Version="1"&gt; &lt;Folder

  • , but that ends up rendering the actual anchor tag, as opposed to a clickable hyperlink: &lt;a href="http://www.something.com"&gt;www.something.com&lt;/a> So then I tried creating a XSL transform, since... confirm (or deny) that the following looks legitimate (or suggest a better way to do it)? &lt;xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer

  • ;xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http...:EcmaScriptEncode($ListName),'};'))}"&gt;&lt;/input>&lt;/td> I need to add javascript within the DataFormWebPart so I can update another form field when the user clicks the 'Complete Task' button. I...="QueryString(ID)" DefaultValue="0"/&gt; &lt;ParameterBinding Name="ListName" Location="QueryString(List)" DefaultValue=""/&gt; &lt;/ParameterBindings> &lt;datafields>@Title,Title;@Priority

Data information