SubPointSolutions / spmeta2

SharePoint artifact provision for .NET platform. Supports SharePoint Online, SharePoint 2019, 2016 and 2013 via CSOM/SSOM.
http://subpointsolutions.com/spmeta2
133 stars 56 forks source link

XsltListViewWebPartDefinition ParameterBinding Deployment leads to wrong markup #1134

Open EA12 opened 5 years ago

EA12 commented 5 years ago

Deployment should lead to <ParameterBinding Name="ID" Location="QueryString(ID)" /> but Comes out as &lt;ParameterBinding Name=&quot;ID&quot; Location=&quot;QueryString(ID)&quot; /&gt;

CSOM on SharePoint-Online SPMeta2 v4.0.30319

Used this Test-Case

After Deployment, no data from source view is shown in the destinaton view. When I cross check with SharePoint-Designer I see the mentioned wrong Markup in the EditForm.

If I correct the Markup everything works as espected. So, it seems that something is wrong with the Deployment.

Model used (CSOMProvisionService):

var webModelPages = SPMeta2Model.NewWebModel(webModel =>
{
    webModel.AddList(Lists.GetAnalyseList(), list =>
    {
        list.AddHostListView(BuiltInListViewDefinitions.Lists.EditForm, listView =>
        {
            listView.AddXsltListViewWebPart(wpToDos);
        });
    });
});

provisionService.DeployWebModel(context, webModelPages);
SubPointSupport commented 5 years ago

Hi @EA12 ,

Looking into this today, thanks for sharing example and use case.