Jasper Report get the defaults and filters values

Hello @luisfmfernandes.

Its me again :smile: Is it possible to get the filter values and frappe defaults in Jasper report? In script report you can do this filters.subject in HTML file also defaults values for frappe example frappe.defaults.get_user_default('School Logo')?

Cheers,
Chris

Hi @ccfiel.

I don’t understand your question!

Where do you want to apply filters? In jasper jrxml file? In client javascript code? In server side code before make the report?

Luis.

Hello @luisfmfernandes,

I want to get the default values example frappe.defaults.get_user_default('School Address') and put the value to the header of jrxml. Is it possible to jrxml? In html this is possible. :smile:

Cheers,
Chris

Hi @ccfiel.

Yes you can :smile:. It is possible by using fields like it is used in Table example.

To assiste you (and easy the process) in making jasper reports you should use JasperSoft Studio.

Then dependent what you want to do you can use jasper hook like the example commented in hook.py file.

There is another way but i have to make the manual. I need to make a manual but have no spare time yet.

If you need any help let me know.

Luis.