Luciano França Posted July 27, 2023 Share Posted July 27, 2023 If I choose a file the event "UniFileUploadButton1Completed" will be called but if I click the "Cancel" button in the Dialog I don't have an event to capture. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 28, 2023 Share Posted July 28, 2023 11 hours ago, Luciano França said: but if I click the "Cancel" button in the Dialog I don't have an event to capture There is no such standard event. I think it's possible only by workarounds. You can google it. Quote Link to comment Share on other sites More sharing options...
Luciano França Posted July 28, 2023 Author Share Posted July 28, 2023 9 hours ago, Sherzod said: There is no such standard event. I think it's possible only by workarounds. You can google it. How could I adapt this code in unigui https://www.geeksforgeeks.org/how-to-detect-when-cancel-is-clicked-on-file-input-using-javascript/ Or I believe that a simple way to solve How can I wait for a call to return? Example UniFileUploadButton1.JSInterface.JSCall('fileInputEl.dom.click', []); While DialogOpen do // How to check if Dialog is open ? UniSession.Synchronize; if Not Assigned(AStream) Then Showmessage('Botão cancel'); Quote Link to comment Share on other sites More sharing options...
Luciano França Posted October 26, 2023 Author Share Posted October 26, 2023 Solution 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.