Embedded calendar @Command problem

I have an embedded calendar view in a form and 2 datetime fields. When I change the date in one of the field, the calendar go to the date and this is perfect, it shows that there is some way that Notes can access the calendar.

The problem is, I can’t send any command to the embedded calendar!

I only need those 2 commands to work when the form open(onPostOpen). This should be simple…

@Command( [CalendarGoTo] ; @Date(2009; 12; 01))

@Command( [CalendarFormat] ; “20” )

They work perfectly when the view is not embedded, but fail otherwise. CalendarGoTo even say “Cannot execute the specified command” when I try to open the form.

I have been searching that for a long time now, on google and on the forum here, it seems there is nothing to be found. I’m sure there is a solution somewhere for something that simple!

Thanks.

Subject: Frame

I have found a “solution” that I don’t really like, but at least it works.

Using frame can be a good replacement.

The @command now works and it does not look that bad.

But we lose some automatic behavior. When I change the date on a field, the calender on the other frame do not go to the new date. I think it’s the only problem.

Anyone know how to CalendarGoTo automatically when the user choose a date on the field? Not when he change field(like onFocus, lostFocus, etc.) but when he click on a new date.

Thanks.