private static void printRecords(ZCView zcView) { List<ZCFilter> filters = zcView.getFilters(); // System.out.println(filters); if (zcView.isGrouped()) { List<ZCGroup> groups = zcView.getGroups(); for (int i = 0; i < groups.size(); i++) { ZCGroup group = groups.get(i); System.out.println("************** " + group.getGroupHeaderValues() + " **************"); List<ZCRecord> records = group.getGroupRecords(); printRecords(records); } } else { List<ZCRecord> records = zcView.getRecords(); printRecords(records); } if (zcView.getType().equals(ZCComponent.CALENDAR)) { String inp = getInput( "\n\nType 1 to load Next Month.... 2 for Previous month.... -1 to quit.... 0 to go back to " + ZOHOCreator.getCurrentApplication().getAppName()); int inpValue = -1; try { inpValue = Integer.parseInt(inp); } catch (Exception ee) { } if (inpValue == 1) { cal.add(Calendar.MONTH, 1); } else if (inpValue == 2) { cal.add(Calendar.MONTH, -1); } else if (inpValue == 0) { printCompsList(); return; } else if (inpValue == -1) { return; } zcView.loadCalendarRecords(cal.get(Calendar.MONTH), cal.get(Calendar.YEAR)); printRecords(zcView); } else { // System.out.println("isLastReached: " + zcView.isLastReached()); if (!zcView.isLastReached()) { String inp = getInput( "\n\nType 1 to load more.... 2 for actions.... -1 to quit.... 0 to go back to " + ZOHOCreator.getCurrentApplication().getAppName()); int inpValue = -1; try { inpValue = Integer.parseInt(inp); } catch (Exception ee) { } if (inpValue == 1) { zcView.loadMore(); printRecords(zcView); } else if (inpValue == 2) { printActions(zcView); // } else if(inpValue == 3) { // printRecord(zcView); } else if (inpValue == 0) { printCompsList(); return; } else if (inpValue == -1) { return; } } } }