eduardosuruagy Posted September 3, 2020 Share Posted September 3, 2020 I'm using the TUniSweetAlert component in a frame and it's giving the error: _rsov_(O42E,3);var sw;sw=swal({title:"Deseja cancelar a nota de número 77?",text:"",type:"question",width:480,padding:20,background:"",animation:true,allowOutsideClick:false,allowEscapeKey:false,showCancelButton:true,confirmButtonText:"Confirmar",cancelButtonText:"Cancelar",buttonsStyling:true,reverseButtons:false,focusCancel:false,showCloseButton:false,inputPlaceholder:"",inputValue:"",inputAutoTrim:true});sw.then(function(p){ajaxRequest(O443,"confirm",{input: (Ext.isString(p)?p:"")})},function(d){ajaxRequest(O443,"dismiss",{dismiss: d})}); What could it be? function TMainForm.Confirma(Mens, OK, Cancelar: String): Boolean; begin try result := False; SAConfirmar.CancelButtonText := Cancelar; SAConfirmar.ConfirmButtonText := Ok; SAConfirmar.Title := Mens; if SAConfirmar.Execute then result := True else result := False; except on e:exception do begin RelatorioErro(String(TUniFrame(Self).Name), 'TMainForm.Confirma', e.UnitName, e.ClassName, e.Message); end; end; end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 3, 2020 Share Posted September 3, 2020 Hello, Please make a simple testcase to reproduce. Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted September 3, 2020 Author Share Posted September 3, 2020 35 minutes ago, Sherzod said: Olá, Faça um caso de teste simples para reproduzir. I don't know if it's because I'm using files / js / jquery.mask.js files / js / jquery.mask.min.js Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted September 3, 2020 Share Posted September 3, 2020 Hello, Try to put the UniSweetAlerte on the MainForm. (For info, on mobile, it raises an AV if it is on a Frame : when putting it on the MainmForm it works like a sharm ! ) Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted September 3, 2020 Author Share Posted September 3, 2020 1 hour ago, Abaksoft said: Olá, Tente colocar o UniSweetAlerte no MainForm. (Para informação, no celular, ele levanta um AV se estiver em um Frame: ao colocá-lo no MainmForm ele funciona como um sharm!) He's in MainForm and I'm calling him in the frame, but the error Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted September 3, 2020 Share Posted September 3, 2020 1 hour ago, eduardosuruagy said: He's in MainForm and I'm calling him in the frame, but the error Maybe this can help you. http://forums.unigui.com/index.php?/topic/15011-sweetalertexecute/&do=findComment&comment=81931 Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted September 4, 2020 Share Posted September 4, 2020 4 hours ago, eduardosuruagy said: He's in MainForm and I'm calling him in the frame, but the error Hi, Please make a simple testcase to reproduce. otherwise we can't figure out the issue 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.