Dataform webpart with List name instead of ListID
-
2012년 3월 14일 수요일 오전 7:14
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="<View></View>" 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>
- 편집됨 Trimantra Software Solution LLP 2012년 3월 14일 수요일 오전 7:17
모든 응답
-
2012년 3월 19일 월요일 오전 4:29중재자
Hi Trimantra,
For the error message displayed, there are many reasons may cause this issue, I have seen some scenarios about this:
1, when the dataset return to the data view included a row with a calculated field was set to “”, more information: http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/48e9e1e0-433f-42e0-a072-1c6eeedbb7c6
2, some permission issue that need to add “NT AUTHORITY\authenticated users” to the data source library/list, more information:http://blogs.msdn.com/b/spdsupport/archive/2008/06/06/how-to-fix-error-unable-to-display-this-web-part-on-data-views-after-restoring-site-from-backup.aspxIf it persists, you may try to move the data source, and create a new data form web part by using the new data source, also, if you just want to save site as template instead of exporting/restoring the site, and make the data form web part available, as I know, there is no need to change the form web part, the data will be shown as expected.
Thanks,
QiaoQiao Wei
TechNet Community Support
- 답변으로 표시됨 Qiao WeiMicrosoft Contingent Staff, Moderator 2012년 3월 26일 월요일 오전 10:08

