Jump to content

Mehmet Emin

uniGUI Subscriber
  • Posts

    229
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Mehmet Emin

  1. Thanks, it will be great if can be eliminated in next versions.
  2. Is there a way to avoid the Chrome page error warnings for the TUniLabel components on the forms, since I don't set/use the attribute 'for'? Thanks
  3. procedure TMainForm.UniFormScreenResize(Sender: TObject; AWidth, AHeight: Integer); begin // just use AWidth in this event //var ScreenWidth := UniSession.UniApplication.ScreenWidth; end;
  4. If I understand correctly you are trying to access the headers generated by the website that the UniURLFrame.URL loading. If this is the case I think it is not possible either with uniGUI or javascript.
  5. Inside UniGUIServerModuleHTTPCommand you check ARequestInfo.RawHeaders to see what headers are set from the client.
  6. Since you are using CreateAnonymousThread and calling TUniServerModule.myproc, TUniServerModule has already same named property "Terminated". So I think you would better have your thread class and check the threads "Terminated" property within. Then you be able to exit the while loop. Also after FmyThread.Terminate; you can call thread waitfor better cleanup.
  7. @M.Ammar This is from Hyperserver documentation. Did you consider these notes? If you plan to run more than one instance of HyperServer on same OS then port numbers should be arranged in a way that they won't conflict with each other. You must ensure that all Nodes will be assigned unique port numbers. This can be easily done by leaving port gaps for each HyperServer instance. It can be calculated using below formula: <start_port for new HyperServer instance> = <start_port of previous HyperServer instance> + ( <max_nodes of previous HyperServer instance> × 3 ) + 8 Consider that you plan to install three HyperServer instances on same server. Instances are configured with max_nodes parameters of 8, 16 and 16 respectively. For 1st instance start_port is configured as 16384 ( or any other desired value ) For 2nd instance start_port should be configured as 16384 + ( 8×3 + 8 ) = 16416 For 3rd instance start_port should be configured as 16416 + ( 16×3 + 8 ) = 16472
  8. I was about to try similar deployment but after reading your post I will wait.. Are your hyperserver.dll's named differently like hyperserver1.dll and hyperserver2.dll and with their own configs.
  9. This is exactly what I was looking for. Thank you so much.
  10. I don't use hyperserver but use similarly multiple app pools on the same IIS server. So do you mean you are getting this issue only when run with hyperserver? Does apps interfere without hyperserver?
  11. Hi @Sherzod Is this the expected normal behaviour? Should I expect to receive a HandleEvent call after every move to other row in this grid? I don't understand this.
  12. Doğru iş yine timer'a kalıyor. Önerim yanlış oldu. @Hayri ASLANşu websoketi uniGUI 2021 içinde biran önce direk destekleseniz çok güzel olacak.
  13. Here is the test project.zip, as you can see in the screenshot every scroll on my dbgrid generates an empty event on the server. Test_Project1.zip
  14. Evet try finally başında ve sonunda lock unlock var işinizi bir an önce bitirmeniz lazım tüm server'i kilitleyen bir kod
  15. SessionManager.Sessions.Lock; try for I := 0 to SessionManager.Sessions.SessionList.Count -1 do begin end; finally SessionManager.Sessions.Unlock; end;
  16. Doğru bir kod olmadı ancak UniServerModule.SessionManager.Sessions yazın ve bunun üzerinde dönebilirsiniz
  17. I will upload a test case to explain my question. Thanks very much
  18. Mehmet Bey Bu kod işinizi görür mü acaba başka bir thread'e cevap olarak yazmıştım test etmedim yanlız. if UniServerModule <> nil then begin if UniServerModule.SessionManager <> nil then begin if UniServerModule.SessionManager.Sessions.QuerySession(thesessionidfromdb) then begin LSession := UniServerModule.GetSession(thesessionidfromdb); UsersMainModule := TUniMainModule(LSession.UniApplication.UniMainModule); UsersMainModule.YourGameStateUpdated := True; end; end;
  19. When I scroll over the rows on the grid, fo each I get a server event "select".
  20. If I don't need to track/catch scroll events on the server how can I disable /HandleEvent to trigger after every scroll. Thanks
  21. Hi @Abaksoft I used IIS 10. Install urlrewrite2.exe module for IIS from this url: https://www.iis.net/downloads/microsoft/url-rewrite Using url rewrite module goto manage server varibles and add two variables: HTTP_X_ORIGINAL_ACCEPT_ENCODING and HTTP_ACCEPT_ENCODING The following web.config file will do the rest. Please configure this config as per your case. ** I am using mobiletoolkit so there is "/m" in uniGUI urls. web.config: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="RewriteUserFriendlyURL1" enabled="true" patternSyntax="Wildcard" stopProcessing="true"> <match url="*" /> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="myapp/myisapi.dll/{R:1}" /> <serverVariables> <set name="HTTP_X_ORIGINAL_ACCEPT_ENCODING" value="{HTTP_ACCEPT_ENCODING}" /> <set name="HTTP_ACCEPT_ENCODING" value="" /> </serverVariables> </rule> </rules> <outboundRules rewriteBeforeCache="true"> <rule name="RestoreAcceptEncoding" preCondition="NeedsRestoringAcceptEncoding"> <match serverVariable="HTTP_ACCEPT_ENCODING" pattern="^(.*)" /> <action type="Rewrite" value="{HTTP_X_ORIGINAL_ACCEPT_ENCODING}" /> </rule> <preConditions> <preCondition name="NeedsRestoringAcceptEncoding"> <add input="{HTTP_X_ORIGINAL_ACCEPT_ENCODING}" pattern=".+" /> </preCondition> </preConditions> <rule name="ext-7.0.0" preCondition="NeedsRestoringAcceptEncoding" enabled="true" patternSyntax="Wildcard" stopProcessing="false"> <match filterByTags="A, Link, Script" pattern="/myapp/myisapi.dll/m/ext-7.0.0/*" /> <action type="Rewrite" value="https://mycdn.example.com/ext-7.0.0/{R:1}" /> </rule> <rule name="uni-1.90.0.1549" preCondition="NeedsRestoringAcceptEncoding" enabled="true" patternSyntax="Wildcard" stopProcessing="false"> <match filterByTags="A, Link, Script" pattern="/myapp/myisapi.dll/m/uni-1.90.0.1549/*" /> <action type="Rewrite" value="https://mycdn.example.com/uni-1.90.0.1549/{R:1}" /> </rule> <rule name="unim-1.90.0.1549" preCondition="NeedsRestoringAcceptEncoding" enabled="true" patternSyntax="Wildcard" stopProcessing="false"> <match filterByTags="A, Link, Script" pattern="/myapp/myisapi.dll/m/unim-1.90.0.1549/*" /> <action type="Rewrite" value="https://mycdn.example.com/unim-1.90.0.1549/{R:1}" /> </rule> <rule name="unipackages-7.0.0" preCondition="NeedsRestoringAcceptEncoding" enabled="true" patternSyntax="Wildcard" stopProcessing="false"> <match filterByTags="A, Link, Script" pattern="/myapp/myisapi.dll/m/unipackages-7.0.0/*" /> <action type="Rewrite" value="https://mycdn.example.com/unipackages-7.0.0/{R:1}" /> </rule> </outboundRules> </rewrite> <urlCompression doStaticCompression="true" /> </system.webServer> </configuration>
  22. @Sherzod As of today this problem still exists. Although your solution solves the issue I don't want to call JS function everytime I use a radio button. Do we need to reopen a bug report for this? Thanks
  23. I have managed to DO it using IIS and url rewrite module / outbound rules. All my ext and unigui related stuff is served by a CDN now. I do not know why uniGUI does not add this feature internally but never mind it is possible with rewrite.
  24. If someone like me wants to remove this /m (who only use mobile toolkit) it is possible to remove this parameter from the url by using a urlrewrite module with IIS.
  25. I am on version 1.90.0.1549 and using setFlex for the last columns of my grids still working. But I will use your approach if need equal fit of the columns. So thanks for the tip
×
×
  • Create New...