Thursday, March 29, 2012

Export Excel if(!window.sfdcPage){ window.sfdcPage = new ApexPage(); } Issue with MAC in apex visualforce

Hi guys ,
I faced a big issue with MAC if I am exporting .xls file through visualforce page.
The problem arise only in case if we are using PageBlock and PageBlock Table . I just replaced pageBlockTable with simple datatable and problem resolved.

Thanks


18 comments:

  1. 2005 Subaru Impreza AC Compressor
    Great post, you have pointed out some superb details, I will tell my friends that this is a very informative blog thanks.

    ReplyDelete
  2. 2005 Subaru Impreza AC Compressor
    Great post, you have pointed out some superb details, I will tell my friends that this is a very informative blog thanks.

    ReplyDelete
  3. For some reason, I still get the "if(!window.sfdcPage){ window.sfdcPage = new ApexPage();" stuff preceding the data. I've got a very simple VF page:
    http://pastebin.com/QL6uMR0J

    But when this xls is downloaded to a Mac, the first cell contains all the code before the data that should be exported. Is it obvious what I should be doing differently?

    ReplyDelete
    Replies
    1. Hey ,
      I had tried on Mac the same code as of you but am getting the proper rows !

      Delete
    2. hmm... any debugging advice? I just tried it on another mac with the same results. On my windows machine, it all works properly. Could it be an issue with the excel version?

      Delete
    3. I am confused why is it happening ? I am using 2010 , can try by passing a custom list in data table and try once again !

      Delete
    4. I'm a serious noob to VF, fyi. I'm looking at MS Excel 2011 on either OS X Lion or Snow Leopard. My VF page is incredibly simple right?

      Delete
    5. Will let you know once get any solution , the problem is I am not able to see the problem on My MAC !

      Delete
  4. I took this advice, but that annoying javascript is still showing up

    ReplyDelete
  5. informative blog with such a grate information.
    if you like to know about salesforce support and development you can also visit us at
    www.rowalim.co,

    ReplyDelete
  6. Nice Post, really useful, user friendly and knowledgeable articles share or publishe3d by you. It is really happy reading your complete an articles and I hope that you will published more articles for us, will come back on your blogs or website for gathering some useful info, I think I have visited a lot of website and blogs but there is not get good information but when I have visited your website then I get a great article content with clear discuss on topics.
    You can find here Sales Force Automation software to handle your sales business.
    Lastly I would like to huge thanks for sharing…………………………..

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete

  8. What an awesome post, I just read it from start to end. Learned something new after a long time.


    SAP FICO training in Chennai

    ReplyDelete
  9. Very useful information thanks for sharing ..
    Yaaron Studios is one of the rapidly growing editing studios in Hyderabad. We are the best Video Editing services in Hyderabad. We provides best graphic works like logo reveals, corporate presentation Etc. And also we gives the best Outdoor/Indoor shoots and Ad Making services.
    video editors studio in hyderabad
    short film editors in hyderabad
    corporate video editing studio in hyderabad
    ad making company in hyderabad

    ReplyDelete
  10. The most bothersome approach to move toward the Salesforce CRM instrument is execute the CRM arrangement and trusting that achievement will come coming. How is the Salesforce job market in Pune after training

    ReplyDelete