Eugeniusz Rink Posted November 22, 2023 Share Posted November 22, 2023 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. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 22, 2023 Share Posted November 22, 2023 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 Quote Link to comment Share on other sites More sharing options...
Eugeniusz Rink Posted November 22, 2023 Author Share Posted November 22, 2023 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. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 22, 2023 Share Posted November 22, 2023 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.