Atozed Forums
Bad IWModalWindow.ButtonIndex in version 15.1 - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Bad IWModalWindow.ButtonIndex in version 15.1 (/thread-1142.html)



Bad IWModalWindow.ButtonIndex in version 15.1 - v.lasquibar@telefonica.net - 07-19-2019

Hi,

I've installed today version 15.1.0 of Intraweb and recompiled TMS components, and my applications. I have an application that shows a ModalWindow with 2 fields and 2 buttons (OK and Cancel), and check return using this code:

if Login_Modal.ButtonIndex >= 0 then begin   
  case Login_Modal.ButtonIndex of
      1: // Conectar
          ValidarUsuario;
    end;
  end;


The problem is that regardless the button I press, the value of ButtonIndex is always 2 (Cancel).
How can I do to know the button really pressed by the user?


Best regards,

                  Venancio Lasquibar


RE: Bad IWModalWindow.ButtonIndex in version 15.1 - Alexandre Machado - 07-20-2019

Please replace your IWData.res files (you probably have more than one copy of it in your IW install directory) with the one attached here. Rebuild your app and clear the browser cache. It should fix the issue.
We are fixing it in current version as well. 

Please let me know how it goes


RE: Bad IWModalWindow.ButtonIndex in version 15.1 - v.lasquibar@telefonica.net - 07-21-2019

Hi Alexandre,

Thank you for your help. The file solved my problem.

Kind regards,

               Venancio Lasquibar


RE: Bad IWModalWindow.ButtonIndex in version 15.1 - Alexandre Machado - 07-27-2019

Great. Thanks for the feedback