Author |
Message |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 17/01/2010 22:22:49
|
mreich
Power User
![[Avatar]](/forum/images/avatar/093f65e080a295f8076b1c5722a46aa2.jpg)
Joined: 30/01/2009 08:34:23
Messages: 750
Offline
|
Hi,
I want to create a calendar like in the demo application PIM. As a feature I would like to provide the possibility to create an appointment auto. by selecting a schedule item or more items (like google calendar).
At the moment it's not possible to select a single row or more rows. Also I'm not able to react on click event?
regards
Markus
|
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 18/01/2010 09:22:57
|
CaptainCasa
Power User
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.jpg)
Joined: 21/11/2007 12:23:06
Messages: 5540
Offline
|
Hi,
you can react by specifyin INVOKEEVENT.
Yes, at the moment only single selection is supported.
Björn
|
Björn Müller, CaptainCasa GmbH |
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 18/01/2010 09:38:09
|
mreich
Power User
![[Avatar]](/forum/images/avatar/093f65e080a295f8076b1c5722a46aa2.jpg)
Joined: 30/01/2009 08:34:23
Messages: 750
Offline
|
ok, so when I take the PIM demo as template, there is on column with a t:schedule item which contains of t:scheduleItems, which represent the daytime.
The columns for the single days consist just of a single t:schedule.
Do I have to add to those t:schedule items, the t:scheduleItems too, to gain the mentioned functionality?
Markus
|
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 18/01/2010 09:49:34
|
CaptainCasa
Power User
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.jpg)
Joined: 21/11/2007 12:23:06
Messages: 5540
Offline
|
...yes!
Björn
|
Björn Müller, CaptainCasa GmbH |
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 21/01/2010 21:10:20
|
mreich
Power User
![[Avatar]](/forum/images/avatar/093f65e080a295f8076b1c5722a46aa2.jpg)
Joined: 30/01/2009 08:34:23
Messages: 750
Offline
|
ok, I tried this, but I didn't get it to work?
I added for Monday column all scheduleItems within the schedule component, but it's still not possible to react on clicking on a certain scheduleItem (e.g. 09:00)?
I added a screenshot of the calendar and the source of the jsp page.
Markus
Filename |
calendar.jsp |
Download
|
Description |
|
Filesize |
10 Kbytes
|
Downloaded: |
351 time(s) |
Filename |
kalender.PNG |
Download
|
Description |
|
Filesize |
87 Kbytes
|
Downloaded: |
178 time(s) |
|
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 21/01/2010 21:24:47
|
CaptainCasa
Power User
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.jpg)
Joined: 21/11/2007 12:23:06
Messages: 5540
Offline
|
Hi,
seein your jsp I understand what you mean (or I at least think so...).
You are looking for an event on SCHEDULE in order to add approporiatet SCHEDULEITEMs. Now you added individual schedule items "per hour".
OK, with the current approach you need to define SCHEDULEITEM-INVOKEEVENT (either "click" or "doubleclick") - then the actionListener of the SCHEDULEITEM is called.
Then of course you afterwards add the real SCHEDULEITEM and you have to carefully mix the "hour-based" ones with the real ones...
I would propose to use right mouse putton popup menu. THe event there gives you the click information (in percentage form), then you do not need to add all these hour-based schedule items.
You receive an BaseActionEventPopupMenuItem with .getPercentageVertical/Horizontal - use the "asFloat" variant of the methods for accurate positioning.
Björn
|
Björn Müller, CaptainCasa GmbH |
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 22/01/2010 08:39:14
|
mreich
Power User
![[Avatar]](/forum/images/avatar/093f65e080a295f8076b1c5722a46aa2.jpg)
Joined: 30/01/2009 08:34:23
Messages: 750
Offline
|
ok, I'll try to convince my customer, the problem is that he's a real google maniac
Markus
|
|
![](/forum/templates/default/images/spacer.gif) |
|