CMDBuild Forum

report parameters

is it possible in CMDBuild on create report ask from user a set of parameters?

for example, user wants to print report with custom set of parameters: 

period (10.05.2014-20.07.2014 or another) and select from lookup type (in use, in warehouse etc) and select class (printers, PCs, nootebooks or another)

Yes, you can create reports with parameters.

To do this you have to define the parameters as iReport parameters, choosing the name you like and using the rules listed below.
CMDBuild Team

 

------------

 

AVAILABLE FORMATS FOR JRPARAMETER NAME

 reference: "name.class.attribute"

 lookup: "name.lookup.lookuptype"

 simple: "name"

 

 REQUIRED PARAMETERS

 By default all custom parameters (with prompt flag set to true) are required.

 Set a parameter's property with name="required" and value="false" to override.

 

 Note: Reference or lookup parameters will always be integers while simple params will match original parameter class.

 

Thank you!

 
may be you have solution for DateTime format? (period, date, time and etc) for example like calendar?

In CMDBuild is available a widget called calendar”, similar to a calendar, that can be used in the workflows (Workflow Manual page 49).
CMDBuild Team

Hello,
  
    I try to define a iReport parameter to "Maint Req - Type" lookup, but when I try tu upload I get the following error  " REPORT_INVALID_PARAMETER_FORMAT" .
 
NAME = type.LookUp.MaintReq - Type
 
Any help is appreciated
 
Best Regards.
 
 
Previously Tecnoteca wrote:

Yes, you can create reports with parameters.

To do this you have to define the parameters as iReport parameters, choosing the name you like and using the rules listed below.
CMDBuild Team

 

------------

 

AVAILABLE FORMATS FOR JRPARAMETER NAME

 reference: "name.class.attribute"

 lookup: "name.lookup.lookuptype"

 simple: "name"

 

 REQUIRED PARAMETERS

 By default all custom parameters (with prompt flag set to true) are required.

 Set a parameter's property with name="required" and value="false" to override.

 

 Note: Reference or lookup parameters will always be integers while simple params will match original parameter class.