\n\u003C/LinearLayout>\n","xml",[168,406,407,412,417,422,427,432,437,442,447,452,457,462],{"__ignoreMap":123},[171,408,409],{"class":173,"line":174},[171,410,411],{},"\u003C?xml version=\"1.0\" encoding=\"utf-8\"?>\n",[171,413,414],{"class":173,"line":124},[171,415,416],{},"\u003CLinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n",[171,418,419],{"class":173,"line":185},[171,420,421],{}," android:layout_width=\"match_parent\"\n",[171,423,424],{"class":173,"line":191},[171,425,426],{}," android:layout_height=\"match_parent\"\n",[171,428,429],{"class":173,"line":197},[171,430,431],{}," android:orientation=\"vertical\">\n",[171,433,434],{"class":173,"line":203},[171,435,436],{}," \u003CTextView\n",[171,438,439],{"class":173,"line":209},[171,440,441],{}," android:id=\"@+id/text\"\n",[171,443,444],{"class":173,"line":215},[171,445,446],{}," android:layout_width=\"match_parent\"\n",[171,448,449],{"class":173,"line":221},[171,450,451],{}," android:layout_height=\"30dp\"\n",[171,453,454],{"class":173,"line":227},[171,455,456],{}," android:gravity=\"center_vertical\"\n",[171,458,459],{"class":173,"line":232},[171,460,461],{}," android:padding=\"5dp\"/>\n",[171,463,464],{"class":173,"line":237},[171,465,466],{},"\u003C/LinearLayout>\n",[18,468,469],{},"Then we add the created adapter to a ListView (or a ListActivity like here):",[162,471,473],{"className":164,"code":472,"language":166,"meta":123,"style":123},"public class ExpandableListActivity extends ListActivity {\n@Override\npublic void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n List\u003CString> entries = new ArrayList\u003CString>();\n for (int i = 1; i \u003C= 101; i++) {\n entries.add(\"Entry \" + i);\n }\n setListAdapter(new ExpandableListAdapter(entries, this));\n}\n private class ExpandableListAdapter extends BaseAdapter{....}\n}\n",[168,474,475,480,485,490,495,500,505,510,515,520,524,529],{"__ignoreMap":123},[171,476,477],{"class":173,"line":174},[171,478,479],{},"public class ExpandableListActivity extends ListActivity {\n",[171,481,482],{"class":173,"line":124},[171,483,484],{},"@Override\n",[171,486,487],{"class":173,"line":185},[171,488,489],{},"public void onCreate(Bundle savedInstanceState) {\n",[171,491,492],{"class":173,"line":191},[171,493,494],{}," super.onCreate(savedInstanceState);\n",[171,496,497],{"class":173,"line":197},[171,498,499],{}," List\u003CString> entries = new ArrayList\u003CString>();\n",[171,501,502],{"class":173,"line":203},[171,503,504],{}," for (int i = 1; i \u003C= 101; i++) {\n",[171,506,507],{"class":173,"line":209},[171,508,509],{}," entries.add(\"Entry \" + i);\n",[171,511,512],{"class":173,"line":215},[171,513,514],{}," }\n",[171,516,517],{"class":173,"line":221},[171,518,519],{}," setListAdapter(new ExpandableListAdapter(entries, this));\n",[171,521,522],{"class":173,"line":227},[171,523,396],{},[171,525,526],{"class":173,"line":232},[171,527,528],{}," private class ExpandableListAdapter extends BaseAdapter{....}\n",[171,530,531],{"class":173,"line":237},[171,532,396],{},[18,534,535],{},"The list as it is now shows all entries, so the next thing to do, is implementing the limiting function to the adapter.",[18,537,538],{},"Let’s start by giving our adapter a member variable for the limit:",[162,540,542],{"className":164,"code":541,"language":166,"meta":123,"style":123},"private int limit = 20;\n",[168,543,544],{"__ignoreMap":123},[171,545,546],{"class":173,"line":174},[171,547,541],{},[18,549,550],{},"Next we need to modify some of the methods to get this working:",[18,552,553],{},"In getCount we need to either return the limit, or the size of the list, if the limit is greater than the list, because\nour list contains all entries and we only want to display a part of it.",[162,555,557],{"className":164,"code":556,"language":166,"meta":123,"style":123},"@Override\npublic int getCount() {\n if (entries.size() \u003C= limit) {\n return entries.size();\n }\n return limit;\n}\n",[168,558,559,563,568,573,578,582,587],{"__ignoreMap":123},[171,560,561],{"class":173,"line":174},[171,562,484],{},[171,564,565],{"class":173,"line":124},[171,566,567],{},"public int getCount() {\n",[171,569,570],{"class":173,"line":185},[171,571,572],{}," if (entries.size() \u003C= limit) {\n",[171,574,575],{"class":173,"line":191},[171,576,577],{}," return entries.size();\n",[171,579,580],{"class":173,"line":197},[171,581,514],{},[171,583,584],{"class":173,"line":203},[171,585,586],{}," return limit;\n",[171,588,589],{"class":173,"line":209},[171,590,396],{},[18,592,593],{},"Next, we need to adjust the getItem method with an further clause in the if",[162,595,597],{"className":164,"code":596,"language":166,"meta":123,"style":123},"if (position >= 0 && position \u003C limit && position \u003C entries.size())\n return entries.get(position);\n",[168,598,599,604],{"__ignoreMap":123},[171,600,601],{"class":173,"line":174},[171,602,603],{},"if (position >= 0 && position \u003C limit && position \u003C entries.size())\n",[171,605,606],{"class":173,"line":124},[171,607,608],{}," return entries.get(position);\n",[18,610,611],{},"Now for the biggest change for our new functionality: the implementation of the ‘more button’.",[162,613,615],{"className":164,"code":614,"language":166,"meta":123,"style":123},"private LinearLayout getMoreView() {\n LinearLayout moreView = (LinearLayout) getLayoutInflater().inflate(R.layout.more_row, null);\n moreView.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n listAdapter.increaseLimit();\n }\n });\n return moreView;\n}\n",[168,616,617,622,627,632,637,642,646,651,656],{"__ignoreMap":123},[171,618,619],{"class":173,"line":174},[171,620,621],{},"private LinearLayout getMoreView() {\n",[171,623,624],{"class":173,"line":124},[171,625,626],{}," LinearLayout moreView = (LinearLayout) getLayoutInflater().inflate(R.layout.more_row, null);\n",[171,628,629],{"class":173,"line":185},[171,630,631],{}," moreView.setOnClickListener(new View.OnClickListener() {\n",[171,633,634],{"class":173,"line":191},[171,635,636],{}," public void onClick(View v) {\n",[171,638,639],{"class":173,"line":197},[171,640,641],{}," listAdapter.increaseLimit();\n",[171,643,644],{"class":173,"line":203},[171,645,338],{},[171,647,648],{"class":173,"line":209},[171,649,650],{}," });\n",[171,652,653],{"class":173,"line":215},[171,654,655],{}," return moreView;\n",[171,657,658],{"class":173,"line":221},[171,659,396],{},[18,661,662],{},"Create another simple xml like this (disregarded i18n for this simple test case. Of course, Strings should normally be\ndeclared in the strings.xml):",[162,664,666],{"className":402,"code":665,"language":404,"meta":123,"style":123},"\u003C?xml version=\"1.0\" encoding=\"utf-8\"?>\n\u003CLinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:layout_width=\"fill_parent\"\n android:layout_height=\"wrap_content\"\n android:orientation=\"horizontal\"\n android:paddingLeft=\"20dp\"\n android:paddingRight=\"20dp\">\n \u003CTextView\n android:id=\"@+id/MoreRowText\"\n android:layout_width=\"fill_parent\"\n android:layout_height=\"40dp\"\n android:text=\"Load more...\"\n android:gravity=\"center\"/>\n\u003C/LinearLayout>\n",[168,667,668,672,676,681,686,691,696,701,705,710,715,720,725,730],{"__ignoreMap":123},[171,669,670],{"class":173,"line":174},[171,671,411],{},[171,673,674],{"class":173,"line":124},[171,675,416],{},[171,677,678],{"class":173,"line":185},[171,679,680],{}," android:layout_width=\"fill_parent\"\n",[171,682,683],{"class":173,"line":191},[171,684,685],{}," android:layout_height=\"wrap_content\"\n",[171,687,688],{"class":173,"line":197},[171,689,690],{}," android:orientation=\"horizontal\"\n",[171,692,693],{"class":173,"line":203},[171,694,695],{}," android:paddingLeft=\"20dp\"\n",[171,697,698],{"class":173,"line":209},[171,699,700],{}," android:paddingRight=\"20dp\">\n",[171,702,703],{"class":173,"line":215},[171,704,436],{},[171,706,707],{"class":173,"line":221},[171,708,709],{}," android:id=\"@+id/MoreRowText\"\n",[171,711,712],{"class":173,"line":227},[171,713,714],{}," android:layout_width=\"fill_parent\"\n",[171,716,717],{"class":173,"line":232},[171,718,719],{}," android:layout_height=\"40dp\"\n",[171,721,722],{"class":173,"line":237},[171,723,724],{}," android:text=\"Load more...\"\n",[171,726,727],{"class":173,"line":243},[171,728,729],{}," android:gravity=\"center\"/>\n",[171,731,732],{"class":173,"line":249},[171,733,466],{},[18,735,736],{},"And add a method to the adapter to increase the limit:",[162,738,740],{"className":164,"code":739,"language":166,"meta":123,"style":123}," public void increaseLimit() {\n limit+=20;\n //remove the button if we can no longer expand the list\n if (limit >= entries.size()) {\n getListView().removeFooterView(moreView);\n }\n //notify to redraw the list\n notifyDataSetChanged();\n }\n",[168,741,742,747,752,757,762,767,771,776,781],{"__ignoreMap":123},[171,743,744],{"class":173,"line":174},[171,745,746],{}," public void increaseLimit() {\n",[171,748,749],{"class":173,"line":124},[171,750,751],{}," limit+=20;\n",[171,753,754],{"class":173,"line":185},[171,755,756],{}," //remove the button if we can no longer expand the list\n",[171,758,759],{"class":173,"line":191},[171,760,761],{}," if (limit >= entries.size()) {\n",[171,763,764],{"class":173,"line":197},[171,765,766],{}," getListView().removeFooterView(moreView);\n",[171,768,769],{"class":173,"line":203},[171,770,514],{},[171,772,773],{"class":173,"line":209},[171,774,775],{}," //notify to redraw the list\n",[171,777,778],{"class":173,"line":215},[171,779,780],{}," notifyDataSetChanged();\n",[171,782,783],{"class":173,"line":221},[171,784,514],{},[18,786,787],{},"At last, we simply add the button as a footer view to our list (After creation of the ListView, but before setting the\nListAdapter to the ListView):",[162,789,791],{"className":164,"code":790,"language":166,"meta":123,"style":123},"moreView = getMoreView();\nlistAdapter = new ExpandableListAdapter(entries);\ngetListView().addFooterView(moreView);\nsetListAdapter(listAdapter);\n",[168,792,793,798,803,808],{"__ignoreMap":123},[171,794,795],{"class":173,"line":174},[171,796,797],{},"moreView = getMoreView();\n",[171,799,800],{"class":173,"line":124},[171,801,802],{},"listAdapter = new ExpandableListAdapter(entries);\n",[171,804,805],{"class":173,"line":185},[171,806,807],{},"getListView().addFooterView(moreView);\n",[171,809,810],{"class":173,"line":191},[171,811,812],{},"setListAdapter(listAdapter);\n",[18,814,815],{},"And that’s it for the simple case of a static list 🙂",[18,817,818],{},"If you want to do this a bit more dynamic or you don’t want to load whole database table (or the whole internet) into\nyour list, you have to do some extra work.",[820,821,822,826,829],"ol",{},[823,824,825],"li",{},"Load the next X entries with an AsyncTask (display a ProgressDialog while it is getting the data!) and add a method\nto your adapter, that adds this entries to the list. Call this method from within the onPostExecute method of the\nAsyncTask",[823,827,828],{},"You may want to keep track of the total number of entries you have to know when the user can’t load any more entries\nand to remove the button. (If the dataset is not bound to grow every few seconds. Otherwise, maybe let the user try\nto hit the button and see for himself, if theres new data)",[823,830,831],{},"Keep in mind to notify your users if anything fails, like the next entries could not have been loaded, because they\nhave no internet connection.",[18,833,834,835,841],{},"A Little homework for you: Combine it with\nthe ",[22,836,840],{"href":837,"rel":838,"title":839},"http://blog.synyx.de/2011/11/android-listview-with-rounded-corners/",[26],"android listview with rounded corners","rounded corners example","\nto make it look better 😛",[18,843,844,845],{},"Here’s the source, btw:",[22,846,849],{"href":847,"rel":848},"https://media.synyx.de/uploads//2012/12/ExpandableListview.zip",[26],"ExpandableListview",[851,852,853],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":123,"searchDepth":124,"depth":124,"links":855},[],[857,858],"mobile-blog","tutorial","2012-12-07T09:39:26","In today’s tutorial I’d like to show you how to implement a ListView, that only displays a limited number of entries.\\nWith a button at the end of the list, the user can load more entries.","https://synyx.de/blog/android-expandable-listview/",{},"/blog/android-expandable-listview",{"title":147,"description":157},"blog/android-expandable-listview",[867,868,869,870,871,872,873,874],"android","entries","entry","expandable","limit","limited","list","listview","In today’s tutorial I’d like to show you how to implement a ListView, that only displays a limited number of entries. With a button at the end of the list,…","2cPxf8ntm24639cXpvDd1uvgjk37n-ulC-vUEA0BPZw",{"id":878,"title":879,"author":880,"body":882,"category":1207,"date":1209,"description":1210,"extension":130,"link":1211,"meta":1212,"navigation":133,"path":1213,"seo":1214,"slug":886,"stem":1215,"tags":1216,"teaser":1220,"__hash__":1221},"blog/blog/big-jasper-reports-with-custom-xml-datasource.md","Big Jasper Reports with custom XML datasource",[881],"steinegger",{"type":11,"value":883,"toc":1203},[884,887,890,902,905,916,921,930,935,938,968,972,979,995,998,1003,1010,1015,1022,1028,1147,1151,1158,1167,1171,1174,1180,1183,1186,1189,1192,1195,1198,1201],[14,885,879],{"id":886},"big-jasper-reports-with-custom-xml-datasource",[18,888,889],{},"While working on one of my projects we were faced with the problem of creating a report with a big amount of data to\nshow on multiple Excel tabs (about 50000 entries grouped by different criteria’s). We had a couple of requirements that\nlead us to choose Jasper Reports as our report generation engine. Other requirements lead us to use XML as data source –\ne.g. to generate the report on the fly without wasting hard disk space for different languages.",[18,891,892,893,897,898,901],{},"Really quick we figured out that the default XML data source implementation with XPath does not work out for us, which\nwas not really a big surprise in regard of how XPath is working – the first test has been terminated after about an hour\nwhile Jasper Reports was still generating the report. The Jasper Report documentation is referring to implement a custom\ndata source based on a SAX parser to solve these kind of performance problems. But this is not completely right because\nwhat you really wanna use is a ",[894,895,896],"strong",{},"SAXPullParser"," implementation in order to control which is the current parsed tag\nrather than being called by the ",[894,899,900],{},"SAXParser"," itself.",[18,903,904],{},"So what are the steps to use a SAXPullParser as part of a custom data source:",[820,906,907,910,913],{},[823,908,909],{},"Create the XML raw data format",[823,911,912],{},"Write a custom data source",[823,914,915],{},"Incorporate the data source into the report generation",[917,918,920],"h3",{"id":919},"sample-project","Sample project",[18,922,923,924,929],{},"The ",[22,925,928],{"href":926,"rel":927},"https://media.synyx.de/uploads//2012/08/jasperreports.zip",[26],"attached sample project"," shows a complete sample\nimplementation of a custom data source and a SAXPullParser. The XML raw data is already created and part of the test\nresources.",[931,932,934],"h4",{"id":933},"the-xml-format","The XML format",[18,936,937],{},"The XML format is very simple and represents e.g. all Persons of a company:",[162,939,941],{"className":402,"code":940,"language":404,"meta":123,"style":123},"\u003C?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\u003CPersons>\n \u003CPerson firstname=\"First\" lastname=\"Last\" mail=\"first.last@test.test\" title=\"nice guy\" age=\"47\" status=\"married\"/>\n ...\n\u003C/Persons>\n",[168,942,943,948,953,958,963],{"__ignoreMap":123},[171,944,945],{"class":173,"line":174},[171,946,947],{},"\u003C?xml version=\"1.0\" encoding=\"UTF-8\"?>\n",[171,949,950],{"class":173,"line":124},[171,951,952],{},"\u003CPersons>\n",[171,954,955],{"class":173,"line":185},[171,956,957],{}," \u003CPerson firstname=\"First\" lastname=\"Last\" mail=\"first.last@test.test\" title=\"nice guy\" age=\"47\" status=\"married\"/>\n",[171,959,960],{"class":173,"line":191},[171,961,962],{}," ...\n",[171,964,965],{"class":173,"line":197},[171,966,967],{},"\u003C/Persons>\n",[931,969,971],{"id":970},"the-custom-data-source","The custom data source",[18,973,974,975,978],{},"The custom data source extends the ",[894,976,977],{},"JRAbstractTextDataSource"," and therefore the sample implementation has to override\nthe methods",[980,981,982,989],"ul",{},[823,983,984,988],{},[985,986,987],"em",{},"boolean next():"," Determines whether or not there is another row to display",[823,990,991,994],{},[985,992,993],{},"Object getFieldValue(JRField field)",": Requests the value for the given field/cell",[18,996,997],{},"It simply implements the Iterator pattern in order to render all columns of the report.",[18,999,1000],{},[894,1001,1002],{},"Initialization",[18,1004,1005,1006,1009],{},"The constructor of the class expects an Inputstream that represents the XML source. Based on that stream the class\ninitializes a ",[894,1007,1008],{},"XMLStreamReader"," which is basically an iterator over the XML tags.",[18,1011,1012],{},[894,1013,1014],{},"boolean next()",[18,1016,1017,1018,1021],{},"The implementation of the ",[985,1019,1020],{},"next()"," method initially iterates over the XML tags till it reaches the first Person tag and\nstops at this point. Unfortunately this means that the custom implementation contains knowledge about how the XML is\nstructured and makes it very hard to reuse.",[18,1023,1024,1025,1027],{},"Every subsequent call to the ",[985,1026,1020],{}," method sets the current pointer to the next Person element and returns true, until\nthe Persons tag has been reached or the end of the document appeared.",[162,1029,1031],{"className":164,"code":1030,"language":166,"meta":123,"style":123}," int eventType = xmlStreamReader.getEventType();\n String tagName = null;\n boolean isStart = false;\n while (xmlStreamReader.hasNext()) {\n eventType = xmlStreamReader.next();\n switch (eventType) {\n case XMLEvent.START_ELEMENT:\n isStart = true;\n case XMLEvent.END_ELEMENT:\n tagName = xmlStreamReader.getLocalName();\n // check if there is still a person element left\n if (isStart && PERSON_TAG_NAME.equals(tagName)) {\n return true;\n } else if (!isStart && PERSONS_TAG_NAME.equals(tagName)) {\n // end tag of persons, nothing else to handle\n return false;\n }\n break;\n case XMLEvent.END_DOCUMENT:\n return false;\n }\n isStart = false;\n }\n",[168,1032,1033,1038,1043,1048,1053,1058,1063,1068,1073,1078,1083,1088,1093,1098,1103,1108,1113,1117,1122,1127,1132,1137,1142],{"__ignoreMap":123},[171,1034,1035],{"class":173,"line":174},[171,1036,1037],{}," int eventType = xmlStreamReader.getEventType();\n",[171,1039,1040],{"class":173,"line":124},[171,1041,1042],{}," String tagName = null;\n",[171,1044,1045],{"class":173,"line":185},[171,1046,1047],{}," boolean isStart = false;\n",[171,1049,1050],{"class":173,"line":191},[171,1051,1052],{}," while (xmlStreamReader.hasNext()) {\n",[171,1054,1055],{"class":173,"line":197},[171,1056,1057],{}," eventType = xmlStreamReader.next();\n",[171,1059,1060],{"class":173,"line":203},[171,1061,1062],{}," switch (eventType) {\n",[171,1064,1065],{"class":173,"line":209},[171,1066,1067],{}," case XMLEvent.START_ELEMENT:\n",[171,1069,1070],{"class":173,"line":215},[171,1071,1072],{}," isStart = true;\n",[171,1074,1075],{"class":173,"line":221},[171,1076,1077],{}," case XMLEvent.END_ELEMENT:\n",[171,1079,1080],{"class":173,"line":227},[171,1081,1082],{}," tagName = xmlStreamReader.getLocalName();\n",[171,1084,1085],{"class":173,"line":232},[171,1086,1087],{}," // check if there is still a person element left\n",[171,1089,1090],{"class":173,"line":237},[171,1091,1092],{}," if (isStart && PERSON_TAG_NAME.equals(tagName)) {\n",[171,1094,1095],{"class":173,"line":243},[171,1096,1097],{}," return true;\n",[171,1099,1100],{"class":173,"line":249},[171,1101,1102],{}," } else if (!isStart && PERSONS_TAG_NAME.equals(tagName)) {\n",[171,1104,1105],{"class":173,"line":255},[171,1106,1107],{}," // end tag of persons, nothing else to handle\n",[171,1109,1110],{"class":173,"line":261},[171,1111,1112],{}," return false;\n",[171,1114,1115],{"class":173,"line":266},[171,1116,338],{},[171,1118,1119],{"class":173,"line":271},[171,1120,1121],{}," break;\n",[171,1123,1124],{"class":173,"line":277},[171,1125,1126],{}," case XMLEvent.END_DOCUMENT:\n",[171,1128,1129],{"class":173,"line":283},[171,1130,1131],{}," return false;\n",[171,1133,1134],{"class":173,"line":288},[171,1135,1136],{}," }\n",[171,1138,1139],{"class":173,"line":293},[171,1140,1141],{}," isStart = false;\n",[171,1143,1144],{"class":173,"line":299},[171,1145,1146],{}," }\n",[18,1148,1149],{},[894,1150,993],{},[18,1152,1153,1154,1157],{},"The implementation of",[985,1155,1156],{},"getFieldValue(JRField field)"," is very simple, because the attribute name is exactly the name that\nis assigned in the Jasper Report document.",[162,1159,1161],{"className":164,"code":1160,"language":166,"meta":123,"style":123},"return xmlStreamReader.getAttributeValue(null, field.getName());\n",[168,1162,1163],{"__ignoreMap":123},[171,1164,1165],{"class":173,"line":174},[171,1166,1160],{},[917,1168,1170],{"id":1169},"brining-all-together","Brining all together",[18,1172,1173],{},"We have now a XML file that contains our test persons and a custom data source that iterates one by one over each\nperson. It is time to see how this improved the report generation time and bringing all pieces together.",[18,1175,923,1176,1179],{},[894,1177,1178],{},"ReportGenerator"," class accepts the XML source and the template as stream and via an additional flag it is\npossible to switch between the default and the custom data source. A simple Junit test is using this class to run 4\nreport generations and measures the amount of time it needed. Here the result of the Junit test on my local machine:",[18,1181,1182],{},"`Running com.jasperreports.ReportGeneratorTest",[18,1184,1185],{},"INFO ReportGenerator - Created report with default XML data source in 4.136 seconds.",[18,1187,1188],{},"INFO ReportGenerator - Created report with custom datasource in 0.684 seconds.",[18,1190,1191],{},"INFO ReportGenerator - Created report with default XML data source in 21.463 seconds.",[18,1193,1194],{},"INFO ReportGenerator - Created report with custom datasource in 3.495 seconds.",[18,1196,1197],{},"Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 30.267 sec`",[18,1199,1200],{},"The first two results are using a XML source with 100 Persons, the following two are processing 5000 Persons. The custom\ndata source implementation is about 6 times faster than the default implementation and this sample “only” uses only a\nfraction of what we had to process in our project. In fact our worst case scenario mentioned in the beginning is using\n50000 records on multiple tabs and therefore this improvement pays of very fast.",[851,1202,853],{},{"title":123,"searchDepth":124,"depth":124,"links":1204},[1205,1206],{"id":919,"depth":185,"text":920},{"id":1169,"depth":185,"text":1170},[1208],"open-source-blog","2012-08-29T02:40:26","While working on one of my projects we were faced with the problem of creating a report with a big amount of data to\\nshow on multiple Excel tabs (about 50000 entries grouped by different criteria’s). We had a couple of requirements that\\nlead us to choose Jasper Reports as our report generation engine. Other requirements lead us to use XML as data source –\\ne.g. to generate the report on the fly without wasting hard disk space for different languages.","https://synyx.de/blog/big-jasper-reports-with-custom-xml-datasource/",{},"/blog/big-jasper-reports-with-custom-xml-datasource",{"title":879,"description":889},"blog/big-jasper-reports-with-custom-xml-datasource",[1217,1218,1219],"custom-datasource","jasper-reports","saxpullparser","While working on one of my projects we were faced with the problem of creating a report with a big amount of data to show on multiple Excel tabs (about…","SYnjblwoql00btIP3Bhd2-4MQoGLcsdaZYWx_o08uoA",[1223,1226,1229,1232,1235,1238,1241,1244,1247,1250,1253,1256,1259,1262,1265,1268,1271,1274,1277,1280,1283,1286,1288,1291,1294,1297,1300,1301,1304,1307,1310,1313,1316,1319,1322,1325,1328,1331,1334,1337,1340,1343,1346,1349,1352,1355,1358,1361,1364,1367,1370,1373,1376,1379,1382,1385,1388,1391,1394,1397,1400,1403,1406,1408,1411,1414,1417,1420,1423,1426,1429,1432,1435,1438,1441,1444,1447,1450,1453,1456,1459,1462,1465,1468,1471,1474,1477,1480,1483,1486,1489,1492,1495,1498,1501,1504,1507,1510,1513,1515,1518,1521,1524,1527,1529,1532,1535,1538,1541,1544,1547,1550,1553,1556,1559,1562,1565,1568,1571,1574,1577,1580,1583,1586,1589,1592,1595,1598,1600,1603,1605,1608,1611,1614,1617,1620,1623,1626,1629,1632,1635,1638],{"slug":1224,"name":1225},"abel","Jennifer Abel",{"slug":1227,"name":1228},"allmendinger","Otto Allmendinger",{"slug":1230,"name":1231},"antony","Ben Antony",{"slug":1233,"name":1234},"arrasz","Joachim Arrasz",{"slug":1236,"name":1237},"bauer","David Bauer",{"slug":1239,"name":1240},"bechtold","Janine Bechtold",{"slug":1242,"name":1243},"boersig","Jasmin Börsig",{"slug":1245,"name":1246},"buch","Fabian Buch",{"slug":1248,"name":1249},"buchloh","Aljona Buchloh",{"slug":1251,"name":1252},"burgard","Julia Burgard",{"slug":1254,"name":1255},"caspar-schwedes","Caspar Schwedes",{"slug":1257,"name":1258},"christina-schmitt","Christina Schmitt",{"slug":1260,"name":1261},"clausen","Michael Clausen",{"slug":1263,"name":1264},"contargo_poetzsch","Thomas Pötzsch",{"slug":1266,"name":1267},"damrath","Sebastian Damrath",{"slug":1269,"name":1270},"daniel","Markus Daniel",{"slug":1272,"name":1273},"dasch","Julia Dasch",{"slug":1275,"name":1276},"denman","Joffrey Denman",{"slug":1278,"name":1279},"dfuchs","Daniel Fuchs",{"slug":1281,"name":1282},"dobler","Max Dobler",{"slug":1284,"name":1285},"dobriakov","Vladimir Dobriakov",{"slug":1287,"name":1287},"dreiqbik",{"slug":1289,"name":1290},"dschaefer","Denise Schäfer",{"slug":1292,"name":1293},"dschneider","Dominik Schneider",{"slug":1295,"name":1296},"duerlich","Isabell Duerlich",{"slug":1298,"name":1299},"dutkowski","Bernd Dutkowski",{"slug":9,"name":9},{"slug":1302,"name":1303},"essig","Tim Essig",{"slug":1305,"name":1306},"ferstl","Maximilian Ferstl",{"slug":1308,"name":1309},"fey","Prisca Fey",{"slug":1311,"name":1312},"frank","Leonard Frank",{"slug":1314,"name":1315},"franke","Arnold Franke",{"slug":1317,"name":1318},"frischer","Nicolette Rudmann",{"slug":1320,"name":1321},"fuchs","Petra Fuchs",{"slug":1323,"name":1324},"gari","Sarah Gari",{"slug":1326,"name":1327},"gast","Gast",{"slug":1329,"name":1330},"graf","Johannes Graf",{"slug":1332,"name":1333},"grammlich","Daniela Grammlich",{"slug":1335,"name":1336},"guthardt","Sabrina Guthardt",{"slug":1338,"name":1339},"haeussler","Johannes Häussler",{"slug":1341,"name":1342},"hammann","Daniel Hammann",{"slug":1344,"name":1345},"heetel","Julian Heetel",{"slug":1347,"name":1348},"heft","Florian Heft",{"slug":1350,"name":1351},"heib","Sebastian Heib",{"slug":1353,"name":1354},"heisler","Ida Heisler",{"slug":1356,"name":1357},"helm","Patrick Helm",{"slug":1359,"name":1360},"herbold","Michael Herbold",{"slug":1362,"name":1363},"hofmann","Peter Hofmann",{"slug":1365,"name":1366},"hopf","Florian Hopf",{"slug":1368,"name":1369},"jaud","Alina Jaud",{"slug":1371,"name":1372},"jayasinghe","Robin De Silva Jayasinghe",{"slug":1374,"name":1375},"jbuch","Jonathan Buch",{"slug":1377,"name":1378},"junghanss","Gitta Junghanß",{"slug":1380,"name":1381},"kadyietska","Khrystyna Kadyietska",{"slug":1383,"name":1384},"kannegiesser","Marc Kannegiesser",{"slug":1386,"name":1387},"karoly","Robert Károly",{"slug":1389,"name":1390},"karrasz","Katja Arrasz-Schepanski",{"slug":1392,"name":1393},"kaufmann","Florian Kaufmann",{"slug":1395,"name":1396},"kesler","Mike Kesler",{"slug":1398,"name":1399},"kirchgaessner","Bettina Kirchgäßner",{"slug":1401,"name":1402},"klem","Yannic Klem",{"slug":1404,"name":1405},"klenk","Timo Klenk",{"slug":149,"name":1407},"Tobias Knell",{"slug":1409,"name":1410},"knoll","Anna-Lena Knoll",{"slug":1412,"name":1413},"knorre","Matthias Knorre",{"slug":1415,"name":1416},"koenig","Melanie König",{"slug":1418,"name":1419},"kraft","Thomas Kraft",{"slug":1421,"name":1422},"krupicka","Florian Krupicka",{"slug":1424,"name":1425},"kuehn","Christian Kühn",{"slug":1427,"name":1428},"lange","Christian Lange",{"slug":1430,"name":1431},"larrasz","Luca Arrasz",{"slug":1433,"name":1434},"leist","Sascha Leist",{"slug":1436,"name":1437},"lihs","Michael Lihs",{"slug":1439,"name":1440},"linsin","David Linsin",{"slug":1442,"name":1443},"maniyar","Christian Maniyar",{"slug":1445,"name":1446},"martin","Björnie",{"slug":1448,"name":1449},"martin-koch","Martin Koch",{"slug":1451,"name":1452},"matt","Tobias Matt",{"slug":1454,"name":1455},"mennerich","Christian Mennerich",{"slug":1457,"name":1458},"menz","Alexander Menz",{"slug":1460,"name":1461},"meseck","Frederick Meseck",{"slug":1463,"name":1464},"messner","Oliver Messner",{"slug":1466,"name":1467},"michael-ploed","Michael Plöd",{"slug":1469,"name":1470},"mies","Marius Mies",{"slug":1472,"name":1473},"mihai","Alina Mihai",{"slug":1475,"name":1476},"moeller","Jörg Möller",{"slug":1478,"name":1479},"mohr","Rebecca Mohr",{"slug":1481,"name":1482},"moretti","David Moretti",{"slug":1484,"name":1485},"mueller","Sven Müller",{"slug":1487,"name":1488},"muessig","Alexander Müssig",{"slug":1490,"name":1491},"neupokoev","Grigory Neupokoev",{"slug":1493,"name":1494},"nussbaecher","Carmen Nussbächer",{"slug":1496,"name":1497},"ochs","Pascal Ochs",{"slug":1499,"name":1500},"oelhoff","Jan Oelhoff",{"slug":1502,"name":1503},"oengel","Yasin Öngel",{"slug":1505,"name":1506},"oezsoy","Enis Özsoy",{"slug":1508,"name":1509},"posch","Maya Posch",{"slug":1511,"name":1512},"ralfmueller","Ralf Müller",{"slug":1514,"name":1514},"redakteur",{"slug":1516,"name":1517},"reich","Michael Reich",{"slug":1519,"name":1520},"reinhard","Karl-Ludwig Reinhard",{"slug":1522,"name":1523},"rmueller","Rebecca Müller",{"slug":1525,"name":1526},"rosum","Jan Rosum",{"slug":1528,"name":1528},"rueckert",{"slug":1530,"name":1531},"ruessel","Sascha Rüssel",{"slug":1533,"name":1534},"sauter","Moritz Sauter",{"slug":1536,"name":1537},"schaefer","Julian Schäfer",{"slug":1539,"name":1540},"scherer","Petra Scherer",{"slug":1542,"name":1543},"schlicht","Anne Schlicht",{"slug":1545,"name":1546},"schmidt","Jürgen Schmidt",{"slug":1548,"name":1549},"schneider","Tobias Schneider",{"slug":1551,"name":1552},"seber","Benjamin Seber",{"slug":1554,"name":1555},"sommer","Marc Sommer",{"slug":1557,"name":1558},"speaker-fels","Jakob Fels",{"slug":1560,"name":1561},"speaker-gierke","Oliver Gierke",{"slug":1563,"name":1564},"speaker-krupa","Malte Krupa",{"slug":1566,"name":1567},"speaker-mader","Jochen Mader",{"slug":1569,"name":1570},"speaker-meusel","Tim Meusel",{"slug":1572,"name":1573},"speaker-milke","Oliver Milke",{"slug":1575,"name":1576},"speaker-paluch","Mark Paluch",{"slug":1578,"name":1579},"speaker-schad","Jörg Schad",{"slug":1581,"name":1582},"speaker-schalanda","Jochen Schalanda",{"slug":1584,"name":1585},"speaker-schauder","Jens Schauder",{"slug":1587,"name":1588},"speaker-unterstein","Johannes Unterstein",{"slug":1590,"name":1591},"speaker-wolff","Eberhard Wolff",{"slug":1593,"name":1594},"speaker-zoerner","Stefan Zörner",{"slug":1596,"name":1597},"stefan-belger","Stefan Belger",{"slug":881,"name":1599},"Roland Steinegger",{"slug":1601,"name":1602},"stern","sternchen synyx",{"slug":1604,"name":1604},"synyx",{"slug":1606,"name":1607},"szulc","Mateusz Szulc",{"slug":1609,"name":1610},"tamara","Tamara Tunczinger",{"slug":1612,"name":1613},"theuer","Tobias Theuer",{"slug":1615,"name":1616},"thieme","Sandra Thieme",{"slug":1618,"name":1619},"thies-clasen","Marudor",{"slug":1621,"name":1622},"toernstroem","Olle Törnström",{"slug":1624,"name":1625},"ullinger","Max Ullinger",{"slug":1627,"name":1628},"ulrich","Stephan Ulrich",{"slug":1630,"name":1631},"wagner","Stefan Wagner",{"slug":1633,"name":1634},"weigel","Andreas Weigel",{"slug":1636,"name":1637},"werner","Fabian Werner",{"slug":1639,"name":1640},"wolke","Sören Wolke",["Reactive",1642],{"$scookieConsent":1643,"$ssite-config":1645},{"functional":1644,"analytics":1644},false,{"_priority":1646,"env":1650,"name":1651,"url":1652},{"name":1647,"env":1648,"url":1649},-10,-15,0,"production","nuxt-app","https://synyx.de",["Set"],["ShallowReactive",1655],{"category-xp":-1,"authors":-1},"/blog/tags/xp"]