CMDBuild Forum

Re: How to develop custom widget?

Hi,

I'm new to CMDBuild and would like to develop custom widget.

Are there any documents or samples that describe how to develop custom widget?

Any suggestions would be appreciated,

Regards,

Satoru Funai

OSS Lobaratories, Inc.

Japan

At the moment this kind of documentation is not available because adding a widget requires non-trivial implementations in the "core" code, both client and server side.
A solution to enable the creation of custom widgets by CMDBuild users would be to create a "plugins" interface (that should be also compatible with version upgrades).

This, however, is a complex work that can be studied in the future but at the moment it is not planned.

CMDBuild Team

Hello CMDBuild-Team,

do we have some updates here?

Asking because: I have to add a functionality. In special, on a card, if the user click on a button(like the button from the qrgenerator(-widget), a modal or popup should open, here we have a input-field. The user should fill out this input-field(mandatory information). This input-value, together with specific data from the regarding card should than send per JavaScript (or maybe with buildIn email functionality in CMDBuild) per Email…

At this point, so far I can see, I have following options:

  • create a contextual menu and implement the functionality per plain javascript
  • create a widget, but here: I try to figure out, how to do this… In the webservices manual, I can see there is following request:
    Screenshot 2025-01-28 153522

That sounds that there are some changes regarding widget creation, so far:

  • the request desciption says: Create a new widget with the specified data
  • it would be great, if I can get or see an example how the parameter: widgetData(json) & file(dataHandler) looks and works.

Many thanks in advance