Requirement: Get data from the parent site and show in subsite using dataform webpart.
Steps.
1. Designer --> Add Empty DataForm Webpart
2. Select Source
3. Insert Selected Fields as multiple items view.
4. Remove all ListNames and change it to ListIDs in parameter binding and datasource section.
5. Remove listid and listname in dataformwebpart attributes section.
4. Add below for parameter binding.
<ParameterBinding Name="WebURL" Location="None" DefaultValue="/sites/subsite/"/>
5. Add below for select/update/insert/delete parameters
<WebPartPages:DataFormParameter Name="WebURL" ParameterKey="WebURL" PropertyName="ParameterValues" DefaultValue="/sites/subsite/"/>
Steps.
1. Designer --> Add Empty DataForm Webpart
2. Select Source
3. Insert Selected Fields as multiple items view.
4. Remove all ListNames and change it to ListIDs in parameter binding and datasource section.
5. Remove listid and listname in dataformwebpart attributes section.
4. Add below for parameter binding.
<ParameterBinding Name="WebURL" Location="None" DefaultValue="/sites/subsite/"/>
5. Add below for select/update/insert/delete parameters
<WebPartPages:DataFormParameter Name="WebURL" ParameterKey="WebURL" PropertyName="ParameterValues" DefaultValue="/sites/subsite/"/>
No comments:
Post a Comment