When the field is of type Currency, the GlideElement object has additional methods:
https://docs.servicenow.com/bundle/newyork-platform-administration/page/administer/currency/concept/currency-values-scripts.html
These methods are used for i18n, so we need them.
My proposal is to add class for the Currency type, that extends GlideElement and adds the additional methods. Example:
declare class GlideCurrencyElement extends GlideElement {
getReferenceValue(): string;
getSessionValue(): string;
// etc.
}
This should require a change in the script that generates the table definitions.
Additionally, all existing tables should be updated.
When the field is of type Currency, the GlideElement object has additional methods:
https://docs.servicenow.com/bundle/newyork-platform-administration/page/administer/currency/concept/currency-values-scripts.html
These methods are used for i18n, so we need them.
My proposal is to add class for the Currency type, that extends
GlideElementand adds the additional methods. Example:This should require a change in the script that generates the table definitions.
Additionally, all existing tables should be updated.