Hello, So i was follwoing the xample in the HTMLDialogDemos, and I tried to create an es6 module and import it. This worked, however, the imports that my module require are not being imported correctly. This is due to the fact that ES6 imports dont automatically ad the "ln=xpertivy-3-webContent" query param that its calling module got. To be clear, i imported page.js via
which gets the file at
which attempts to import
which in turn gets the URL
if I try to visit the URL
then i can see the file correctly. I also tried to, inside the folder of the HTML dialog itself, to put a javascript file and import it with a plain script tag. This didnt work, and actually crashed the page. Is there a better way to do javascript file imports and es6 imports? asked 28.02.2020 at 07:44 TareqK |
Hi Sadly our platform is not really build to use modules. You can add this get parameter to the module import like:
But the problem is that this parameter is dynamic. Means the number is the Process Model Version which provides this webContent. You could evaluate this over an other javascript function but then you have the problem that you have to load the module dynamically. And the Eclipse Javascript editor seems not to know this syntax.
Anyway you need to be aware that ES6 is not supported by every browser (e.g ie11 only supports es5). Maybe its easier to simply import the js file the normal way... Kind regards Lukas answered 02.03.2020 at 07:36 SupportIvyTeam ♦♦ |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 28.02.2020 at 07:44
Seen: 2,046 times
Last updated: 17.03.2020 at 03:15