You need to sign in to do that
Don't have an account?
Philip Zimmerman
Export a VisualForce Page to CSV - Random appended code
So i have found the numerous articles explaining using 2 pages and one controller to export data to a csv file. I have followed the steps and my created csv file always has the following code appended:
<script type="text/javascript"> SfdcApp.Visualforce.viewstate.ViewstateSender.sendViewstate('https://cs10.salesforce.com' 'ClientPortalCases'); </script>
how do i prevent this code from appearing? I have seen other people mention this appearing but have never seen a solution. I also tried exporting to xls but then you get the error message explaining that the extension and the file format don't match.
Please help!
<script type="text/javascript"> SfdcApp.Visualforce.viewstate.ViewstateSender.sendViewstate('https://cs10.salesforce.com' 'ClientPortalCases'); </script>
how do i prevent this code from appearing? I have seen other people mention this appearing but have never seen a solution. I also tried exporting to xls but then you get the error message explaining that the extension and the file format don't match.
Please help!
Did you by chance ever find a solution to this issue? I'm experiencing it myself and would really like to remove this script tag from the end of the export.
Thanks in advance for any advice!
I made my export VF page a public site which seemed to not produce the viewstate script tag at the bottom of the export xml. Then I deactivated the public site and spoofed the account of another user, and again the script tag was not produced at the bottom of the xml. This leads me to believe that there is a setting, either profile or user, which is producing that view state script tag when I export the page under my account.
Note: I do not have Development Mode nor Show View State in Development Mode selected for my account. So I believe finding the actual setting for the developer/system admin account would likely get this tag removed. This is of course assuming there is a setting somewhere or something which can be adjusted to get the same experience the end-user (non-developer) would.
I would really appreciate some additional insight if anyone finds out more.
Thanks!
Hope that helps!
I had the same problem. Removing "core.apexpages.request.devconsole=1" from url worked for me.
Hope that helps.