WDTC widget | The OpcUa viewer widget

Hi guys,

I just released the first version of the widget on GitHub - FBoissadier/mappView-opcuaviewer: A widget library with a opcua client browser widget

The version 1.0.0 is available, please don’t hesitate to use issues directly on github if you have some problems or new feature request.

I hope this widget will do the work :slight_smile:

Regards,
Florent

6 Likes

Any volunteers for testing? I would like to hear success stories :slight_smile:

Maybe I should create a dedicated post to share this widget ?

make sense. BUt before can you take a look on this error using (mapp View 6.3 and 6.1.5000)?

It seems that there is no module “widget/brease/common/libs/wfUtils/UtilsImage”, maybe this module was moved in new versions. As I didn’t have access to it I could not really say it ^^’
If you have WDTC you could take a look if the path is correct, for me I put WDTC in “C:\WD\6.1.1” relative to this folder the module that the widget use is “data\wwwRoot\BRVisu\widgets\brease\common\libs\wfUtils\UtilsImage.js”
Can you check if this file exist ?
Btw it was only tested with MappView 6.1.1
Can you share me the complete build error (CTRL + A > right-click > copy selected items)

I’ve just tested with AS ES 6.1.2.25, mappView 6.1.0
I’ve tested with AS 6.1.1.14, mappView 6.2.0
Both are working on my side.

Can you check in your AS installation folder if the file exist ?


Here is the path for me, you may change the mappView version as you use 6.3.

C:\Program Files (x86)\BRAutomation\AS6\AS\TechnologyPackages\mappView\6.2.0\Widgets\brease\common\libs\wfUtils

Hi Florent,

I’d like to shed some light here …

It seems that there is no module “widget/brease/common/libs/wfUtils/UtilsImage”, maybe this module was moved in new versions.

No, this module was not removed, it was actually never available!
mapp View 6 uses webpack to package everything needed for the widgets and the HMI. If a certain package is not exposed, you might see it in the filesystem, but webpack will not package it … for the user of the widget, the module is missing.

For you it prop. works, as “somehow” the path to your local WDTC folder is included, which allows the system to find the module … but for anyone, not having the WDTC or not in the same folder, this module does not resolve, which leads to the shown error.

If a certain method is part of the usable API, you can see in the BRease docu, which is part of the WDTC. Usable methods are marked with “API”.

If you want to use “UtilsImage”, you would need to include these methods into your package.

Hope this makes things a little clear(er).

CHH

2 Likes

Oh okay I see, that’s my bad. I was thinking that common of brease are shared between widget library but it’s not!

I will make the change to include this in my widget lib.

FYI : It work on my project when I use junction and not copy/paste my widget lib. So I will way my process to copy/paste the folder.

Thanks for this answer ! :slight_smile:

2 Likes

Modification for this error is done you can get the new version on the repo :slight_smile:

Hi … great job. Gave it a try - and it seems to work now!

One thing which came to my attention:
You need to configure the OPC-UA server alias … The widget should also work with an empty alias, as in a simple standard configuration you have no OPC-UA configuration => you also have no alias.

CHH

2 Likes

Yes you are right! I also need to integrate error handling properly and add an OnError event.

1 Like