Feb 11, 2021, 5:15 AM
Display Value on Confirmation Prompt
Dears,
Hope you are doing well.
Look at this code:
The massage shall be:
Are you sure you want to submit the new bid value (X value from txtNewBidValue)?
Regards,
Hope you are doing well.
Look at this code:
<ext:Window
ID="AddNewBidWindow"
runat="server"
Icon="MoneyDollar"
Hidden="true"
Closable="true"
Title="Submit New Bid"
Width="600"
MaxHeight="260"
PaddingSpec="0 0 0 0"
MarginSpec="0 0 0 0"
ClientIDMode="Static"
Resizable="true"
BodyStyle="background-color:#fff;"
BodyPadding="5"
Layout="Form">
<Listeners>
<Show Handler="positionWindow(this);"/>
</Listeners>
<Items>
<ext:FormPanel
runat="server"
ID="AddNewBidWindowPnl"
PaddingSpec="0 0 0 0"
MarginSpec="0 0 0 0"
MaxWidth="550"
MaxHeight="260"
Hidden="false"
Header="false"
ClientIDMode="Static"
Layout="FormLayout"
ButtonAlign="Right"
Frame="false" >
<Items>
<ext:TextField
runat="server"
AllowBlank="false"
ClientIDMode="Static"
ID="txtNewBidValue"
FieldLabel="New Bid Value"
BlankText="Bid Value is Required"
LabelAlign="Right" >
</ext:TextField>
</Items>
<Buttons>
<ext:Button runat="server" Icon="Key" Text="Add" >
<DirectEvents>
<Click OnEvent="addNewBid" IsUpload="true" Before="if (#{AddNewBidWindowPnl}.getForm().isValid()) { return true; } else { return false; }">
<EventMask ShowMask="true" Msg="Adding..." Target="CustomTarget" CustomTarget="={#{AddNewBidWindowPnl}.body}" />
<ExtraParams>
<ext:Parameter
Name="mytxtNewBidValue"
Value="#{txtNewBidValue}.getValue()"
Mode="Raw"
Encode="false" />
</ExtraParams>
<Confirmation ConfirmRequest="true" Title="Confirm Bid Value" Message="Are you sure you want to submit the new bid value?" />
</Click>
</DirectEvents>
</ext:Button>
<ext:Button runat="server" Icon="Decline" Text="Cancel" >
<Listeners>
<Click Fn="closeAddNewBidWindow" />
</Listeners>
</ext:Button>
</Buttons>
</ext:FormPanel>
</Items>
</ext:Window>
I want to display the value of Bid with confirmation message, how to achieve this?The massage shall be:
Are you sure you want to submit the new bid value (X value from txtNewBidValue)?
Regards,