Quantcast
Channel: Microsoft Online: SharePoint Online forum
Viewing all articles
Browse latest Browse all 10096

SP.UI.ModalDIalog.showModalDialog from AddIn with NewForm on a hostweb collection list?

$
0
0

Hello,

I created a SharePoint Online AddIn in which I would like to open newform.aspx of a calendar-/event-list in the hostweb in a modal dialog.
This AddIn reads data from this list and displays it in the addin itself via JavaScript.
Therefore I would like to use the modal dialog because then it will be possible to use a DialogReturnValueCallback - function which will refresh the "data-display-page" of the AddIn if a new calendar entry is created or modified.

If I use SP.UI.MocalDialog.showModalDialog with a hostweb URL I will get a runtime error in JavaScript (0x80070005 access denied). If I will use it the same way with a list with the same list stored in the appweb itself it works without any problems.

In the AppMaifest.xml I added "FullControl"-permissions to the SiteCollection.

Does someone know if it is possible to use modal Dialog from appweb to a list stored in the hostweb or if I can use another way to Display newform.aspx or editform.aspx of a list stored in the hostweb from appweb and can use a callback-function to refresh dataview in the appweb?

Thank you very much for your suggestions in advance!

Kind regards,
Robert.


Viewing all articles
Browse latest Browse all 10096

Trending Articles