Jump to content

Hayri ASLAN

Moderators
  • Posts

    1577
  • Joined

  • Last visited

  • Days Won

    134

Posts posted by Hayri ASLAN

  1. UniMobileX is a middle man between UniGUI and Android - IOS operating systems. 

    Supported Features: (Last Updated : 2 March 2022)

    • DeviceID
    • Keep Screen Awake
    • Access Camera
    • Read Barcode and QRCode
    • Request Biometric Authentication (Fingerprint, FaceID, TouchID)
    • Handle Back Button (Android)

    ANDROID:

    I'm using B4A. It is free. 

    Please download it from below link and make sure you can run Hello World app.

    https://www.b4x.com/b4a.html

    IOS:

    I'm using B4I. Unfortunately it is not free. B4i is a development tool for native iOS applications.

    If you want to develop IOS apps, please buy it from below link and make sure you can run Hello World app.

    https://www.b4x.com/b4i.html

    DELPHI:

    UniMobileX component is a middle man component which is communicating with Android and IOS apps.

    Please Install it and make sure you can run Demo app.

     

    Parameters:

    Please change below parameters in B4XMainPage. 

        Dim kvsEncyptPassword As String = "ChangeMe"
        Dim WebsiteLink As String = "http://192.168.0.59:8077/m"

    ios1.thumb.png.185de58e11e4bc70a8b0f22aace779b9.pngandroid1.png.a270a624148e1f653a00e261f7040e7e.png

     

    Please download from below link. 

    UniMobileX.zip

    • Like 5
    • Thanks 1
    • Upvote 1
  2. On 2/11/2022 at 12:49 PM, Wilton Ergon said:

    the use of url redirection generates problems with the use of cookies, if you use a lot to store information in cookies, you will have a problem if you use this feature.

    as cookies are stored depending on the server address, every time you connect, a new url is loaded from another server, so it is not possible to retrieve the last saved value.

    @farahad what do you suggest as an alternative to this situation?

    Hello

    You can use LocalStorage instead of cookie.

    "Web storage is per origin (per domain and protocol). All pages, from one origin, can store and access the same data."

     

  3. 3 hours ago, Cristian87 said:

    Is a simple TUniFrame incorporate in a TUniForm with a UniMap.

    Then I insert into Form a component uniUrlFrame or unihtmlFrame and the code is:

    ucMap: TUniHTMLFrame;
    
    var FrMap:TUniFrame;
    
    FrMap := TFMapAssegnazioni.Create(Self);
    FrMap.Parent := ucMap;

    Hello,

    Why you are setting parent of UniFrame to UniHTMLFrame?

     

  4. 3 hours ago, Cristian87 said:

    If I put a unimap in a uniframe it doesn't work and the Ajax error "Map container not found" comes out.

    How to resolve it?

    Hello

    Can you please create a test case?

  5. 20 hours ago, erich.wanker said:

    TESTCASE 

     

    Between Output of CountryGroup       and      TotalCount      i want the value of field "City" 

    Description: My Datastructure is simmilar to the records of Group "British West Indies" - all "Citys" are the same .. which record of the group is used to get the "Grand Cayman"-Text doesnt matter 

    uni2.jpeg.307519c7bebed0eea0f0036289527076.jpeg

    testcase.zip 32.58 kB · 1 download

    Hello

    Please use below code. (Please use children instead of rows and rows is deprecated)

    PRO TIP : add {[console.log(values)]} into groupHeaderTpl to see the values in the console.

    function beforeInit(sender, config)
    {
                          config.groupingFeature = Ext.create('Ext.grid.feature.Grouping', {
                            groupHeaderTpl: new Ext.XTemplate('{[this.getGroupTitle(values.rows[0]]}', {
                                getGroupTitle: function (values) {
                                    if (values.data[0] == '')
                                        return 'Alle 8D Änderungsreporte ohne Gruppenzuordnung';
                                    else
                                        return 'Gruppenname: <b>' + (values.data[0]).replace(/[&\/\\#,+()$~%.":*?<>{}]/g, "");
                                    '</b>';
                                }
                            })
                        });
                        config.features = [config.groupingFeature];
                        var groupingFeature = Ext.create('Ext.grid.feature.Grouping', {
                            groupHeaderTpl: new Ext.XTemplate('{columnName}: {name} - 1st CountryName: {[values.children.at(0).get(4)]}   -  TotalCount: ({[this.countTotal(values.children)]})', '', {
                                countTotal: function (records) {
                                    var totalSum = 0;
                                    totalSum = records.length;
                                    return totalSum;
                                }
                            }),
                            hideGroupedHeader: true
                        });
                        config.features = [groupingFeature]
    }

    image.png.ffb1a37219a14f374dc756207e5d3cdc.png

    • Thanks 1
  6. 23 hours ago, VojkoCendak said:

    We saw at Ext 7 Sencha fiddle, that if you add null instead of number, chart skips drawing point.

    just change value let's say 17 -> null ! voila

    Would that be hard to implement ?

    Regards,

    Vojko

     

    Hello For now please use below workaround.

    UniChart.pas  Line 1819

     

              1 :
                begin
                  if VarIsNull(ValuesList[1].Value[I]) then
                    Result[I] := 'null'
                  else
                  begin
                    fVal := ValuesList[1].Value[I];
                    Val := fVal2Float(fVal);
                    Result[I] := Val;
                  end;
                end;

     

    and you can add null values like below

    Series1.Add(null, '2000')

    • Like 1
  7. 47 minutes ago, jahlxx said:

    Hi all.

    Please, can anyone tell me whats wrong in this sentence?:

    UniLabel3.caption :=  '<button type="button" class="btn btn-success" onclick="ajaxRequest(UniLabel3, "_test", []);">Success</button>';

    And later:

    procedure TMainForm.UniLabel3AjaxEvent(Sender: TComponent; EventName: string;
      Params: TUniStrings);
    begin
      if EventName = '_test' then
         showmessage('hello world!!');
    end;

     

    Nothing happens when click.

     

    Thanks.

     

    Hello

    Please check the below code.

    UniLabel3.Caption:= '<button type="button" class="btn btn-success" onclick="ajaxRequest('+UniLabel3.JSName+', ''_test'');">Success</button>';

     

  8. 3 hours ago, rhazell said:

    The supplied instructions work well for components that have ScreenMask property (great feature), however, how do I go about showing a "ScreenMask" for the following situations, please? 

    1) user double-clicks UniDBGrid and the resulting event handler performs a potentially lengthy task - I would like to show a ScreenMask 

    2) the OnCange event of a PageControl performs a potentially lengthy task - I would like to show a ScreenMask

    TIA

    Hello

    You can call Showmask and synchronize to show screen mask.

    Please check "SyncClientUpdate - 4 - ShowMask" demo

    • Thanks 1
  9. On 12/21/2021 at 4:49 AM, dbf_usr said:

     

    Включил конфигуратор. Добавил поля. Вовремя выполнения использую конфигуратор.

    image.png.7241e7a9a5677b64b92e1505d80dda30.png

     

     

    После того как получил нужную форму таблицы хочу сохранить ее конфигурацию. Красны отметил то. что хочу сохранить. Вот тут пробую считать добавленные поля в LeftAxis  а там - ПУСТО! 

    col:=UniDBPivotGrid1.LeftAxis.Count-1;
      UniMemo2.Lines.Add(inttostr(col));
      while col<>-1 do
       begin
        UniMemo2.Lines.Add(UniDBPivotGrid1.LeftAxis.Items[col].FieldName);
        col:=col-1;
       end;

    Подскажите пожалуйста откуда считывать информацию о полях добавленных в Row Label, Column Label, Values? 

    Всем за ранее благодарен!

    Hello

    Please try below solution

    procedure TMainForm.uniDBPivotGrid1AjaxEvent(Sender: TComponent;
      EventName: string; Params: TUniStrings);
    begin
    
    //Sample Response
    // Aparams['leftAxis'].asstring , Aparams['aggregate'].asstring, Aparams['topAxis'].asstring
    //leftAxis=SaleMonth
    //aggregate=ItemsTotal
    //topAxis=Customer,ShipVIA
    end;
    
    procedure TMainForm.UniFormCreate(Sender: TObject);
    begin
      with uniDBPivotGrid1, JSInterface do
      begin
        JSAddListener('configchange', JSFunction('m,c',' ajaxRequest('+JSName+', "configchange", '+
                                     ' {leftAxis: Array.prototype.map.call(c.leftAxis, function(item) { return item.header; }).join(","), '+
                                     ' aggregate: Array.prototype.map.call(c.aggregate, function(item) { return item.header; }).join(","), '+
                                     ' topAxis: Array.prototype.map.call(c.topAxis, function(item) { return item.header; }).join(",")})'))
      end;
    end;

     

  10. 1 hour ago, wilton_rad said:

     

    as I understand it, mode 3 would be the simplest for you and your team to create the resource in unigui, maybe if you had done a poll showing users how the hyperserver would work, what modes of operation it could have, and which mode it should be given priority, in my view mode 3 would certainly be elected as priority, as all developers look for performance, no matter if it's more complex to configure, as I imagine most users didn't even imagine the hyperserver could have other means of use. as it was never mentioned, at least I never saw anything about what you mentioned just now.

     

    Hello

    We are currently working on Mode 3. We will publish it soon.

    • Like 4
    • Happy 1
  11. 6 hours ago, likemike said:

    Sorry for pushing, but the problem with UnimBarcodeScanner1.CameraList is still actual.

    The UnimBarcodeScanner1.CameraList; doesn't load all video devices on Android devices (only the front cameras are listed).

    Another problem: on iOS-devices the 1st try gives only "Video device 1 =", while the 2nd try loads front and rear camera correctly.

    Maybe there is a new version of ZXING.min.js?

    Hi

    Did you try with new version of ZXING?

×
×
  • Create New...