[CLOSED] Call direct event from Confirm Message

  1. #1

    [CLOSED] Call direct event from Confirm Message

    Hello,

    Is it possible to tell the confirm message run a direct event when clicked to Yes/No?

    Toolkit example running JFunction when Yes clicked (1. Confirm):
    https://examples2.ext.net/#/MessageBox/Basic/Overview/

    I am building the confirm message content @server side when a direct event is called. I need to call another direct event if "Yes" is clicked.
    Is it possible or should I create a custom confirmation window for it?

    Thanks.
    Last edited by Daniil; May 22, 2013 at 9:44 AM. Reason: [CLOSED]
  2. #2
    Hi @bayoglu,

    What about to call a DirectMethod?
  3. #3
    Hi @Daniil,

    Yup, I am already calling a direct method, just wonder if it is possible to call a direct event.
    Thanks.
  4. #4
    Well, it is possible, but a DirectEvent is not designed to be called by a developer via JavaScript. It is better to use a DirectMethod.
  5. #5
    Hello @Daniil,

    Yes, it doesn't make sense calling direct event from JavaScript to me neither. What I mean is configuring OnClick or any event direct event handler for confirm message buttons.

    Thanks.
  6. #6
    Understand. Well, those buttons are created client side, i.e. there are no its server side counterparts. But DirectEvents requires a control instance on server.
  7. #7
    Okay, it's clear, thanks. Please mark as closed.

Similar Threads

  1. [CLOSED] Direct Event/Method Call Priority
    By bayoglu in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Feb 08, 2013, 2:04 PM
  2. [CLOSED] How to Call an event by Direct Events
    By Oliver in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 12, 2012, 6:33 PM
  3. [CLOSED] Problem with Direct event call on cell commands
    By feanor91 in forum 2.x Legacy Premium Help
    Replies: 8
    Last Post: Apr 26, 2012, 7:49 AM
  4. Replies: 6
    Last Post: Dec 14, 2011, 5:24 AM

Posting Permissions