You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Daniel Keir Haywood (Jira)" <ji...@apache.org> on 2020/03/19 14:31:00 UTC
[jira] [Updated] (ISIS-1588) Extend support for dependent choices
for dates
[ https://issues.apache.org/jira/browse/ISIS-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Keir Haywood updated ISIS-1588:
--------------------------------------
Component/s: Isis Viewer Wicket
Fix Version/s: (was: 2.7.0)
> Extend support for dependent choices for dates
> ----------------------------------------------
>
> Key: ISIS-1588
> URL: https://issues.apache.org/jira/browse/ISIS-1588
> Project: Isis
> Issue Type: Improvement
> Components: Isis Viewer Wicket
> Affects Versions: 1.13.2.1
> Reporter: Daniel Keir Haywood
> Priority: Minor
>
> eg
> {code}
> public Occupancy newOccupancy(
> final @Parameter(optionality = Optionality.OPTIONAL) LocalDate startDate,
> final Unit unit) {
> Occupancy occupancy = occupancyRepository.newOccupancy(this, unit, startDate);
> occupancies.add(occupancy);
> return occupancy;
> }
> public List<Unit> choices1NewOccupancy(final LocalDate startDate) {
> Property property = getProperty();
> if (property != null) {
> return unitRepository.findByPropertyAndActiveOnDate(property, startDate);
> } else {
> return unitRepository.findByActiveOnDate(startDate);
> }
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)