indexString = colonPos > 0 ? property.substring(colonPos + 1) : null;
}
final Integer idx = NumberHelper.parseInteger(indexString);
if (property.startsWith("quickSelect:") == true) {
final Date date = (Date) selectedValue;
TimePeriod timePeriod = form.scriptParameters.get(idx).getTimePeriodValue();
if (timePeriod == null) {
timePeriod = new TimePeriod();
}
timePeriod.setFromDate(date);
final DateHolder dateHolder = new DateHolder(date);
if (property.endsWith(".month") == true) {
dateHolder.setEndOfMonth();
} else if (property.endsWith(".week") == true) {
dateHolder.setEndOfWeek();
} else {
log.error("Property '" + property + "' not supported for selection.");
}
timePeriod.setToDate(dateHolder.getDate());
form.scriptParameters.get(idx).setTimePeriodValue(timePeriod);
form.datePanel1[idx].markModelAsChanged();
form.datePanel2[idx].markModelAsChanged();
} else if (property.startsWith("taskId:") == true) {
final TaskDO task = taskDao.getById((Integer) selectedValue);