0

Forward from Event Create to Event Edit

asked 2016-02-02 10:01:53 +0800

farooqferchichi gravatar image farooqferchichi
1

On create Event, I want to fire the Edit Event. Since I'm new to ZK, I want to know if I can use addForward on Calendars object to make it happen.

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-02-17 13:54:35 +0800

czeskii gravatar image czeskii
1
http://www.moja-skarbonka...

Really? its not so hard? ;D

link publish delete flag offensive edit

Comments

Generally speaking, OOTB nothing is 'too hard' with ZK... :D Please vote the answer ;)

gganassin ( 2016-02-17 14:38:13 +0800 )edit
0

answered 2016-02-17 13:33:17 +0800

gganassin gravatar image gganassin flag of Luxembourg
540 6
http://www.hybris.com/

Hello!

Assumptions option ONE:

1 - "Calendars objects" = <datebox/> components

2 - "On create Event, I want to fire the Edit Event." = when the page loads -> the calendar auto opens itself

Solution:

<datebox open="true" />

Assumptions option TWO:

1 - you are really referring to ZK Calendars

Solution:

Of course you can always forward events!

<window id="win" title="Container Window" border="normal"  apply="test01.test.MyController">
    <calendars id="calendars" forward="onEventCreate=onEventEdit" />
</window>

and in your controller:

public class MyController extends GenericForwardComposer {
    public void onEventEdit(ForwardEvent event) {
        Messagebox.show("onEventEdit fired");
    }
}

If both my assumptions are wrong, please articulate better your needs :) Giovanni

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: 2016-02-02 10:01:53 +0800

Seen: 30 times

Last updated: Feb 17 '16

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