Quantcast
Channel: KNIME RSS
Viewing all articles
Browse latest Browse all 4157

Javascript Interactive views rendering affected by locale under windows?

$
0
0

During the development of Interactive view nodes with SVG, I noticed that my view differs when rendered in development environment compared to KNIME client.

My development environment is Eclipse Mars with the KNIME 3.2.1 target platform set up, running under windows 7 x64 (italian locale) and with IE11 installed.

On the same machine there is also the KNIME 3.2.1 client application.
Both have the org.eclipse.swt.browser.IEVersion VM argument set to 10001.

The workflow here attached has a single Generic Javascript node configured with testing code: its interactive view generates a different output when run in KNIME client compared when run in development environment.

For example, the 'opacity' CSS property is not rendered correctly within the KNIME client, while it works properly within the KNIME instance launched by an eclipse Run configuration.

I discovered that this behaviour is due to the italian locale, which uses for numbers the comma as decimal separator instead of the point.
By changing the locale properties of the operating system to the english locale, the issue disappeared, and the interactive view rendered correctly even in KNIME client.

My guess is that there is a difference between the KNIME client and the eclipse development environment during the the browser component initialization: is there a way in a KNIME node / eclipse plugin to set the locale for the browser component?

Thanks in advance.

Attachments:

  • devenv.png: rendering within development environment
  • knime.png: rendering withing knime client
  • knime_project.knwf: testing workflow with the interactive view

Viewing all articles
Browse latest Browse all 4157

Trending Articles