Jump to content

Recommended Posts

Posted

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;
 

Posted

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 !  )

Posted
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

Posted
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

 

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