Jump to content

How to Detect Cancel Event Dialog in "UniFileUploadButton"


Luciano França

Recommended Posts

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');

 

Link to comment
Share on other sites

  • 2 months later...

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...