Jump to content

ShowMask doesn't work.


Eugeniusz Rink

Recommended Posts

Hi.
The following code is used in the data module:

[...]
'<img align="right" title="Kopiuj leki z recepty." src="files/grafika/Forward Button.svg" style="cursor: pointer" width="24" vspace="0" hspace="0" height="24"'+
'onclick="FramRecepty.FramePanel.showMask(''Szukam leku...''),javascript:ajaxRequest(FramRecepty.FramePanel,''_KopiujRecepte'',[''_KopiujRecepte_id_recepty='+IntToStr(ZQReceptyPanelrecepty_id.AsInteger)+'''],false)"> '+
[...]

Code in FrameRecepty

procedure TFramRecepty.UniFrameAjaxEvent(Sender: TComponent; EventName: string;
  Params: TUniStrings);
begin
  if (EventName = '_KopiujRecepte') then 
  begin
   showmessage('Kopiuj receptę '+Params.Values['_KopiujRecepte_id_recepty']);
   UniSession.Synchronize();
  end;
end;

I wanted to activate the mask, but this code does not work. The mask does not show.

 

Link to comment
Share on other sites

Hello,

You don't provide enough information.

37 minutes ago, Eugeniusz Rink said:

I wanted to activate the mask

Mask or "ShowMessage" ?

37 minutes ago, Eugeniusz Rink said:

[...]
'<img align="right" title="Kopiuj leki z recepty." src="files/grafika/Forward Button.svg" style="cursor: pointer" width="24" vspace="0" hspace="0" height="24"'+
'onclick="FramRecepty.FramePanel.showMask(''Szukam leku...''),javascript:ajaxRequest(FramRecepty.FramePanel,''_KopiujRecepte'',[''_KopiujRecepte_id_recepty='+IntToStr(ZQReceptyPanelrecepty_id.AsInteger)+'''],false)"> '+
[...]

Where is this code from?

 

Maybe you should use request like this (there are many related posts on the forum) 

top.ajaxRequest

 

Link to comment
Share on other sites

29 minutes ago, Sherzod said:

Hello,

You don't provide enough information.

Mask or "ShowMessage" ?

Where is this code from?

 

Maybe you should use request like this (there are many related posts on the forum) 

top.ajaxRequest

 

 I want to show the mask before executing the actual SQL. For simplicity's sake, it shows showmessage.

The HTML code in the DataModule shows records in html format in UniDGGrid in TFrameRecepty.

Link to comment
Share on other sites

3 minutes ago, Eugeniusz Rink said:

 I want to show the mask before executing the actual SQL. For simplicity's sake, it shows showmessage.

The HTML code in the DataModule shows records in html format in UniDGGrid in TFrameRecepty.

Sorry, it's not very clear from your code.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...