locked
SharePoint Hosted Task Pane App for Office Word RRS feed

  • Question

  • I am creating SharePoint Hosted Task Pane App for Office word but facing the problems below.

    1. app.initialize is undefined.

    2. Could not access list objects.

    How can i access all list objects. 

    Wednesday, February 26, 2014 12:51 PM

Answers

  • Hi Rizwan,

    Welcome to MSDN forum.

    Firstly, after creating a Task Pane App for Office, app.initialize is used in Home.js and defined in app.js by default as below:

    Do you have a same JavaScript file as I provided?

    Secondly, what do you mean by ‘list’?

    If it is a SharePoint list, here is an article for your reference:

    How to: Access SharePoint 2013 data from apps using the cross-domain library

    If it is a Word list, you need to select the list first.

    Apps for Office is used to operate the selection or binding data, it is confined Compared to Word Object Model. So I’m afraid there is no way to access list object without selecting.

    For more information, please refer to:

    JavaScript API for Office

    In addition, you could create a VSTO project instead.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by George Hua Wednesday, March 5, 2014 10:34 AM
    Thursday, February 27, 2014 10:02 AM