How to set FirstVisibleHourOfDay of Calendar

Hi there,

I am very new to cuba platform.
I am trying Cuba Platform to validate if is the right tool to develop a new project.

One of the main Objects for this project is the Calendar Object once all the business relies in the week schedule. Due this the usability must be very friendly.

I am trying to set Calendar to week mode, limited from 7am to 10pm, binded to data base with click and drag events interaction.

I have tow doubts:
1 - I found a property called FirstVisibleHourOfDay, but I am not being able to set it to the right values. Could you help on this?
2 - Besides this, I found at github sample with vaadin calendar and want to know what Calendar you would recomend.

Kind regards,
João f.

Hi,

  1. Could you please describe in more details what problems do you face?

  2. In fact, CUBA calendar and Vaadin calendar is the same component. We provide a wrapper over the Vaadin calendar to integrate this component into CUBA Generic UI and provide platform related features such as working with datasources, declarative description etc.

Regards,
Gleb

Hi Gleb,

thanks for your reply.
I already surpassed this problem injecting this code in the controller:

@Override
    public void init(Map<String, Object> params) {
        calendar.setFirstVisibleHourOfDay(7);
        calendar.setLastVisibleHourOfDay(22);
    }

But i was searching properties to set at XML like:

<calendar id="calendar"
          FirstVisibleHourOfDay= "7"
          LastVisibleHourOfDay="22"
          captionProperty="caption"
          datasource="sessionsDs"

regards,
João F.

Thank you for reporting the problem. We have created a YouTrack issue, see the link on the right.

Hi,
The issue is fixed in the platform 6.6.3.

:ticket: See the following issue in our bug tracker:

https://youtrack.cuba-platform.com/issue/PL-9546