在窗体上更新交易货币不会更新自定义货币货币符号 [英] Updating Transaction Currency On Form Doesn't Update Custom Money Currency Symbol

查看:115
本文介绍了在窗体上更新交易货币不会更新自定义货币货币符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要在自定义网页上创建线索的空外壳,然后将用户重定向到新创建的线索。线索上的TransactionCurrencyId在加载时为空,在OnLoad事件中,JS设置了TransactionCurrencyId,然后填充自定义Money字段。设置货币字段后,将引发以下警报:

I'm creating an empty shell of a lead on a custom web page, then redirecting the user to the newly created lead. The TransactionCurrencyId on the lead is empty on load, and in the OnLoad event, JS is setting the TransactionCurrencyId, and then populating the custom Money field. Upon setting the money field, the following alert is being thrown:


如果货币字段中存在值,则需要货币。选择一种
货币,然后重试。

A Currency is required if a value exists in a money field. Select a currency and try again.

手动清除TransactionCurrencyId,然后重新选择TransactionCurrency,使用户可以

Manually clearing the TransactionCurrencyId, and then re-selecting the TransactionCurrency allows the user to manually populate the value.

默认情况下不应该设置交易货币吗?如何设置TransactionCurrencyId来设置自定义货币货币符号?

Shouldn't the Transaction Currency be set by default, and how do I set the TransactionCurrencyId in order to set the Custom Money Currency Symbol?

推荐答案

我能够通过在 onLoad ,然后实际设置值:

I was able to get around this be calling this on the custom Money attribute in the onLoad, before actually setting the value:

att.$2_2.setCurrencySymbol("$")

当然,这不受支持,也不是理想的解决方案...

Of course this is unsupported and not an ideal solution...

这篇关于在窗体上更新交易货币不会更新自定义货币货币符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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