Page 1 of 1

ShowMessage inside ShowPromptMessage confirm click

PostPosted: 18 Sep 2017 00:05
by fateh78
scenario : ==============================================================
MsgDialog.JQShowMessageOptions.OnConfirm.OnEvent := DoUnpost_OkClick;
IWCGJQShowMessage.ShowPromptMessage(fMessage, DefaultValue);

Code: Select all
Procedure TTrxBaseForm.DoUnpost_OkClick(Sender: TObject; EventParams: TStringList);
Var            ss : String;
begin
     ss := EventParams.Values['str'];
     If UpperCase(ss) <> UpperCase(gUnpostPassword) then begin
        IWCGJQShowMessage.ShowMessage('wrong password', jqsmtAlert);
        Exit;
     end;
     .....
end;
===================================

==> then the page becomes disabled

is there any solution or work around
urgent help is appreciated

Re: ShowMessage inside ShowPromptMessage confirm click

PostPosted: 20 Sep 2017 10:49
by fateh78
hello

Re: ShowMessage inside ShowPromptMessage confirm click

PostPosted: 26 Sep 2017 15:32
by fateh78
good morning everybody

Re: ShowMessage inside ShowPromptMessage confirm click

PostPosted: 26 Sep 2017 15:45
by Alexander Bulei
Hi fateh78,

Please send us the simple testcase.
TIA

Best Regards.

Re: ShowMessage inside ShowPromptMessage confirm click

PostPosted: 21 Dec 2017 20:05
by fateh78
find attached demo
try to click "Show 2 Messages" button , then click ok and notice how page hangs

Re: ShowMessage inside ShowPromptMessage confirm click

PostPosted: 22 Dec 2017 15:16
by Alexander Bulei
Hi fateh78,

We've added the support to call the messages in sequence, in next beta build.

Best Regards.

Re: ShowMessage inside ShowPromptMessage confirm click

PostPosted: 22 Dec 2017 15:22
by fateh78
is not there any work around to solve

actually i do not like to change the version i am using in the near future
as changing to new version may implies some unexpected effects

Re: ShowMessage inside ShowPromptMessage confirm click

PostPosted: 22 Dec 2017 16:51
by Alexander Bulei
Hi fateh78,

is not there any work around to solve


No...its a jquery plugin limitation.

actually i do not like to change the version i am using in the near future
as changing to new version may implies some unexpected effects


It's a your choice...
Anyway, if you want it working...you must update :)

Best Regards.