question

Upvotes
Accepted
1 0 0 4

JET Settings plugin: providers and settings names

JET Sampes pages mention JETSettings plugin. They show example how to read COMMON.RDE_PRODUCT.BRANDNAME value. How can I extract current theme, current movement color scheme, current language?

eikoneikon-app-studiojet
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

@JOHNA

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,
AHS

@JOHNA

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

Upvotes
Accepted
4.6k 26 7 22

@JOHNA You can achieve this without the calls to JET.Settings:

JET.ContainerDescription provides you with the theme in properties.

{
  "name": "Thomson Reuters Eikon",
  "logLevel": "debug",
  "version": "3.3",
  "containerVersion": "4.0",
  "productVersionInfo": "Desktop 4.0.36",
  "userAgent": "NET45,EIKON9.0.36485,SR0,ADF6.20162.04.21",
  "GUID": "4e638cc1e99644aa97c8868720a9c103",
  "capabilities": {
    "MenuItems": {},
    "Actions": {},
    "Events": {},
    "DragAndDrop": {},
    "Properties": {},
    "FullChromiumNavigation": {}
  },
  "properties": [
    {
      "theme": "Charcoal"
    },
    {
      "AppInfo": "{\"AppType\":\"WebApp\",\"Properties\":{\"JETTrustLevel\":\"Partner\",\"ServiceName\":\"Web Host App\"}}"
    }
  ],
  "windowInfo": {
    "windowId": "ba4c26e3-ecfa-4384-b3e8-0a7a591e5a1d",
    "isFlexViewer": false
  },
  "plugin": {
    "channel": "86f6da1c-5569-11e6-82b8-001c420552e0"
  },
  "major": 9,
  "minor": 0,
  "build": 36485
}

JET.getUserInfo gives you the preferred language:

{
  "FullUserName": "User name",
  "PreferredLanguage": "en-US",
  "UUID": "unique user id"
}
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

The configurations should be:

  • COMMON.REGIONAL_SETTINGS.UI_LANGUAGE
  • COMMON.OTHER_SETTINGS.MOVEMENTCOLOR_UP
  • COMMON.OTHER_SETTINGS.MOVEMENTCOLOR_DOWN
  • COMMON.OTHER_SETTINGS.MOVEMENTCOLOR_LEVEL
  • RDE_USER_CURRENT_THEME
Upvotes
79.2k 251 52 74

They should be:

  • COMMON.REGIONAL_SETTINGS.UI_LANGUAGE
  • COMMON.OTHER_SETTINGS.MOVEMENTCOLOR_UP
  • COMMON.OTHER_SETTINGS.MOVEMENTCOLOR_DOWN
  • COMMON.OTHER_SETTINGS.MOVEMENTCOLOR_LEVEL
  • RDE_USER_CURRENT_THEME
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.