[CLOSED] [1.0] - How to use Raw message in DirectEvent Confirmation message

  1. #1

    [CLOSED] [1.0] - How to use Raw message in DirectEvent Confirmation message

    Hi,

    I wondering is there a way to use field value in the Confirmation message property in the DirectEvent. Please see below:

    <%@ Page Language="C#" %>
     
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
     
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Test</title>
    </head>
    <body>
        <form runat="server">
        <ext:ResourceManager runat="server" />
        <ext:TextField runat="server" ID="myfield" /> 
        <ext:Button runat="server" Text="Export">
            <DirectEvents>
                <Click OnEvent="someHandler">
                     <Confirmation ConfirmRequest="true" Message="Confirm sending + #{myfield}.getValue()" Title="Confirmation" />
                </Click>
            </DirectEvents>
        </ext:Button>     
        </form> 
    </body>
    </html>
    Please Advice.
    Last edited by geoffrey.mcgill; Aug 18, 2010 at 9:45 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please use BeforeConfirm handler of Confirmation
    BeforeConfirm="config.confirmation.message = 'New Message'; config.confirmation.title = 'New Title';"
  3. #3
    Hi drkoh,

    Yes, but it's a bit cryptic.

    Example

    Message="={'Confirm sending ' + #{myfield}.getValue()}"
    Please ensure you are using the latest from SVN. There was a change committed recently that might affect the above code. If the above does not work properly, then an SVN update will be required.

    Hope this helps.
    Geoffrey McGill
    Founder
  4. #4
    Thanks. Works perfectly.

Similar Threads

  1. Replies: 3
    Last Post: Dec 28, 2011, 5:46 PM
  2. [CLOSED] [1.0] Confirmation Message
    By vali1993 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 30, 2011, 4:46 PM
  3. [CLOSED] Confirmation Message
    By FpNetWorth in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Mar 04, 2011, 12:58 PM
  4. Customize WarningOnDirty confirmation message
    By fquintero in forum 1.x Help
    Replies: 5
    Last Post: Nov 01, 2009, 2:57 PM
  5. [CLOSED] Confirmation message question
    By methode in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 06, 2009, 8:23 AM

Posting Permissions