CMDBuild Forum

Contextual menu

Good morning all,
I would like to associate a set of contracts linked to a physical server.
To do this, I am thinking of creating a contextual menu allowing me to select a physical server, so that when I click on the contextual menu it opens a popup window allowing me to enter a set of contracts which will be inserted after saving in another table. (these contracts being linked to the selected physical machine)
is it possible to do this?
if so could you give me some hints if possible of the code to do this?
thank you in advance

Why not define a relation between the contract class and the physical server class, and when you want to associate contracts to a physical server, you open the server card, go to the Relations tab and create a relation to the contracts you want? That would much be simpler than coding a contextual menu.

1 Like

thank you for your help

1 Like

Thank you for your help