CMDBuild Forum

creating a multiple realtions

Hello im trying to implement the ability to related multiple cards to one card.

I understand the only way to achieve this is to create a workflow widget "linkCards"

Im trying to create the widget > startWork flow > CQL and put something like Filter = from Class where Attribute > 0

However when i activate this widget i get a process drop down list.

Im confused in terms of if I need to create a process at all for this.

Could I get some steps in order to achieve the ability to be able to related multiple cards to one card from the same window other than to use relations.

To create relationships is enough for you to go in the TAB Relations, present on any card, and click on “Add relation”.
And if you have configured a Reference attribute on a domain 1:N, the relationship is created automatically by selecting the Reference value.
CMDBuild Team

Im trying to achieve the following relationship

 

Servers class can have multiple relations to RackUnits class.

I need to be able to pick multiple RackUnits from a Servers reference attribute.

 

So far I have not been able to find a way to be able to select multiple cards in a relationship window. the only way this works is with N:N cardinality and it is only accessible via relations tab. I would like to do this from the attribute.

 

So, can I achieve this without Workflow? if so how, could you please provide an example?

 

Thank you!

 

 

 

Previously Tecnoteca wrote:
To create relationships is enough for you to go in the TAB Relations, present on any card, and click on "Add relation".
And if you have configured a Reference attribute on a domain 1:N, the relationship is created automatically by selecting the Reference value.
CMDBuild Team

 

Previously Vlad Gusyev wrote:

Im trying to achieve the following relationship

 

Servers class can have multiple relations to RackUnits class.

I need to be able to pick multiple RackUnits from a Servers reference attribute.

 

So far I have not been able to find a way to be able to select multiple cards in a relationship window. the only way this works is with N:N cardinality and it is only accessible via relations tab. I would like to do this from the attribute.

 

So, can I achieve this without Workflow? if so how, could you please provide an example?

 

Thank you!

 

 

 

Previously Tecnoteca wrote:
To create relationships is enough for you to go in the TAB Relations, present on any card, and click on "Add relation".
And if you have configured a Reference attribute on a domain 1:N, the relationship is created automatically by selecting the Reference value.
CMDBuild Team

 

Hi, I have the same problem.

How can I register several options in an attribute?

For example, I have a NETWORK class which is composed of network1 and network2.
and another Server class with a Network attribute that references NETWORK 1: N

I want the red1 and red2 to be registered on the server.

Thank you. a greeting.

If you want to indicate multiple IP addresses on a server you can create a NetworkInterface Class (with Attributes IPAddress, MacAddress, Network mask, Gateway, etc.), create a 1: N Domain between Server and NetworkInterface, mark it as Master-Detail and use the TAB Detail of the Server tab.
If you only want to connect a Server to multiple Networks and a Network to multiple Servers you can create a N:N Domain between Server and Network and use the TAB Relations of the two classes.
CMDBuild Team