TreeView in mappView

Hi Everyone,

I’m working on the project where customer has the requirement to have a TreeView on multiple levels (10) where each level can have up to 64 sublevels and so on… You can think about the object browsing in UAExpert. This is very complex to design in an compound widget (thought nested GroupBoxes with toggle buttons) and I was wondering if anyone already encountered this challenge and can give me a hint how to approach this.

PS: There is a TreeView Widget in AS 6 Engineering sample but not usable right now and only meant for folder/file structure..

Thanks!

Hi, what is the status of this topic, have you found solution for you?

Hi @kovarj,

I’m in contact with mappView PM regarding this. Most likely I’ll have to study a possible implementation in WTDC.

WDTC (Widget Development Tool Chain) is something I have high expectations for. Filipe, I know that you are an expert. Can you share your solution with us later, at least the general concept? That would be cool and appreciated by the community :slight_smile:

Hi @filipe.costa , I moved your question from the general forum to this new category because you were advised to use WDTC. Have you had time to get some experiences with WTDC you can share with us?

Hi @kovarj,

Unfortunately not yet. For the TreeView we could find a much more simple solution for customer!

Thanks for asking!

1 Like

Hi @filipe.costa

I could take a look at a TreeView widget if you want, just a question about it, for inputs data it’s a formated file like JSON or XML ? Did the configuration of the Tree could change during runtime ?

Regards,
Florent

HI @florent.boissadier,

The idea was to have a tree view like in Ua Expert to browse through the nodes and select one node as source for a gauge data display.

  • Inputs => result of the UA_Browse FUB of Library AsOpcUac (AR 6.X)

Yes the configuration of the tree view can change during runtime depending on the parent node you click on it will browse and display its childs and so on on multiple levels

A breadcrumb should then help to see how deep we are on the tree view.

Regards,

Filipe

Hi,

Ok so you want a OPC UA Browser widget, where you can select a node and get the nodeId with :

  • namespace
  • identifier type (interger, string …)
  • identifier (example “::AsGlobalPV:testvar”)

Is this widget is for an B&R OpcUa server or for generic OpcUa servers ?

1 Like

Hi @florent.boissadier,

In customer use case the purpose was to browse and select nodes on an third party Opc Ua Server.

As I said we decided together with customer a simpler approach with one level tree view. But if you decided to make your own Treeview multi levels that would be awesome for the B&R Community.

Regards,

Filipe

1 Like

Looking forward to see solution using WDTC @florent.boissadier :slight_smile:

1 Like

Hi @filipe.costa

Sorry for the late response, I was busy on others things !

I’ve work a bit on the widget, it’s based on the OpcUa servers you have in the mappView settings :


In this example I use a local OpcUa server as example.

Based on the Alias you’ve set in the config, you can pass it to the widget :

Then it load the root node of the server when the widget is loaded, then you can explore it:

I need a bit more of work for sharing it:

  • Handle scrollbars
  • Create events and actions for user interaction
  • Create some bindable properties for the selected node
  • Add some highlight for the actual selected node

I hope that is what you need :slight_smile:

I keep you in touch !

Regards,
Florent

2 Likes

..this looks promising :wink:

Hi @florent.boissadier,

This looks amazing! Possibility of element styling as well (icons, icon color, font)?

Excellent work.

Hi @filipe.costa ,

Yes I will add styling properties too !

Btw there is a way to read variable too, I will maybe add an opperand of the event nodeClicked with the value readed.

I keep you in touch :slight_smile:

1 Like

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

1 Like

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)?