Jump to content

tony.dunlop

Members
  • Posts

    6
  • Joined

  • Last visited

tony.dunlop's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare

Recent Badges

0

Reputation

  1. this seems to work NOTE both of the following require the local date class to be added to the report either add this to the <jasperReport> section at the top of source file of the report next to the <property> values : <import value="java.time.LocalDate"/>[/code]or use jasper studio and click report->properties->import->add class then type localDate, see image attached First day of last month default date java.sql.Date.valueOf(LocalDate.now().withDayOfMonth(1).minusMonths(1))[/code]Last day of last month java.sql.Date.valueOf(LocalDate.now().withDayOfMonth(1).minusDays(1))[/code]
  2. I found it's not possibletop do directly in jasper, you can work it out in your SQL and then display in jasper though.
  3. you might have to convert the param to a string first depending on what type your year param is. Like this : $P{year}.toString()+”-01-01”
  4. could you not use: EDATE(TODAY(), -1000) for the parameter
  5. You can use: EDATE(TODAY(), -1)[/code]In the parameter default field
  6. if you're using a reverse proxy nginx will remove any headers with underscores, you need to add underscores_in_headers on; to the server directive: http://nginx.org/en/docs/http/ngx_http_core_module.html#underscores_in_headers
×
×
  • Create New...