none
Dataform webpart with List name instead of ListID

    질문

  • I am using data form webpart. I want to use list name instead of listid as I want to use sitetemplate for new site.

    I am using following configuration but facing error in sharepoint designer.I have also tried 'ListDisplayName' instead 'ListName' but same error.

    "The server returned a non-specific error when trying to get data from the data source. Check the format and content of your query and try again. If the problem persists, contact the server administrator."

    <WebPartPages:DataFormWebPart runat="server" Description="" ListDisplayName="GranteeList" PartOrder="2" HelpLink=""
     AllowRemove="True" IsVisible="True" AllowHide="True" UseSQLDataSourcePaging="True"
      ExportControlledProperties="True" DataSourceID="" Title="DataView 1" ViewFlag="8" NoDefaultStyle="TRUE" AllowConnect="True" FrameState="Normal" PageSize="-1" PartImageLarge="" AsyncRefresh="False" ExportMode="All" Dir="Default" DetailLink="" ShowWithSampleData="False" FrameType="Default" PartImageSmall="" IsIncluded="True" SuppressWebPartChrome="False" AllowEdit="True" ManualRefresh="False" AutoRefresh="False" AutoRefreshInterval="60" AllowMinimize="True" ViewContentTypeId="" InitialAsyncDataFetch="False" MissingAssembly="Cannot import this Web Part." HelpMode="Modeless" ListUrl="" ID="g_e3ce551f_e6e1_4ef5_bb22_2c891c0a089b" ConnectionID="00000000-0000-0000-0000-000000000000" AllowZoneChange="True" IsIncludedFilter="" __MarkupType="vsattributemarkup" __WebPartId="{E3CE551F-E6E1-4EF5-BB22-2C891C0A089B}" __AllowXSLTEditing="true" WebPart="true" Height="" Width=""><ParameterBindings>
            <ParameterBinding Name="ListName" Location="None" DefaultValue="GranteeList"/>
            <ParameterBinding Name="MaximumRows" Location="None" DefaultValue="30"/>
            <ParameterBinding Name="dvt_apos" Location="Postback;Connection"/>
            <ParameterBinding Name="ManualRefresh" Location="WPProperty[ManualRefresh]"/>
            <ParameterBinding Name="UserID" Location="CAMLVariable" DefaultValue="CurrentUserName"/>
            <ParameterBinding Name="Today" Location="CAMLVariable" DefaultValue="CurrentDate"/>
        </ParameterBindings>
    <DataFields>

    <SharePoint:SPDataSource runat="server" DataSourceMode="List" SelectCommand="&lt;View&gt;&lt;/View&gt;" UseInternalName="True" UseServerDataFormat="True" ID="dataformwebpart2">

    <SelectParameters>

    <WebPartPages:DataFormParameter ParameterKey="ListName" PropertyName="ParameterValues" DefaultValue="GranteeList" Name="ListDisplayName"></WebPartPages:DataFormParameter>

    <WebPartPages:DataFormParameter ParameterKey="MaximumRows" PropertyName="ParameterValues" DefaultValue="30" Name="MaximumRows"></WebPartPages:DataFormParameter>

    <WebPartPages:DataFormParameter ParameterKey="MaximumRows" PropertyName="ParameterValues" DefaultValue="10" Name="MaximumRows"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="MaximumRows" PropertyName="ParameterValues" DefaultValue="10" Name="MaximumRows"></WebPartPages:DataFormParameter>

    </SelectParameters>

    <UpdateParameters>

    <WebPartPages:DataFormParameter ParameterKey="ListName" PropertyName="ParameterValues" DefaultValue="GranteeList" Name="ListName"></WebPartPages:DataFormParameter>
    </UpdateParameters>

    <InsertParameters><WebPartPages:DataFormParameter ParameterKey="ListName" PropertyName="ParameterValues" DefaultValue="GranteeList" Name="ListName"></WebPartPages:DataFormParameter>
    </InsertParameters>

    <DeleteParameters><WebPartPages:DataFormParameter ParameterKey="ListName" PropertyName="ParameterValues" DefaultValue="GranteeList" Name="ListName"></WebPartPages:DataFormParameter>
    </DeleteParameters>
    </SharePoint:SPDataSource>
    </DataSources>
    </WebPartPages:DataFormWebPart>


    2012년 3월 14일 수요일 오전 7:14

답변