简体   繁体   English

链接到服务器端部分的SharePoint Provider托管应用程序

[英]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}&amp;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}&amp;SPListId={SelectedListId}';
            window.open(url);
        }

        openNewPage();
"/>

See MSDN documentation 请参阅MSDN文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从 Sharepoint 提供程序托管的应用程序中检索 SharePoint 2013 列表数据 - Retrieving SharePoint 2013 List Data from Sharepoint provider hosted app Sharepoint Provider托管的应用程序:无效的JWT令牌。 令牌已过期 - Sharepoint Provider Hosted App: Invalid JWT Token. The token is expired 将Sharepoint App 2013部署到Windows Azure(托管提供程序) - Deploying Sharepoint App 2013 to Windows Azure (Provider Hosted) 从提供商托管的应用程序访问Sharepoint文档库项目 - access Sharepoint document library items from provider-hosted app Sharepoint Provider托管用户权限 - Sharepoint Provider Hosted User Permissions 我将在哪里将Page_Load的代码放在MVC SharePoint 2013提供程序托管的应用程序中? - Where would I put the code for Page_Load in an MVC SharePoint 2013 provider hosted app? 在自托管的c#WCF控制台应用程序中使用web.config(设置MaxStringContentLength服务器端) - Using web.config in a Self-Hosted c# WCF console app (setting MaxStringContentLength server side) Office Online Server和提供商托管的应用程序在同一服务器上 - Office Online Server and Provider Hosted Apps on the same server 使用客户端对象模型在提供商托管的应用程序中获取早期版本文件 - Get previous version file in provider hosted app with client object model Asp.net mvc提供商托管app-upload文件 - Asp.net mvc provider hosted app-upload a file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM