Jump to content

ReaderF

Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by ReaderF

  1. @zilav , @Hayri ASLAN

    Good evening.

    Can I implement this event?  
    Can you help for double clicking? I found this event from sencha doc "pivotitemdoubletap"  but I don't know how use it like your sample with ajaxevent

    This code doesn't work for me

      With UniDBPivotGrid1, JSInterface do
      begin
        JSAddListener('pivotitemcelldoubletap', JSFunction('a,b', 'ajaxRequest('#1', "onSelect", ["bdata="+b.data["ext-35"]]);'))
      end;

     

  2. nobody knows?

    This example shows how disable

    https://examples.sencha.com/extjs/7.0.0/examples/kitchensink/?classic#collapsible-pivot-grid

    But I can;t use it for Unigui

     // set to "false" to make groups on rows uncollapsible
            collapsibleRows: false,
            // set to "none" to disable subtotals for groups on rows
            rowSubTotalsPosition: 'none',
            // set to "false" to make groups on columns uncollapsible
            collapsibleColumns: false,
            // set to "none" to disable subtotals for groups on columns
            colSubTotalsPosition: 'none',
    
            // Set layout type to "tabular". If this config is missing then the
            // default layout is "outline"
            viewLayoutType: 'tabular',
  3. Hi,

    How disable collapsibleRows Pivotgrid?

    Unibdgrid has property CollapsibleRows and CollabsibleColumnts but thiis is not work

    My unigui version is 1534..

    I try like this but not work

    on create form and onready form and onshow events not work

      UniDBPivotGrid1.JSInterface.JSConfig('collapsibleRows', ['false']);
      UniDBPivotGrid1.JSInterface.JSConfig('collapsibleColumns',['false']);

     

  4. 15 hours ago, adan200 said:

    I have 2 projects in diferents port use with Hyperserver,


    ##<VirtualHost *:80>
        ##ServerAdmin webmaster@dummy-host2.example.com
        ##DocumentRoot "C:/xampp/htdocs/dummy-host2.example.com"
        ##ServerName dummy-host2.example.com
        ##ErrorLog "logs/dummy-host2.example.com-error.log"
        ##CustomLog "logs/dummy-host2.example.com-access.log" common

         ServerAdmin me@example.com
         DocumentRoot "C:\xampp\htdocs"
         ServerName example.com:81
         ErrorLog "logs/example.com-error.log"
         CustomLog "logs/example.com-access.log" common

         ProxyRequests Off
         ProxyPreserveHost Off
     
         <Proxy *>
             Order deny,allow
             Allow from all
         </Proxy>

         <Location /nomina>
             ProxyPass http://localhost:8074/ connectiontimeout=5 timeout=300
             ProxyPassReverse http://localhost:8074/
         </Location>
     
         <Location /almacen>
             ProxyPass       http://localhost:8077 connectiontimeout=5 timeout=300
             ProxyPassReverse http://localhost:8077
         </Location>

    ##</VirtualHost>

    in unigui serverput are you settings /almacen  /nomina when compiling?

     

  5. On 8/28/2020 at 3:35 PM, Abaksoft said:

    Dear Friends,

    I don't offer a job, but a simple idea for your business.

    Here is what you can easily develope with Unigui. ;)

    image.jpeg.f9b29db262fdc014d679bb08e889c60a.jpeg

    Hi

    how design database?

  6. On 5/24/2020 at 8:12 PM, x11 said:

    Вышеуказанная  проблема с зависанием проявляется, если sql запрос перенести в код

    
      UniQuery1.Close;
      UniQuery1.SQL.Text := 'select id, name, id_type from table1';
      UniQuery1.open;

    убрать полностью все поля и все столбцы из UniQuery1 и из сетки.

    BufferStore включен в design-time.

    Если грид только для отображение попробуйте через view или селект с joinom

  7. On 10/7/2020 at 1:18 PM, alfr said:

    I believe Kenneth is not referring to the indy client. Instead the delphi native one - that is built on the windows version (works on modern versions of windows). 

    uses
         System.net.Httpclient;

    var
         Http: THttpclient;

    Shorted working example from unigui

    
    
    
         Http:=THttpclient.Create;
         try
              Res:=Http.Get('https://integration.com/api/v2/orders/' + OrderID.ToString + '?token=' + TheirToken);
              if Res = nil then
              begin
                   ShowMessage('Error in retrieving OrderID ' + OrderID.ToString + ' from X! Respons is empty!');
                   exit;
              end;
              if Res.StatusCode = 200 then
              begin
                   TheOrder:=TOrderClass.FromJsonString(Res.contentasString(Tencoding.UTF8));
              end
              else
              begin
                   ShowMessage('Did''t get Result 200 in reply from X! Result = ' + Res.StatusCode.ToString + ' ' + Res.StatusText);
              end;
         finally
              Http.Free;
         end;

    Some more info from Embarcadero

    http://docwiki.embarcadero.com/Libraries/Sydney/en/System.Net.HttpClient.THTTPClient

    But perhaps your problems indicate some other problems in your code? Are you perhaps creating the client to early? Would suggest that you create it as my sample - in the procedure where you use it.

     

    Try use 
    restrequest4delphi

    https://blogs-embarcadero-com.cdn.ampproject.org/c/s/blogs.embarcadero.com/powerful-open-source-restrequest4delphi-makes-rest-easy-in-delphi/amp/

    • Like 1
×
×
  • Create New...