Skip to content

Add typings for currency fields in GlideElement #22

Description

@knikolov-nuvolo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions