CMDBuild Forum

Jasper report for a specific device

Hi to all. I'm new of cmdbuild and i have try to install it and test it in a test environment. I have a question about Jasper report. 

 

In fact i would like to build a record for in a way that when a user go to a card of a particular device, if the user clicks on the button of the report that i want a pdf will open with a detail of this device (Serial Number, date of acceptance, date of delivery, etc).

Maybe the request is simple or maybe not but i don't know how setup this report.

I know how create a report that make a general select on a postgres table and print all devices but how can I print the detail of the device of the card that I open...

In practice i would know how in JRXML how can know which device card i have open in that moment when i press the report button

I hope I've made my point.

How make it? is there some link how someone explains in detail how create new jasper report?

do you have some JRXML test report that i can read check and verify to understand my objective?

Thanks

 

You can configure a report widget as shown in the attached screenshot.
CMDBuild Team

 

 


reportwidget-jpg (54.4 KB)

Previously Tecnoteca wrote:

You can configure a report widget as shown in the attached screenshot.
CMDBuild Team

Many Thanks!

so in this way I can use variable "Cliente" to pass the ID of the card that I have opened in that moment to the report?
 
is it correct what I said?
 
thanks

 

 

Yes, you must define a Customer parameter.
CMDBuild

 

 

 

Thanks.

 
But in my case, where I would ti select a specific card of notebook and create a report where includes serial Number of the notebook and the assignee, what parameters i need to pass to the report? Not the customer I thought but the id of the notebook. Is It correct?
 
Many thanks!

Ok! all works now.

 
thanks to all!