Jump to content


Photo

SweetAlert2


  • Please log in to reply
30 replies to this topic

#21 Freeman35

Freeman35

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 348 posts

Posted 18 August 2017 - 04:19 PM

Try first remove delphi settings files. dcu, dof etc. without dpk,pas,res etc. after then try build dpk file. that error mean can not find unicore bpl in search file.


  • 0

#22 roneydourados

roneydourados

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 31 August 2017 - 07:15 AM

Tecla esc, mesmo habilitada não funciona!!


  • 0

#23 David Lee

David Lee

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 57 posts

Posted 16 September 2017 - 09:18 AM

Hi @CastleSoft  !!

 

When I do InputType on SweetAlwert2 like below codes , How can i get the filename from SweetAlert2 ?  

 

<button click>

    UniSweetAlert.inputType := TInputType.fileinput ;

    UniSweetAlert.ShowMessage ;

 

<OnSussess Event>

 

   - How can i get the FileName from SweetAlert2 ? 

 

 

Thanks !! 


  • 0

#24 aurelioleonel

aurelioleonel

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 10 December 2017 - 03:42 PM

Na versão 1397 esta com esse erro [dcc32 Fatal Error] uniExtensions.dpk(32): E2202 Required package 'uniGUI25Core' not found


  • 0

#25 aurelioleonel

aurelioleonel

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 11 December 2017 - 02:26 AM

Na versão 1397 esta com esse erro [dcc32 Fatal Error] uniExtensions.dpk(32): E2202 Required package 'uniGUI25Core' not found

Resolvido galera, é só remover do projeto o arquivos que tem 25, quando for compilar o próprio delphi vai surgerir colocar os arquivos de acordo com sua versão do unigui, abraços galera


  • 0

#26 Freeman35

Freeman35

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 348 posts

Posted 26 June 2018 - 10:13 AM

https://sweetalert2.github.io/

Current version: v7.24.2

 

dismiss event not triggered, AjaxRequest always "success"

jsonSweetAlert    := 'swal(' + jsonSweetAlert + ').then(function(){' + ajaxCallbackStr + ' return false; },function (dismiss) { '+ dismissCallbackStr + '});';

Anybody help about this problem?

regards

 

 

Fixed:

   dismissCallbackStr:= BuildAjaxRequest('dismiss');
   jsonSweetAlert    := 'swal(' + jsonSweetAlert + ').then((result)=>{if(result.value){'+ajaxCallbackStr +'}else{'+dismissCallbackStr +'}})';

  • 0

#27 souzadeveloper

souzadeveloper

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 03 July 2018 - 12:20 PM

Bom dia Pessoal, estou tentando criar uma função para chamar o UniSweetAlert.. crio e configuro o componente em tempo de execução, ao tentar usar um Question, configuro o Evento OnSuccess, a Mensagem aparece mas o Evento não é disparado. Só funciona quando coloco o componente na Tela.


  • 0

#28 nannoc

nannoc

    Newbie

  • uniGUI Subscriber
  • Pip
  • 9 posts

Posted 05 July 2018 - 02:11 PM

Hi everyone

 

I hope someone can assist. I installed the Delphi component on Delphi 10.2.3 (2017-08-04-uniSweetAlert V51), but keep on getting the attached error.

I copied the js and css files to my app's "files" directory.

 

Is there anything else I need to install for SweetAlert to work?

 

Regards

Donald

 

Attached File  SweetAlert2.png   16.25KB   4 downloads


  • 0

#29 Freeman35

Freeman35

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 348 posts

Posted 06 July 2018 - 08:12 AM

check permission that file. If I'm not wrong, that error mean swal function not found and mean js file not include project. can check html file from browser


  • 0

#30 nannoc

nannoc

    Newbie

  • uniGUI Subscriber
  • Pip
  • 9 posts

Posted 07 July 2018 - 04:35 PM

check permission that file. If I'm not wrong, that error mean swal function not found and mean js file not include project. can check html file from browser


Thank you for your response. I will check the permissions. How do I include the file in the project and how do I check with browser?

Regards
Donald


Sent from my iPad using Tapatalk
  • 0

#31 Freeman35

Freeman35

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 348 posts

Posted 08 July 2018 - 08:51 AM

Hi,

In browser, "Save to file" so easy way :) and press F12 ( In firefox )

On Server module, "Custom...." properties. Can find more detail in demo and help, in forum too.

 
 


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users