XML-Beispiel: Layoutdatei
Letzte Änderung: Mittwoch, 21. April 2010
Gilt für: SharePoint Server 2010
Im folgenden Beispiel wird eine einfache Layoutdatei für eine Ansicht zum Lesen von Elementen für einen externen Inhaltstyp gezeigt.
Beispiel
<?xml version="1.0" encoding="utf-8" ?>
<Container ContainerType="Stack" xmlns="https://schemas.microsoft.com/office/2009/05/BusinessApplications/Layout" xmlns:loc="https://schemas.microsoft.com/office/2009/05/BusinessApplications/Localization">
<CustomProperties>
</CustomProperties>
<Children>
<OBPart PartType="List" DataSourceName="PrimaryEntityNameInContext" Text="Related Order Headers" Description="A list of all related Orders" >
<CustomProperties >
<CustomProperty Name="DataSourceMode" Value="AssociationList" />
<CustomProperty Name="DataMemberName" Value="GetOrdersForCustomer" />
<CustomProperty Name="MaximumVisibleRowCount" Value="12" />
<CustomProperty Name="DefaultActionName" Value="Edit" />
<CustomProperty Name="DefaultActionSource" Value="TargetContext" />
<CustomProperty Name="ConsumerPartName" Value="IPOBP" />
</CustomProperties>
<ActionNames>
</ActionNames>
</OBPart>
<OBPart PartType="InfoPath">
<CustomProperties>
<CustomProperty Name="Name" Value="IPOBP" />
<CustomProperty Name="FormLocation" Value="OrderHeaderTemplate.xsn" />
<CustomProperty Name="IsReadOnly" Value="True" />
<CustomProperty Name="Height" Value="300" />
</CustomProperties>
</OBPart>
</Children>
</Container>