iframe中的CRM视图现在会在新窗口中打开,为什么?

时间:2009-05-13 20:50:35

标签: javascript html dynamics-crm

它已经工作了一年多,并开始在新的窗口中开放。我不知道有什么变化 我按照Stunnware的指南制作了它。

页面中的代码是:

<html>
<head/>
<body class='stage' onload='resultRender.submit()'>
    <FORM id='resultRender' method='post' action='/ALI/AdvancedFind/fetchData.aspx' target='resultFrame'>
    <INPUT value='<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false"><entity name="account"><attribute name="websiteurl"/><attribute name="accountnumber"/><attribute name="new_geocat"/><attribute name="new_contracttype"/><attribute name="name"/><attribute name="accountid"/><order attribute="name" descending="false"/><filter type="and"><condition attribute="parentaccountid" operator="null"/><condition attribute="statecode" operator="eq" value="0"/></filter></entity></fetch>' type=hidden name=FetchXml> 
    <INPUT value='<grid name="resultset" object="1" jump="name" select="1" preview="1" icon="1"><row name="result" id="accountid"><cell name="name" width="200"/><cell name="new_contracttype" width="125"/><cell name="new_geocat" width="100"/><cell name="accountnumber" width="100"/><cell name="websiteurl" width="100"/></row></grid>' type='hidden' name='LayoutXml'> 
    <INPUT value='account' type='hidden' name='EntityName'> 
    <INPUT value='{00000000-0000-0000-00AA-000000666000}' type='hidden' name='DefaultAdvFindViewId'> 
    <INPUT value='{B444C27F-FC37-DD11-BDAA-000C292407C5}' type='hidden' name='ViewId'> 
    <INPUT value='1039' type='hidden' name='ViewType'> 
    <INPUT value='name' type='hidden' name='SortCol'> 
    <INPUT value='false' type='hidden' name='SortDescend'> 
    </FORM>
</body>

4 个答案:

答案 0 :(得分:1)

您也可以尝试:

在Iframe属性窗口中,确保取消选中“限制跨框架脚本”复选框。

这解决了我的一个与上面类似的问题。

感谢,

答案 1 :(得分:0)

我知道这是一个老问题。不知道它是否解决了。您是否允许在CRM表单上使用跨框架脚本?如果没有,您的页面就在限制区域中,这将解释在新窗口中打开的页面。

答案 2 :(得分:0)

我终于在经过反复试验后弄明白了。我将下面的行添加到我的HTML页面,紧接在表单之后。

<iframe id='resultFrame' ></iframe>

答案 3 :(得分:0)

网页在新窗口中打开,因为表单目标属性设置为resultframe,但是指定的框架在页面上没有。因此,在新窗口中打开默认操作页面。 只需删除框架的目标属性即可完成。现在框架将在同一窗口中打开。 您也可以将目标指定为“_self”。

相关问题