0

How can I open a new page when I click the event bar in the ZK Calendar?

asked 2014-06-23 05:22:51 +0800

PengPei gravatar image PengPei
1

When I click certain event bar on in the calendar, I want to open a new page to show the details and related information of the event which I clicked.

How to do that?

delete flag offensive retag edit

Comments

new page or popup?

chillworld ( 2014-06-23 07:24:06 +0800 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-06-23 14:59:42 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

You can catch the THREE events from calendar and call a new zul-file for that:

only a few pieces of code:

Calendars cal;

. . .

cal.addEventListener(CalendarsEvent.ON_EVENT_CREATE, new OnCreateEventListener());
        this.cal.addEventListener(CalendarsEvent.ON_EVENT_EDIT, new OnEditEventListener());
        this.cal.addEventListener(CalendarsEvent.ON_EVENT_UPDATE, new OnUpdateEventListener());

. . .

    private final class OnEditEventListener implements SerializableEventListener {
    . . .

    HashMap<String, Object> map = new HashMap<String, Object>();
    map.put("calendarsEvent", ce);
    Window win = (Window)Executions.createComponents("/WEB-INF/pages/calendar/calendarEvent.zul", parentWin, map);

    }

best Stephan

link publish delete flag offensive edit
0

answered 2014-06-23 07:57:57 +0800

PengPei gravatar image PengPei
1

New page with details info

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-06-23 05:22:51 +0800

Seen: 17 times

Last updated: Jun 23 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More