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

makushatnik

Members
  • Posts

    8
  • 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

Everything posted by makushatnik

  1. Need I create a bug on Jaspersoft Library? Or I must tell everyone that Jasperreports does not work properly? Why make a software that does not work? Where do the layers overlap each other?
  2. Hi! Something even more interesting. I have 2 reports: Collection-letter,Collection-letter-ticket.1st can be printed alone from 1 place of my Java app, in another place (for ticket) I print 2nd template which has 1st as subreport. Collection-letter-ticket has title section, which includes only collection-letter subreport. Ticket scheme is here: When I print ticket with document, which has 9 or more partial payments records, Page Footer of Main Report appears on the top of that table data. Also the records 10th, 11th and next of partial payments table aren't printed. They disappears! What can I do if I need to print all data from template 1 + Page Footer on each page, after that a ticket, also with a Page Footer? Must I decrease the page height on 1st template on Page Footer's height or insert an empty Detail/Page Footer band on 1st template? If I go that way, how 2nd template guess to insert Page Footer in this exact place?
  3. Hi! Another way of what I want. 1 Detail band, split tipe I used - Prevent or Immediate, FreeLayout. All elements have position type - Float. DataSource - JSON. When the report is not fit to page 1, I need bottommost table (partial payments) and a pair of static texts to appears in page 2. When in the middle part of the report any field not stretched, result looks like that (right result): When any fields of middle block (purpose of payment, for example) stretching, bottommost table disappears. And it doesn't appears on page 2. When I have 2 or more records in signatures table, partial payments table appears on page 2, that's correct. What can I do to print all the report items in any case? I mean partial payments table and 2 static texts in case 2.
  4. Hi! I have 2 Detail bands. Middle part of my Detail band 1 can be stretched by fields - bank name, purpose of payment, receiver, sender, code.. (all of them can be of 5 lines size or even more). All fields have position type - Float. Layer Detail band - Free Layout (cause of middle part fields stretching), Split type - Prevent. Detail band's 2 Frame position type - Fixed relative to top. Datasource - JSON - correctly setted to template. Here the scheme of my template: Then I print that template with a long data in text fields, Detail band's 1 bottommost table (signatures) and stamp hides under Detail band 2. Then I print that template with signatures table when it has more then 1 record - it also hides. I can see that when I changes position type for signatures table or stamp to - Fix relative to top. What can I do to change this behavior? I need stretching for needed for its fields Detail band 1 with stretched table at bottom and a stamp, after that all data from Detail band 2 on that or a new page (if it's not fit to the rest of the list part). I need a whole Detail band's 2 Frame to be printed on 1st or 2nd page (without breaking its table). Screen applied. On that screen 3 records passed to table of signatures. And then Detail band 2 moves to page 2 (as I need if rest place is not fit a whole frame) and table of signatures is disappears.
  5. I have a Json like this: { "info": [ { "group": "Все события", "groupName": "Все события", "operation": "Все события", "sms": null, "email": null, "dbo": null, "phone": "", "condition": null }, { "group": "Системные события", "groupName": "Системные события", "operation": "Системные события", "sms": true, "email": false, "dbo": true, "phone": "", "condition": null }, { "group": "Системные события", "groupName": null, "operation": "Вход в систему", "sms": true, "email": false, "dbo": true, "phone": "+79635214478", "condition": null }, { "group": "Системные события", "groupName": null, "operation": "Cмена пароля", "sms": true, "email": false, "dbo": false, "phone": "+79635214478", "condition": null }, { "group": "Договор ДБО", "groupName": "Договор ДБО", "operation": "Договор ДБО", "sms": true, "email": false, "dbo": true, "phone": "", "condition": null }, { "group": "Договор ДБО", "groupName": null, "operation": "Выпуск сертификата", "sms": true, "email": false, "dbo": true, "phone": "+79635214321", "condition": null }, { "group": "Договор ДБО", "groupName": null, "operation": "Предупреждение об истечении срока сертификата", "sms": true, "email": false, "dbo": true, "phone": "+79635214321", "condition": null } ], ... }
  6. Hi, Thanks for your answer. I started to do like you said. It removes duplicates in element's section, but I still have duplicate string in groupHeader band and in this section I can't see my added in Json structure and in jasper table fields - groupName. That's my report for now (I used him like a subreport for a bigger report): powers.jrxml Can somebody tell me, what is wrong?
  7. Hi, I write simple reports in Jaspersoft Studio for Eclipse. I need to do a big hard report for now. In my report I have some static texts and 3 jasper tables with separate Dataset. DataSource - Json. I was added a Group (Group is the name) section in my Info Dataset. I also was added a GroupHeader band in my table. Json - 1-level array (not grouped) of data like this: [ { operation: "Group 1 Name", group: null, ..}, { operation: "Element 1 Name", group: "Group 1 Name",..} ..]. I want to print GroupHeader then group field = null. Like you can see on my screen, groups are printed twice. In my DataSource I have 13 elements with 5 groups. In my result pdf I get 18 elements (because groups printed twice). What I must change to avoid this behavior? 5
  8. Hi, When making a complex report, I had to break everything into subreports. There are a couple of questions: 1. How to transfer datasource to subreport correctly? Found in the project in jrxml such an example: ((net.sf.jasperreports.engine.data.JsonDataSource)$P{REPORT_DATA_SOURCE}).subDataSource ("accounts") There are no code examples. I must add "accounts" to the settings map, where will be, let's say List <AccountDto>? And how I can get this data in the subreport? 2. In 5 of 7 subreports a separate datasource is not needed, but it's needed to receive the fields of the main report. What is needed for this? Let's say id and name need to be printed on different pages in different blocks. I have that code to link params to Master report: Map<String, Object> map = objectMapper.convertValue(paramSettingDto, Map.class); renderParameters.setDataModel(singletonList(map)); renderParameters.setFormat(format.getExtension()); renderParameters.setTemplateId(PARAM_SETTING_TEMPLATE_NAME); renderParameters.setZip(false); In params of Master report comes all fields of given paramSettingDto.
×
×
  • Create New...