what's the commandMap.execute(command,payLoad..) he payLoad argument meaing?

Alan's Avatar


10 May, 2011 10:34 AM

I never using this argument. and I Just wana to know what it mean and its job for?
Thank you.

  1. 1 Posted by Jos Yule on 10 May, 2011 02:20 PM

    Jos Yule's Avatar

    You can use this to "run" or "execute" another command directly.

    The PayLoad argument is the "event" instance which the command would normally be expecting. If your command doesn't have the event injected into it, you can leave payLoad as null.


  2. Support Staff 2 Posted by Stray on 11 May, 2011 08:25 AM

    Stray's Avatar

    Hi Alan - Jos is correct.

    You would never use this normally in building your application. The real purpose is to allow people to build extensions and utilities which center around Commands.


  3. Stray closed this discussion on 11 May, 2011 08:39 AM.

  4. Alan re-opened this discussion on 11 May, 2011 03:01 PM

  5. 3 Posted by Alan on 11 May, 2011 03:01 PM

    Alan's Avatar

    I know it . thanks all, Think about my codes always inject one or more control event. meaning I little bit "Close"

    should 'Open' more:)

  6. Stray closed this discussion on 11 May, 2011 03:48 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac