CMDBuild Forum

Default Id in "Create Report" form widget

Hi, I am trying to implement a form widget of type “Create Report” in CMDBuild 3.x

As an example, using the openMAINT demo data, I’m successfull in creating a Form Widget button in the “Building” class, to invoke the “ConsumableStocks” report, which is also part of the openMAINT demo, with the following parameters in the form widget configuration:

ReportType=“custom”
ReportCode=“ConsumableStocks”
ForcePDF=1
SiteId={server:Id}

The “ConsumableStocks” report accepts one optional parameter, that is “SiteId”.
My problem is that when I click the newly createt report button in the Building card, in the popup window the report form appears but the Site parameter is empty, i.e. it is not populated with the Id of the Building that I have on the card, but I have to choose the site from the pulldown list.
I tried both {server:Id} and {client:Id}, but with no result.

Can you help?

Regards,
Gerardo