CRM2011:是否可以通过javascript设置子网格值?
我的表单上有一个子网格,我想显示根据表单上的另一个字段计算的不同值。
我不想保存到数据库,只是为了显示目的,是否可以使用javascript设置值?
I have a subgrid on a form, I want to show different value which is calculated base on another field on the form.
I don't want to save to database, just for display purpose, is it possible to set the value use javascript?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
恐怕答案是否定的。
MSCRM 中没有“计算字段”的概念,当我从 SalesLogix 切换到 MSCRM 时,我发现这很令人失望,因为它支持仅显示计算字段。
在不更改数据的情况下实现此目的的唯一方法是破解网格控件的 DOM,但这非常不受支持,并且可能会变得非常非常复杂。
如果您愿意做出示意性更改,则可以向实体添加新字段,并使用工作流程在保存实体时更新该字段。然后只需将此字段添加到您的网格中即可。
I'm afraid the answer to this is no.
There's no concept of 'calculated fields' in MSCRM, I found this a disappointment when I switched to MSCRM from SalesLogix which does support display-only calculated fields.
The only way you could possibly do this without data changes would be hacking the DOM of the grid control, but this is very much unsupported and could get really, really complicated.
If you're willing to concede to make schematic changes, you could add a new field to the entity, and use a workflow process to update the field on save of the entity. Then just add this field to your grid.
您可以创建一个带有自定义计算的图表。
如果有兴趣,可以问我,了解我的意思。
You may create a chart with custom calculation on it.
If interested, ask me to know what I mean.