简体   繁体   English

Xrm.Utility.openEntityForm(entityType,null,参数)

[英]Xrm.Utility.openEntityForm(entityType, null, parameters)

When I use "mywindow" like var is give my 'boll' answer 当我使用像var这样的“ mywindow”时,给出我的“铃”答案

How can I make full screen of from entity? 如何使实体全屏显示?

var mywindow = Xrm.Utility.openEntityForm(entityType, null, parameters);
    mywindow .moveTo(0, 0);
    mywindow .resizeTo(screen.availWidth, screen.availHeight);

Xrm.Utility.openEntityForm returns a bool not a window, the bool indicates if the call to openEntityForm was successful. Xrm.Utility.openEntityForm返回布尔值而不是窗口,该布尔值指示对openEntityForm的调用是否成功。

As described in the Xrm.Utility Reference . Xrm.Utility参考中所述

Return Value : Boolean. 返回值 :布尔值。 True if the operation is successful, otherwise false. 如果操作成功,则为true,否则为false。

If you are looking at this bit (which is similar to your code above) of the same MSDN article I believe that the documentation is incorrect. 如果您正在看同一MSDN文章的这一部分(与上面的代码类似),我认为该文档是错误的。 Given the function returns a bool, I don't see how this is possible. 给定该函数返回布尔值,我不知道这是怎么可能的。

Open a new contact record, move it to the top left corner of the screen, and set the size of the window 打开一个新的联系人记录,将其移到屏幕的左上角,然后设置窗口的大小

 var newWindow = Xrm.Utility.openEntityForm("contact"); newWindow.moveTo(0,0); newWindow.resizeTo(800,600); 

You could: 你可以:

  1. On your first window use Xrm.Utility.openEntityForm(entityType, null, parameters); 在第一个窗口上使用Xrm.Utility.openEntityForm(entityType, null, parameters);
  2. On your second window (that you just opened using openEntityForm ) add the following onLoad event. 在第二个窗口(您刚刚使用openEntityForm打开的openEntityForm )上, 添加以下 onLoad事件。

.

window.moveTo(0,0);
window.resizeTo(screen.availWidth, screen.availHeight);

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM