Jump to content

eduardosuruagy

uniGUI Subscriber
  • Posts

    845
  • Joined

  • Last visited

  • Days Won

    10

Posts posted by eduardosuruagy

  1. On 1/14/2015 at 4:39 AM, Sherzod said:

    Hi,

     

    2) About dbuniedit before there were questions on the forum, you can search,

    for example, here is the solution to enter only numbers:

     

    One of the solutions:

     

    UniDBEdit1 > ClientEvents > ExtEvents > OnKeydown

    
    function keydown(sender, e, eOpts)
    {
      var event = e;
        if (event.keyCode == 46 || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 27 || event.keyCode == 13 ||        
            (event.keyCode == 65 && event.ctrlKey === true) ||        
            (event.keyCode >= 35 && event.keyCode <= 39)) {        
            return;
        } else {        
            if (event.shiftKey || (event.keyCode < 48 || event.keyCode > 57) && (event.keyCode < 96 || event.keyCode > 105)) {
                event.preventDefault();
            }
        }
    }

     

    or even easier:

     

    UniDBEdit1 > ClientEvents > UniEvents > beforeInit

    
    function beforeInit(sender, config)
    {
      sender.maskRe = /[0123456789]/;
    }

    Best regards.

    Good morning, I use this code in an edit to accept just numbers:

    UniDBEdit1> ClientEvents> UniEvents> beforeInit

    function beforeInit (sender, config)
    {
       sender.maskRe = / [0123456789] /;
    }

    I would like my edit to accept letters and numbers, how do I do it?

  2. 7 minutes ago, Sherzod said:

    Sim.

      Grid.ClientEvents.UniEvents.Add(
              'pagingBar.beforeInit=function pagingBar.beforeInit(sender, config) {config.displayInfo = true;}');
     

      Grid.ClientEvents.UniEvents.Add(
      'store.afterCreate=function store.afterCreate(sender)'#13#10'{'#13#10''+
      '  sender.setRemoteSort(false);'#13#10'}');
     

      Grid.ClientEvents.ExtEvents.Add(
              'afterrender=function afterrender(sender, eOpts)'#13#10'{'#13#10'  var me = s' +
              'ender;'#13#10'    if (me.pagingBar) {'#13#10'        me.pagingBar.getCompone' +
              'nt("refresh").handler = function() {'#13#10'            ajaxRequest(me' +
              ', '#39'_refresh'#39', [])'#13#10'        }'#13#10'    }'#13#10#9#13#10'}');
     

    I have a unit where I pass the name of the dbgrid and add these options.

  3. 6 hours ago, zilav said:

    substitua o conteúdo em \ Framework \ uniGUI \ ext-xxx \ build \ packages

    Diretório 2 com a versão lite fontawesome, substitua o css e faça o upload da versão pro font

    Thanks, I preferred to go back to the version

  4. 3 minutes ago, Farshad Mohajeri said:

    Você não pode alterar porque o Ext JS 7 usa internamente FAws5.

    Opcionalmente, você pode adicionar FAws4, que pode ser usado em NativeImageLists.

    Okay, but how do I change this in my project? Because my UniTreeMenu went wrong and so did my PopupMenu, and even the closing and maximizing icons on the forms.

  5. I was using version 1.90.0.1526 and the icons were all normal, yesterday I upgraded to version 1.90.0.1531 and the icons are strange (see the image in my previous post). I tried to change fontAws5 to fontAws4 but Unigui doesn't allow it, I tried it via code, even though it doesn't. see that instead of having an arrow the unigui is showing a square.

  6. 8 minutes ago, Sherzod said:

    Por favor, leia este post:

     

    After updating to version 1531 my system had problems with some icons, I tried to change fontAws5 to fontAws4 but the server doesn't allow it, just let me select fontAws5.
    How do I select fontAws4?

    I already did it but it doesn't work:
    FontAwesomeVersion: = fontAws4;

    I had already seen this post, and it does not solve my problem. See the screens as they were after the update. Even the close and maximize button on the forms have been changed. I'm trying to change the font via code, but the unigui won't let me.

     

    Image2.png

    Image3.png

    Imagem1.png

  7. On 17/04/2020 at 17:57, Farshad Mohajeri said:

    Sim, eu notei.

    É porque tornamos o Font Awsome 4/5 selecionável, mas o Ext JS assume como padrão o Font Awesome 5.

    Vou tentar encontrar uma solução.

    Você pode resolver mudando para 5 (usando a opção servermodule) e reorganizando seus ícones com base em 5 ícones.

    After updating to version 1531 my system had problems with some icons, I tried to change fontAws5 to fontAws4 but the server doesn't allow it, just let me select fontAws5

  8. 1 hour ago, Abaksoft said:

     

    Enquanto aguarda o ServerFarm , você pode usar a técnica de pool . Isso inverte drasticamente os recursos e o tempo de conexão.

    Para Pooling, cada DBAware tem sua configuração. Aqui está um exemplo para IBDAC (Devart) / FireBird :

    
    
    
    
        
      
      
      
      
        
         
    
    
    
    
      
      
        
      
      
    
    
    
    
               
              
                
                   
       
    
    
    
      
        
        
      
           
    

     

    Can you do that with firedac?

×
×
  • Create New...