Jump to content

TUniSweetAlert component error


eduardosuruagy

Recommended Posts

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;
 

Link to comment
Share on other sites

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