Jump to content

NelsonFS

uniGUI Subscriber
  • Posts

    108
  • Joined

  • Last visited

  • Days Won

    9

Posts posted by NelsonFS

  1. Atualmente, não há recurso para colocar um botão em uma coluna para cada linha.

    Mas há uma alternativa, você pode criar uma coluna e colocar uma imagem, nessa imagem definir o bmp/png de um botão e capturar o click.

    Existe nos exemplos como colocar uma imagem em um botão para cada registro da grade.

    Espero que ajude.. te+

  2. Mohammad,

     

    You can help me in this problem?

    After added jquery.js in ServerModule.CustomFiles, animation stopped!!!

    Was set "files/js/jquery.js", only this!

    To test, just modify same demo above, add jsquery.js and check.

    To come back, remove jsquery.js line.

    I await your analysis.
    Thank you very much.

  3. Other method is simply create a Events inside Delphi:

    Project => Option => Build Events

    - Change on top to "All Configuration"

    Below Pre-Build Events:

    - Unckeck Option "Cancel On Error"

    - In command line set:

          taskkill /F /IM $(OUTPUTFILENAME) /T

     

    just this!

    When run/debug will kill server application before compile and run again!

    :D

    • Upvote 1
  4. A fantastic feature that is missing and that many who develop systems for database and want much, is to use a TUniDbLookupComboBox in grid as Editor, allowing the user to search.

    Today I have to create other screen to enable the user to select list elements.
    Another thing is the Grid, allow to enter the data into it without using the mouse, as it does in excel. The grid acts catching and often forced to use the mouse. This decreases much productivity.

  5.  

    Replace In 
    procedure TUniButtonEdit.ConfigJSClasses(ALoading: Boolean);
    from 
      JSObjects.DefaultJSClassName:='Ext.form.TriggerField';
     
    to
     
      JSObjects.DefaultJSClassName:='Ext.form.field.Trigger';

     

     

     

     

     

    Works fine!!

    Thank you Stas!

  6. Sobre certificado digital, se quer dizer ssh, o uniGUI já tem suporte, na documentação e nos demos tem exemplos de como usar e configurar o certificado e gerar as chaves para uma comunicação segura via ssh. Logicamente, que os certificados mostrados são de exemplos, você deve gerar o seu e pagar para registrar para que seja validado pelo navegador corretamente sem mensagem de alerta.

  7. This panel is usefull case you need add a accordion panel left side, or reorganize frame and form, example, hide/show all frame. You wont need to put all frame components in other place.. was just thinking in future.. just this.

  8. This code works for me.

    try to adapt it.

    You must create a table like: Id, Description, IdFather

    hope that helps.
    procedure CreateTreeViewFromTable;
    var iFather, iLast: TUniTreeNode; FatherCreated: Integer;
    begin
      Qry.First;
      FatherCreated := -1;
      while not Qry.Eof do
      begin
        if (FatherCreated <> QryIDFather.AsInteger) then
        begin 
          if QryID.AsInteger = QryIDFather.AsInteger then
            iFather := TreeView1.Items.Add(nil, QryDESCRIPTION.AsString)
          else
            iFather := TreeView1.Items.AddChild(iLast, QryDESCRIPTION.AsString);
          FatherCreated := QryID.AsInteger;
          Qry.Next;
        end
        else
        begin
          while (not Qry.Eof) and (FatherCreated = QryIDFather.AsInteger) do
          begin
            iLast := TreeView1.Items.AddChild(iFather, QryDESCRIPTION.AsString);
            Qry.Next;
          end;
        end;
      end;
    end;
    
  9. Realmente um frame não tem onActivate, para burlar a falta, você pode fazer do modo mais dificil...

    Você pode fazer um loop dentro da aba (TUniTabSheet) atual (activepage) em todos os controles, até encontrar o panel com o nome colocado dentro do Frame. Esse panel dentro do frame contem todos os controles dbUniEdit (faz um for para todos os controls). Quando você encontrar um TUniDBEdit (verifique com Control[x] is TUniDBEdit), você pode capturar o dataset através de sua propriedade Dataset e depois chegar a query por ele. Chegando na query, você pode dar um refresh.

    Complicado não?? rsrsrsrs.. mas funciona.. é assim que faço.

  10. other solution..

     

    procedure HideUniPageControlHeader(PC: TUniPageControl);
    begin //hide UniPageControl header
      //add in uses: uniGUIApplication, uniGUIBaseClasses, uniPageControl
      UniSession.AddJS(Format('%s.items.getAt(0).tabBar.hide();', [PC.JSName]));
    end;
     

×
×
  • Create New...