Skip to main content
14-Alexandrite
September 9, 2016
Solved

Using TWX Composer Relationship Widget in Mashup Builder??

  • September 9, 2016
  • 6 replies
  • 3377 views

Hello All,

I am about to build an application that will connect information from different data sources and one cool functionality to add is the relationship tracking as it is done in TWX composer as it works with the Thing ->Thing Template  relationship (uses this entity screen).

The idea is that each node in the tree would drive the user to the system that owns the data.

Does anybody has some idea of what I should do to do it? Do i need to start from scratch or can I reuse something?

Cheers

ewerton

Best answer by Aanjan

Ewerton, I tried the D3 Tree widget, and that's the closest to the existing dependencies view -

std.JPG

State based formatting is available, so you can choose your Dependent Filed (to or from) and choose colors based on your preference.

6 replies

emoreira14-AlexandriteAuthor
14-Alexandrite
September 9, 2016

Partially answering my own question: it seems that the D3 Network widget should do the trick but I still did not get it to work properly.

I am testing it with a network and configuring it as shown below:

The result I got is this, which is technically not wrong, but it is weird.

Also, could I change the Link Color based on some state?

Cheers

ewerton

Aanjan5-Regular MemberAnswer
5-Regular Member
September 9, 2016

Ewerton, I tried the D3 Tree widget, and that's the closest to the existing dependencies view -

std.JPG

State based formatting is available, so you can choose your Dependent Filed (to or from) and choose colors based on your preference.

emoreira14-AlexandriteAuthor
14-Alexandrite
September 9, 2016

Thanks.. can you send me the configuration you used? How are them different from what I posted?

Cheers

Ewerton