PANVEGA’s Blog

DotNet Development, SharePoint Customizing, Silverlight, MS Infrastructure and other tips and tricks

Can´t automatically dublicate Variation Source Sites

Posted by PANVEGA on March 31, 2008

When I create a new MOSS Application using Varaiations Feature for different languages and created some custom DataView webparts for instance. The automatic referencing, dublicating the content from the source Site to the other variation sites did not work by default. With the standard pages everything works fine.

The problem is that some important patameters are missing or aren´t implemented completely.

Open your custom aspx page with the SP Designer and view the beginning of the page. It should look like the following code snippet for InsertParameters, UpdateParameters, DeleteParameters and ParameterBindings.

I hope this information can help you.

<SelectParameters><asp:Parameter
DefaultValue=”8A2BD67C-2569-45C0-9DF3-0993A82620EF” Name=”ListID”></asp:Parameter><asp:Parameter DefaultValue=”/INT/company/career/” Name=”WebURL”></asp:Parameter>
</SelectParameters><UpdateParameters><asp:Parameter DefaultValue=”8A2BD67C-2569-45C0-9DF3-0993A82620EF” Name=”ListID”>
</asp:Parameter><asp:Parameter DefaultValue=”/INT/company/career/” Name=”WebURL”></asp:Parameter>
</UpdateParameters><InsertParameters><asp:Parameter DefaultValue=”8A2BD67C-2569-45C0-9DF3-0993A82620EF” Name=”ListID”></asp:Parameter><asp:Parameter DefaultValue=”/INT/company/career/” Name=”WebURL”></asp:Parameter>
</InsertParameters><DeleteParameters><asp:Parameter DefaultValue=”8A2BD67C-2569-45C0-9DF3-0993A82620EF” Name=”ListID”></asp:Parameter><asp:Parameter DefaultValue=”/INT/company/career/” Name=”WebURL”></asp:Parameter>
</DeleteParameters>
</SharePoint:SPDataSource>
</DataSources>
<ParameterBindings>
 <ParameterBinding Name=”ListID” Location=”None” DefaultValue=”8A2BD67C-2569-45C0-9DF3-0993A82620EF”/>
 <ParameterBinding Name=”WebURL” Location=”None” DefaultValue=”/INT/company/career/”/>
 <ParameterBinding Name=”dvt_apos” Location=”Postback;Connection”/>
 <ParameterBinding Name=”UserID” Location=”CAMLVariable” DefaultValue=”CurrentUserName”/>
 <ParameterBinding Name=”Today” Location=”CAMLVariable” DefaultValue=”CurrentDate”/>
 <ParameterBinding Name=”dvt_groupfield” Location=”Postback;Connection”/>
</ParameterBindings>

 <xsl:stylesheet>……

 

Other refernces:

http://www.jyhuh.com/blog/archive/2007/05/23/Creating_DataView_programmatically_using_DataFormWebPart.aspx

http://sanjayapdl.wordpress.com/2008/07/29/creating-a-listview-webpart-programatically/

http://blogs.officezealot.com/jkremer/archive/2007/03/15/20192.aspx

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: