SPO - 客户端Web部分中的跨域 [英] SPO - cross domain in client web part

查看:78
本文介绍了SPO - 客户端Web部分中的跨域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在SPO中,我尝试创建一个CLIENT WEB PART,它将在顶部URL添加"FilterField1"。在QUERYSTRING。

因为客户端WEB部件在IFRAME中,所以存在CROSSDOMAIN问题,我无法获得父亲的整个URL。

"StandardTokens"不返回完整数据。其他TOKENS由于某种原因没有呈现。

我也理解CONNECTIONS无法实现 客户WEB部分。

任何人有想法?

Hi,
In SPO I try to make a CLIENT WEB PART that will add to the top url the "FilterField1" in QUERYSTRING.
Because the CLIENT WEB PART is in the IFRAME, there is a CROSSDOMAIN problem and I cant get the whole URL of the father.
The "StandardTokens" does not return the full data. The other TOKENS are not rendered for some reason.
I also understand that CONNECTIONS cant be implemented  CLIENT WEB PART.
Anyone have an idea?

推荐答案

我们可以使用元素中的内容标记中的以下格式定义自定义属性,

We can define custom property using the below format in content tag in  Element.xml,

<Content Type="html" Src="~appWebUrl/Pages/Default.aspx?{StandardTokens}&amp;CustomProp1=_CustomProp1_&amp;CustomProp2=_CustomProp2_" />

并展开属性标记以指定每个自定义属性,

and expand the properties tag to specify each custom property,

<Properties>
<Property Name="CustomProp1" Type="string" RequiresDesignerPermission="true" DefaultValue="Propert1Value" 
                WebCategory="AppPart Properties"
                WebDisplayName="Custom Property 1">
</Property>
<Property Name="CustomProp2" Type="int" RequiresDesignerPermission="true" DefaultValue="1" 
                WebCategory="AppPart Properties"
                WebDisplayName="Custom Property 2">
</Property>
</Properties>     

更多信息:

将查询字符串从SharePoint传递到App Web

Passing Query string from SharePoint to the App Web

http://sharepoint-kings.blogspot.com/2015/08/ pass-query-string-from-sharepoint-to.html

将SharePoint页面中的QueryString值传递到SharePoint 2013中的提供商托管应用程序

https://www.c-sharpcorner.com/UploadFile/sagarp/pass-query-string-value-from-sharepoint-page-to-provider-hos/

最诚挚的问候,

Dennis


这篇关于SPO - 客户端Web部分中的跨域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆