Jump to content
We've recently updated our Privacy Statement, available here ×

Siddharth Kothari

Members
  • Posts

    13
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by Siddharth Kothari

  1. Try to use below in your expression:

    "select q.id as q_id, w.document_id, dt.id as dt_id, dep.d_name, q.q_name, dt.dt_name, CONVERT(varchar(10), w.wf_datein, 101) as wf_datein, CONVERT(varchar(10), w.wf_dateout, 101) as wf_dateout from workflow w inner join queue q on w.queue_id = q.id inner join document d on w.document_id = d.id inner join doctype dt on d.doc_type_id = dt.id inner join department dep on dt.department_id = dep.id where wf_dateout between "+$P{startDate}+" and  "+$P{endDate}+" and $X{IN, dt.id, doctypeId} and $X{IN,q.id, queueId} and dt.department_id = "+$P{departmentId}

  2. If you are using Java 8 then you can import following classes in your report:

    java.time.DayOfWeek;
    java.time.LocalDate;
    java.time.Month;
    java.time.temporal.TemporalAdjusters;

    and use expression similar to below by replacing year with current year or any parameter

    LocalDate.of(2017, Month.DECEMBER, 10).with(TemporalAdjusters.dayOfWeekInMonth(3, DayOfWeek.WEDNESDAY));

     

  3. Yes, it is possible.

    Let's say your paramter is  "P_MAX_Page" which stores maximum number of pages.

    Then you just need to create a variable as follows which will store reset page number:

    Name: V_PAGE_NUMBER

    Value Class Name: java.lang.Integer

    Expression: $V{PAGE_NUMBER} % $P{P_MAX_Page} == 0?$P{P_MAX_Page}:$V{PAGE_NUMBER} % $P{P_MAX_Page}

     

     

×
×
  • Create New...