- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试遵循找到的示例 here解释了如何使用 Xrm.Navigation.openForm
方法为新实体打开 CRM 表单。
我的目标实体有多个表单,我正尝试在 entityFormOptions
对象中指定表单 ID,如上面的链接所述。我在这里复制了相关文本(相关行以粗体显示):
entityFormOptions
Entity form options for opening the form. The object contains the following attributes:
- cmdbar: (Optional) Boolean. Indicates whether to display the command bar. If you do not specify this parameter, the command bar is displayed by default.
- createFromEntity: (Optional) Lookup. Designates a record that will provide default values based on mapped attribute values. The lookup object has the following String properties: entityType, id, and name (optional).
- entityId: (Optional) String. ID of the entity record to display the form for.
- entityName: (Optional) String. Logical name of the entity to display the form for.
- formId: (Optional) String. ID of the form instance to be displayed.
- height: (Optional) Number. Height of the form window to be displayed in pixels.
- navBar: (Optional) String. Controls whether the navigation bar is displayed and whether application navigation is available using the areas and subareas defined in the sitemap. Valid values are: "on", "off", or "entity".
但是这似乎对我不起作用。我的表单 ID 是 375DE297-C0AF-4711-A811-5F1663FAE5DA
这是我的代码:
var entityFormOptions = {};
entityFormOptions["entityName"] = "contact";
entityFormOptions["formId"] = "375DE297-C0AF-4711-A811-5F1663FAE5DA";
Xrm.Navigation.openForm(entityFormOptions);
新的实体窗体打开;但是它使用默认形式,而不是指定的形式。
我以系统管理员的身份运行,我已确认我可以访问指定实体的所有表单,因此我认为这不是表单安全问题。
有人试过这种在Dynamics 365中打开表单的方法吗?
最佳答案
这看起来像是文档中的错误或 Dynamics 中的错误。
以前的实现(v8 及之前)在参数对象中使用 formid:https://msdn.microsoft.com/en-us/library/jj602956.aspx#openEntityForm
虽然当前文档声明 formId 必须在 entityFormOptions 中设置,但实际上并没有兑现。但是,当您将它设置为良好的旧形式参数时,它会很荣幸。
这样就可以了:
var entityFormOptions = {};
entityFormOptions["entityName"] = "contact";
var formParameters = {};
formParameters ["formid"] = "375DE297-C0AF-4711-A811-5F1663FAE5DA";
Xrm.Navigation.openForm(entityFormOptions, formParameters);
附言请注意小写的 "formid"。
关于javascript - Xrm.Navigation.openForm 不尊重 formid,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49359342/
问题: Node 包“formidable”中的 .parse() 方法不想执行。 资源:此网站上的代码片段是我用来引用的,如果有帮助的话:https://github.com/felixge/nod
这是示例项目的精简版本: HTML: JS: $('#btnSubmit').click(function() { // Method 1 // $('#formID')
我有一个分为多个选项卡的 MVC3 页面。每个选项卡上都有一个带有不同 id 的 AJAX 表单的部分 View 。 @using (Ajax.BeginForm("Create1", "Contro
在某种情况下,我需要以编程方式更改表单渲染器中呈现的 WFFM 表单。表单渲染器本身通过演示详细信息添加到占位符。 我能够访问表单渲染器并设置 FormID 并将其参数更新为我想要显示的表单的 ID。
我在同一页上有两个表单。两种表单中都有一个同名的文本字段。 我试图从两种形式之一读取文本字段的值。如果我尝试使用以下代码读取值,我将获得值。但我不确定它从哪种形式返回值。 document.getEl
我正在尝试使用 NodeJs 和 Formidable 制作图像/文件上传表单。我没有使用 express 。简直太厉害了但无论如何,我用 formidable 尝试了最常见的脚本,但没有一个有效。我
if (sess.username) { var form = new formidable.IncomingForm(); form.multiples = true; fo
像许多其他新手一样,我正在阅读 Manuel Kiessling 所著的《The Node Beginner Book》。 我们应该通过 Formidable 模块启用图像上传,不断地将图像重命名为“
在 Node.js 中,我尝试使用强大的模块,但总是遇到错误 **Error: Cannot find module 'node_modules/formidable'** 错误详细信息: C:\Pr
如果我查看 node-formidable 文档,我可以阅读: "Event: 'progress' (bytesReceived, bytesExpected) Emitted after each
如何在 Node 中命名由 Formidable 解析的文件?目前我的文件保存为“7c9d182a9892bb7588b49ea9d364efd0.pdf”,我更喜欢原始文件名。 有人知道怎么做吗?
来自 NodeJs 初学者的快速问题: 我正在使用 express-formidable为了将文件上传到我的服务器。我该如何拯救他们? n_n' 检查保存我拥有的文件的变量: 但是我不知道该怎么办。我
我尝试使用 PrototypeJs 请求方法上传文件,但失败了。 我正在使用的代码, 如果我返回 true 而不是 false,文件将被上传,但这会产生我不想要的回发,因为我正在使用来自 Proto
我正在尝试遵循找到的示例 here解释了如何使用 Xrm.Navigation.openForm 方法为新实体打开 CRM 表单。 我的目标实体有多个表单,我正尝试在 entityFormOption
嗨,我想知道是否有人可以帮助我通过使用强大的js来处理输入的nodejs服务器从nativescript上传相机模块拍摄的图像 下面是我的 native 脚本代码: 下面是nodejs服务器代码: 尝
如何根据表单输入值显示或隐藏 div。特别是如果它的值(value)是积极的。我希望它显示一个 div。否则我希望它显示另一个 div。 这是我真正想要的更复杂的东西.如果 form1 大于 10,0
我有一个快速应用程序,我在其中使用强大的文件上传功能。 我的代码如下所示 form .on('field', function(field, value){ i
我已经成功配置了环回的存储组件,即环回组件存储。我已经能够创建文件夹。但是当我尝试上传文件(使用 postman )时,它不断给出请求中止错误: error: Error: Request abor
我正在使用强大的模块https://github.com/felixge/node-formidable上传图像。我创建了一个单独的新项目,文件上传工作完美。 但是当我将它集成到我现有的项目中时。我收
我这几天想解决一个问题,但有些东西还是不明白。我有一个使用 NodeJS 和 ExpressJS 创建的网站,为了处理表单,我使用 body-parser。 var adName = req.
我是一名优秀的程序员,十分优秀!