Jump to content

eduardosuruagy

uniGUI Subscriber
  • Posts

    835
  • Joined

  • Last visited

  • Days Won

    10

Posts posted by eduardosuruagy

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

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

  3. UniEdit's OnExit is hindered when used with TUniSweetAlert.

    I have an edit and a code in the onexit event of that edit, if the edit does not have the data I want I send a message to the user through TUniSweetAlert and give an abort, after clicking on the ok of TUniSweetAlert the onexit event of edit is looped.

    An example of the code inside onexit:

    if edit.text = '' then
    begin
       edit.SetfFocus;
       SAPquestion.Execute;
      Abort;
    end;

  4. 58 minutes ago, Sherzod said:

    Hello,

    Is this solution ok for you?

    1. In DesignTime:

    
    UniDBGrid1.Grouping.Enabled = True

    2. 

    
    procedure TMainForm.UniFormReady(Sender: TObject);
    begin
      UniDBGrid1.Grouping.Enabled := False;
    end;

    3. Then you can use:

    
    procedure TMainForm.UniButton1Click(Sender: TObject);
    begin
      UniDBGrid1.Grouping.Enabled := not UniDBGrid1.Grouping.Enabled;
    end;

     

    Yes it worked, explain the difference between onActivate, onShow and onReady?

    Because at the beginning I did the test on onShow and it didn't work.

  5. 9 minutes ago, Sherzod said:

    Este recurso encerrará o servidor uniGUI quando nenhuma sessão ativa for deixada. Isso se aplica apenas ao modo de servidor independente.
    Isso pode ajudar na depuração de aplicativos, especialmente para aplicativos Linux uniGUI.

    Quando esta opção é definida, você não precisa encerrar o servidor manualmente. Fechar todas as sessões também encerrará automaticamente o aplicativo do servidor.

    thank you!!

  6. Is there any way to find out the reason for this error? Unfortunately I don't know where the error happens.

     

    Erro: Config Option: O 120B ->uniFMask:{beforeclose:true}
    is refering a previous request,
    it's not allowed in AJAX request or JS handler.
    Use equivalent Public Property or Method instead.
     

    Erro: Config Option: O 121E ->layout:"absolute"
    is refering a previous request,
    it's not allowed in AJAX request or JS handler.
    Use equivalent Public Property or Method instead.

  7. 1 hour ago, alfr said:

    I believe you need to add the extension in the hyperserver config file. 
     

    below from unigui info:

     
    [custom_mimes]
    mime_0_ext=
    mime_0_type=
    mime_1_ext=
    mime_1_type=
    mime_2_ext=
    mime_2_type=
    mime_3_ext=
    mime_3_type=
    mime_4_ext=
    mime_4_type=
     
    Custom mimes allows to add custom file types to HyperServer scope. Under normal conditions for security reason only safe file types are allowed to be transferred from the server. You can define as much as mimes needed here. 

    New mimes can be simply added by adding a entry to CFG file. Consider you want to enable access to files with extension of "7z".

     

    You need to add below entry:

     

    mime_0_ext=7z
    mime_0_type=application/x-7z-compressed
     

    http://unigui.com/doc/online_help/installing-and-configuring-hyp.htm

    But how do I add a FastReport file with the FR3 extension?
    The problem is in mime_0_type, I don't know what to put in it.

×
×
  • Create New...