[CLOSED] Confirmation message question

  1. #1

    [CLOSED] Confirmation message question

    Hi all,

    is there the possibility to access a Coolite control property and print it inside the Confirmation message?

    For example before processing code inside ajax method I asked for confirmation and need to prompt the user under
    which node of the TreePanel the item will be added.

    My code looks like:

    
    <ext:ToolbarButton ID="BT_SalvaNuovaCartella" TabIndex="7" Icon="Disk" runat="server">
                            <AjaxEvents>
                                <Click OnEvent="BT_SalvaNuovaCartella_Click">
                                    <ExtraParams>
                                        <ext:Parameter Name="PRM_SelectedNode" Mode="Value" Value="={#{TreePanelPortale}.getSelectionModel().getSelectedNode().id}"></ext:Parameter>
                                    </ExtraParams>
                                    <Confirmation ConfirmRequest="true"  Message="Create item under {myTreePanelSelectedNode}" />
                                </Click>
                            </AjaxEvents>
                        </ext:ToolbarButton>
    In the {myTreePanelSelectedNode} placeholder I need the dynamic property value.

    Thanx a lot.

    Matteo
  2. #2

    RE: [CLOSED] Confirmation message question

    Hi,

    You can set new message and title in BeforeConfirm handler
    BeforeConfirm="config.confirmation.message = 'New Message'; config.confirmation.title = 'New Title';"
  3. #3

    RE: [CLOSED] Confirmation message question

    Hi Vlad,

    it woks great, thanx.

    Matteo

Similar Threads

  1. [CLOSED] [1.0] Confirmation Message
    By vali1993 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 30, 2011, 4:46 PM
  2. [CLOSED] Confirmation Message
    By FpNetWorth in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Mar 04, 2011, 12:58 PM
  3. [CLOSED] Translate password confirmation message
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 03, 2010, 6:11 PM
  4. Replies: 3
    Last Post: Aug 18, 2010, 9:34 PM
  5. [CLOSED] Yet another AjaxEvents Confirmation Message Question
    By ljcorreia in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Feb 08, 2010, 8:37 AM

Posting Permissions