Jump to content

irpans

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by irpans

  1. On 2/4/2018 at 3:15 PM, irigsoft said:

    HI, 

     

    I make some tests for this with android device (Tablet).

    When GPS is ON then unigui application server can get 

    coordinates of device.

     

     
    var id, target, options;
     
    function success (pos) {
      //var crd = pos.coords;
      //if (target.latitude === crd.latitude && target.longitude === crd.longitude) {
      //  console.log('Congratulations, you reached the target');
      //navigator.geolocation.clearWatch(id);
      //  }
     
     
      var out,out2
      out = document.getElementById ("out");
      out2 = document.getElementById ("TLabel3");
     
      out.innerHTML = "lat:" + pos.coords.latitude  
    + ", long:" + pos.coords.longitude
    ;
     
      out2.innerHTML = "Speed: " + pos.coords.speed
    + ", Altitude: " + pos.coords.altitude
    ;
     
    }
     
    function error(err) {
      console.warn('ERROR(' + err.code + '): ' + err.message);
    }
     
    target = {
      latitude : 0,
      longitude: 0
    };
     
    options = {
      enableHighAccuracy: true,
      timeout: 0000,
      maximumAge: 0
    };
     
    ID = navigator.geolocation.watchPosition(success, error, options);

    Hi, how to use this code?thanks 

  2. On 2/4/2018 at 3:15 PM, irigsoft said:

    HI, 

     

    I make some tests for this with android device (Tablet).

    When GPS is ON then unigui application server can get 

    coordinates of device.

     

     
    var id, target, options;
     
    function success (pos) {
      //var crd = pos.coords;
      //if (target.latitude === crd.latitude && target.longitude === crd.longitude) {
      //  console.log('Congratulations, you reached the target');
      //navigator.geolocation.clearWatch(id);
      //  }
     
     
      var out,out2
      out = document.getElementById ("out");
      out2 = document.getElementById ("TLabel3");
     
      out.innerHTML = "lat:" + pos.coords.latitude  
    + ", long:" + pos.coords.longitude
    ;
     
      out2.innerHTML = "Speed: " + pos.coords.speed
    + ", Altitude: " + pos.coords.altitude
    ;
     
    }
     
    function error(err) {
      console.warn('ERROR(' + err.code + '): ' + err.message);
    }
     
    target = {
      latitude : 0,
      longitude: 0
    };
     
    options = {
      enableHighAccuracy: true,
      timeout: 0000,
      maximumAge: 0
    };
     
    ID = navigator.geolocation.watchPosition(success, error, options);

    hi, how to use this code?

  3. On 10/26/2017 at 9:21 PM, Abaksoft said:

    Hello irpans,

     

    Yes you can   :)

     

    Unigui actually implemented  DataSource only  in  UniBarSerie

    if you want it for PieSeries, or else  you have to add . DataSource  manually :

     
    begin
      UniPieSeries1.DataSource:=DataSource1;
      UniPieSeries1.XLabelsSource:= YourField_NameX;              // a String
      UniPieSeries1.YValues.ValueSource:=  YourField_NameY;   // a String
     
     
      UniChart1.BeginUpdate;
      UniChart1.RefreshData;
      UniChart1.EndUpdate;
     
    end;
     
    Regards.

    post-1785-0-95703900-1509027663_thumb.png

    hi Sir, Still got error for this script.. [dcc32 Error] Main.pas(257): E2003 Undeclared identifier: 'DataSource', please advice

×
×
  • Create New...