[英]SharePoint Provider Hosted App linking to server side part
I'm creating a provider hosted app for SharePoint. 我正在为SharePoint创建一个提供程序托管的应用程序。
The app starts with the online part of sharepoint. 该应用程序从sharepoint的在线部分开始。 But i have made a custom ribbon button and want to link to my azure hosted website for the server side part of the app.
但是我做了一个自定义的功能区按钮,并希望链接到我的azure托管网站以获取应用程序服务器端的内容。 A direct link isn't working but is there another way to link to the server side part of the app?
直接链接不起作用,但是还有另一种方法可以链接到应用程序的服务器端吗?
<CommandUIHandler Command="Invoke_RibbonCustomAction1ButtonRequest"
CommandAction="http://xxxxx.azurewebsites.net/CustomActionTarget.aspx?SPListItemId={SelectedItemId}&SPListId={SelectedListId}"/>
I'm linking like the code above but it isn't working. 我正在像上面的代码一样进行链接,但无法正常工作。
Any suggestions ? 有什么建议么 ?
Try this 尝试这个
<CommandUIHandler Command="Invoke_RibbonCustomAction1ButtonRequest"
CommandAction="javascript:
function openNewPage()
{
var url = 'http://xxxxx.azurewebsites.net/CustomActionTarget.aspx?SPListItemId= {SelectedItemId}&SPListId={SelectedListId}';
window.open(url);
}
openNewPage();
"/>
See MSDN documentation 请参阅MSDN文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.