1

Closed

Export View doesn't work in SP2013 Foundation version

description

Hi,

When using the button to export the items in a view it actually exports all list items version history not the filtered view's items version history.

Is this a known issue?

When will it be rectified?

Thanks Emma
Closed Jan 8, 2015 at 1:30 PM by nadeemyousuf
Fixed in latest version.

comments

nadeemyousuf wrote Jul 4, 2014 at 12:29 PM

Can you provide more details? View button exports the current selected view. However, it exports all the items if you use filter the current view using any column.

emma_ashworth wrote Jul 4, 2014 at 12:40 PM

I have a list with 8 items in it.
I create a view in SharePoint which is filtered on where "Title" is equal to Dr.
I therefore only have 2 items in this view.
I want to export the version history of only these 2 items (Dr's) so when the view is selected I click the Export View Version History.
In my excel file I'm expecting to only have the version history of the 2 list items in the particular view but I don't I have all 8 items version history.

mafrost wrote Aug 18, 2014 at 7:16 PM

Hi,

Sadly i can confirm this problem.
  1. I created a SharePoint Site Collection with a Team Site template on SharePoint Server 2013 SP1
  2. Activated the feature on site collection level.
  3. Enabled versioning one Shared Documents list.
  4. Uploaded 3 items and changed their metadata.
  5. Clicked Export List Version History - works great.
  6. Clicked an item then Export Version History - works great.
  7. Created a View to limit the list.
  8. Opened the View - as expected only 1 item visible.
  9. Clicked Export View Version History - version history for all items in the list gets exported.

mafrost wrote Aug 18, 2014 at 7:17 PM

Hi,

Sadly i can confirm this problem.
  1. I created a SharePoint Site Collection with a Team Site template on SharePoint Server 2013 SP1
  2. Activated the feature on site collection level.
  3. Enabled versioning one Shared Documents list.
  4. Uploaded 3 items and changed their metadata.
  5. Clicked Export List Version History - works great.
  6. Clicked an item then Export Version History - works great.
  7. Created a View to limit the list.
  8. Opened the View - as expected only 1 item visible.
  9. Clicked Export View Version History - version history for all items in the list gets exported.

mafrost wrote Aug 18, 2014 at 7:41 PM

The solution is to change the ExportViewVersionHistory function in ExportVersionHistory.js
function ExportViewVersionHistory() {    
    var listName = $(".ms-core-pageTitle span span span a:first").html();
    var viewName = $("a.ms-pivotControl-surfacedOpt-selected").html();
    var pageUrl = SP.Utilities.Utility.getLayoutsPageUrl(
    '/NY.ExportVersionHistory/ExportVersionHistory.aspx?ListTitle=' + encodeURIComponent(listName) + '&ViewTitle=' + encodeURIComponent(viewName));
    submit(pageUrl);
}

nadeemyousuf wrote Aug 19, 2014 at 6:01 AM

Good to hear that you resolved the issue.

emma_ashworth wrote Sep 1, 2014 at 7:55 AM

Will the above fix be put into an updated download then users can download the working version rather than making the change themselves as it's not likely users will read this post and presume the export view doesn't work correctly?

Thanks
Emma

nadeemyousuf wrote Jan 8, 2015 at 1:30 PM

Hi Emma,

This issue has been fixed in the latest version.

Thanks,
Nadeem

wrote Jan 8, 2015 at 1:30 PM