Jump to content

Hayri ASLAN

Moderators
  • Posts

    1577
  • Joined

  • Last visited

  • Days Won

    134

Everything posted by Hayri ASLAN

  1. Below code will toggle row widget of currently selected record. with UniDBGrid1, JSInterface do begin JSCall('getPlugin().toggleRow', [UniMainModule.ClientDataSet1.RecNo-1, JSStatement(JSName+'.getStore().data.items['+IntToStr(UniMainModule.ClientDataSet1.RecNo-1)+']')]) end;
  2. Hello Please use below code. procedure TMainForm.UniButton19Click(Sender: TObject); function GetMarkerById(Id: integer): TUniMapMarker; var i: Integer; begin Result:= nil; for i := 0 to UniMap1.Markers.Count-1 do begin if UniMap1.Markers[i].Id = Id then begin Result := UniMap1.Markers[i]; Exit; end; end; end; begin GetMarkerById(Trunc(UniNumberEdit4.Value)).RemoveFromMap; end;
  3. Merhaba Test case yapmaniz mumkun mu? BrowserWindow demosunu denediniz mi?
  4. Merhaba Yanlis ornege baktiniz sanirim. "HTTP Post Callback - HTMLFrame2" demosuna bakacaksiniz.
  5. Merhaba HTTP Post Callback - HTMLFrame2 demosunu incelediniz mi? Orda veri geldikten sonra var olan formu kapatiyor
  6. Hello You should have latitude and longitude of markers. Please use onMapReady event and add them in to map.
  7. Please open "Unimap - Draw" Demo. in UniMap1MarkerCreated you will have access to newly created Marker. you can check Marker.Latitude and Marker.Longitude properties.
  8. Hi, You should save created markers to your database and load them when map is ready
  9. Hello Form->LayoutConfig->cls pencere_rengigenel ServerModule -> CustomCss .pencere_rengigenel{ background: #FF2F35; border-color:#FF2F35; } .pencere_rengigenel .x-window-header{ background: #FF2F35; border-color:#FF2F35; } .pencere_rengigenel .x-tool-img{ background-color: transparent; }
  10. To remove UniMap control with UniMap1, JSInterface do begin JSCallGlobal(JSName+'_uniControl.remove', []); end; To add UniMap control with UniMap1, JSInterface do begin JSCall('uniMap.addControl', [JSStatement(JSName+'_uniControl')]); end; To change position, with UniMap1, JSInterface do begin JSCallGlobal(JSName+'_uniControl.remove', []); JSCode(JSName+'_uniControl.options.position="'+UniMapControlPositionStr[mpTopLeft]+'";'); JSCall('uniMap.addControl', [JSStatement(JSName+'_uniControl')]); end;
  11. Hello I don't understand the problem. Can you explain it step by step?
  12. Hello Please explain clearly what are you trying to achieve.
  13. Hello Please create a test case so we can work on it.
  14. Also tested with safari with Ios device
  15. Hello I opened SSL Demo, Added MobileMainForm Added Unimmap Called Locate. Result: Please check attached example. sslmap.zip
  16. Hello Please use UniMap1.Locate. Please check demo Make sure you are using https
  17. Hello You can use UniMainModule.OnBeforeLogin procedure TUniMainModule.UniGUIMainModuleBeforeLogin(Sender: TObject; var Handled: Boolean); begin if TUniGUIApplication(UniApplication).Parameters.Values ['code']='SLKJDFJJFDSAJ' then Handled:= True; end;
  18. Hi, Hyper server and persistent node zero. Persistent Node Zero Persistent Node Zero is a Node with Id = zero (0) and it is guaranteed to run continuously, i.e. it will never be permanently unloaded. However, it will be occasionally recycled like any other Node. Again, it is guaranteed that it will be reloaded immediately after it is recycled. Main purpose of a Persistent Node is to make sure that you have at least one Node running at a time. Consider a scenario where your uniGUI application should perform a background task in a thread, possibly in a TUniThreadTimer placed on a ServerModule. In a classical uniGUI app there is only one process, so your background task is guaranteed to run in form of a Singleton. However, in HyperServer where multiple copies of same process are running concurrently, there should be a mechanism to ensure your Singleton method will run only in one of the Nodes. Persistent Node Zero option perfectly serves this purpose. All you need to do is enabled this option and checking Node Id in your uniGUI application. If boolean property in ServerModule named NodeZero is True, then it is safe to run your background task.
  19. Hello Which version and build are you using?
  20. I think the best way is cookies. https://medium.com/swlh/secure-httponly-samesite-http-cookies-attributes-and-set-cookie-explained-fc3c753dfeb6
  21. Hayri ASLAN

    Maps

    Hello Please try below code procedure TMainForm.UniButton18Click(Sender: TObject); begin with UniMap1, JSInterface do begin JSAssign('uniMap.options.crs', [JSStatement('L.CRS.Simple')]); JSCall('uniMap.setMaxBounds', [JSStatement('new L.LatLngBounds([0,500], [500,0])')]); UniSession.AddJS('var imageUrl = "http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg";'); UniSession.AddJS('var imageBounds = [[250,0], [0,250]];'); UniSession.AddJS('L.imageOverlay(imageUrl, imageBounds).addTo('+JSName+'.uniMap);'); end; end;
  22. We will add SimpleCRS property to unimap.
×
×
  • Create New...