Passaggio all'ora legale 31 marzo 2024 02:00 03:00 sposta avanti l'orologio di 1 ora (si dorme 1 ora in meno)
Questa feature di SharePoint aggiunge 2 voci al menu Action delle liste e altre 3 al menu Site Actions.
Queste permettono di esportare le configurazioni e i dati in formato xml (vedi anche Ottenere lo schema della lista/sito via browser).
Le voci sono:
  • (List) Actions \ Export XML esporta lo schema della lista (list template)
  • (List) Actions \ Export content XML esporta il contenuto della lista in formato XML
  • (Site) Site Actions \ Export site XML esporta lo schema del sito (site template)
  • (Site) Site Actions \ Export fieldtypes XML esporta la defiizione XML dele colonne di sito
  • (Site) Site Actions \ Export viewstyles XML esporta lo schema degli stili disponibili per una vista
In particolare il primo link, Export XML, è utile per estrarre la query CAML di una vista da utilizzare per costruire un oggetto SPQuery

La feature è composta dai file Feature.xml ed Elements.xml, vanno posizionati in 12\TEMPLATE\FEATURES\SgartListExportXML .
XML: Feature.xml
<Feature Id="8CF3C43B-0362-484d-9C6C-CE5E32ED6B17"
  Title="Sgart List Export XML"
  Description="Sgart esporta l'XML della lista"
  Scope="Site"
  Hidden="FALSE"
  xmlns="http://schemas.microsoft.com/sharepoint/">
  <ElementManifests>
    <ElementManifest Location="Elements.xml"/>
  </ElementManifests>
</Feature>

XML: Elements.xml
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction Id="SgartListXML"
    Location="Microsoft.SharePoint.StandardMenu"
    GroupId="ActionsMenu"
    Title="Export XML"
    Description="Export the XML list template"
    ImageUrl="/_layouts/images/LSTLG.GIF"
    RegistrationType="List"
    Sequence="1000"
    Rights="ManageLists"
    >
    <UrlAction Url="~site/_vti_bin/owssvr.dll?Cmd=ExportList&List={ListId}"/>
  </CustomAction>
  
  <CustomAction Id="SgartListXMLDisplay"
    Location="Microsoft.SharePoint.StandardMenu"
    GroupId="ActionsMenu"
    Title="Export content XML"
    Description="Export the content in XML format"
    ImageUrl="/_layouts/images/DATA.GIF"
    RegistrationType="List"
    Sequence="1005"
    Rights="ViewListItems"
    >
    <UrlAction Url="~site/_vti_bin/owssvr.dll?Cmd=Display&List={ListId}&XMLDATA=TRUE&View="/>
  </CustomAction>

  <CustomAction Id="SgartSiteXML"
    Location="Microsoft.SharePoint.StandardMenu"
    GroupId="SiteActions"
    Title="Export site XML"
    Description="Esport the XML site template"
    ImageUrl="/_layouts/images/TEMPWP.GIF"
    Sequence="1000"
    Rights="ManageWeb"
    >
    <UrlAction Url="~site/_vti_bin/owssvr.dll?Cmd=GetProjSchema"/>
  </CustomAction>

  <CustomAction Id="SgartFieldtypeXML"
    Location="Microsoft.SharePoint.StandardMenu"
    GroupId="SiteActions"
    Title="Export fieldtypes XML"
    Description="Esport the XML of fieldtypes"
    ImageUrl="/_layouts/images/lg_ICASPX.gif"
    Sequence="1005"
    Rights="ManageWeb"
    >
    <UrlAction Url="~site/_vti_bin/owssvr.dll?Cmd=GetProjSchema&SiteTemplate=fldtypes"/>
  </CustomAction>

  <CustomAction Id="SgartViewstylesXML"
    Location="Microsoft.SharePoint.StandardMenu"
    GroupId="SiteActions"
    Title="Export viewstyles XML"
    Description="Esport the XML of viewstyles"
    ImageUrl="/_layouts/images/HMVIEWS.GIF"
    Sequence="1010"
    Rights="ManageWeb"
    >
    <UrlAction Url="~site/_vti_bin/owssvr.dll?Cmd=GetProjSchema&SiteTemplate=vwstyles"/>
  </CustomAction>

</Elements>

Per installare la feature vedi Semplice Feature il file install.bat.
Potrebbe interessarti anche: