Jump to content

stevewong

uniGUI Subscriber
  • Posts

    29
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by stevewong

  1. 👍 interesting post, I do think chatGPT (or othere AI) will take up 70% of my job in the near future !
  2. Below is what I write in another post, hope that help. ******************* In order to use TNetHttpCleint under IIS ISAPI environment, you need to do the following : Under Application Pool -> your application -> Advance Setting -> Process Mode -> Identity -> Built in Account -> Network service Then under the web application's Authentication Setting -> make Application Pool identity the default option. (using specific user : IUSR will cause cause an exception whenever you call TnetHttpClient.create) I don't know why, but I hope this information helps.
  3. My experience is to change the default user in IIS to a user have network privilege
  4. Updated login demo, now works for Google, Azure and Twitter, enjoy ! SignIn_Demo.zip
  5. Hi Leons, You need to do a redirect under server module -> server message -> termination template. The redirect url will be your app's original link without any parameters.So when you close you app (quit/close), it will redirect you to your original login page (no parameter at the end) Steve
  6. Hi Fred, Dominique Good idea ! Will work on Twitter later, but my problem is : I don't have a Twitter account 😅 Anyway I will open a Twitter account and study Twitter's OAuth flow. Steve
  7. Updated login demo, added sign in with Azure, enjoy ! SignIn_Demo.zip
  8. Tested it on hyper server, will post sign in with o365 later today.
  9. This is a demo project to implement the "Sign in with Google" button using Unigui, enjoy ! LoginForm - Sign_in_with_Google.zip
  10. I finally figured it out ! To make a RESTFUL call, you need to use the component NetHTTPClient. In order to use TNetHttpCleint under IIS ISAPI environment, you need to do the following : Under Application Pool -> your application -> Advance Setting -> Process Mode -> Identity -> Built in Account -> Network service Then under the web application's Authentication Setting -> make Application Pool identity the default option. (using specific user : IUSR will cause cause an exception whenever you call TnetHttpClient.create) I don't know why, but I hope this information helps. Steve
  11. Hi, I was going to make a sign in with google button to my login form. I then get into trouble. My problem is : I was not able to issue RESTFUL call under windows IIS hyper server environment. I have attached my code, it is a copy from the demo login form, when the user click login, it will do a REST request to a website to get something. The program work perfectly OK when I run it as a standalone exe. But when I deploy is to the hyper server, the program got an exception : Signin_App.exe: 00001530: 10:26:48 [TUniServerModule]:Server First Init. Signin_App.exe: 00001530: 10:26:48 [TUniServerModule]:Node Id = 2 Signin_App.exe: 00001530: 10:26:48 [TUniServerModule]:Node MaxSessions = 250 Signin_App.exe: 00001530: 10:26:48 [TUniServerModule]:Starting HTTP Server on Port: 19686... Signin_App.exe: 00001530: 10:26:48 [TUniServerModule]:HTTP Server Started on Port: 19686 Signin_App.exe: 000022B8: 10:26:49 [172.16.2.18]:ENetHTTPClientException : Error obtaining session handle : Addr: $00A0BB16 Signin_App.exe: 0000222C: 10:27:46 []:Node-2, Terminate Started. Signin_App.exe: 00001530: 10:27:47 [TUniServerModule]:Shutting Down Server. Signin_App.exe: 00001530: 10:27:47 [TUniServerModule]:Stopping HTTP Server. Signin_App.exe: 00001530: 10:27:47 [TUniServerModule]:HTTP Server Stopped. Signin_App.exe: 00001530: 10:27:47 [TUniGUISessionManager]:Terminating Session manager. Signin_App.exe: 00001530: 10:27:47 [TUniGUISessionManager]:Stopping Cache Eraser... Signin_App.exe: 00001530: 10:27:47 [TUniGUISessionManager]:Cache Eraser Stopped. Signin_App.exe: 00001530: 10:27:47 [TUniGUISessionManager]:Destroying Worker Threads. Signin_App.exe: 00001530: 10:27:47 [TUniGUISessionManager]:Session manager terminated. Signin_App.exe: 00001530: 10:27:48 [TUniServerModule]:Server Shutdown Completed. Can anyone help me to solve this ? LoginForm.zip
  12. I tried with Indy ThttpClient. the code then stopped at the statement http.post(.....), with an invalid address exception. The same set of http.post(...) code was working fine under VCL. so I do suspected that I can not use ThttpClient or TNetHTTPclient in the hyperserver + IIS enviroment.
  13. Hi, Can anyone tell me how to use TNetHTTPClient in unigui app. I was trying to make some RESTFUL call in my unigui app. However, whenever I try to do : http := TNetHTTPClient.create; in my unigui app, I got an exception : Net HTTPClientException : Error obtaining session handle I then try to put the TNetHTTPClient component into mainmodule so that I do not need to create it. However, the unigui app give me a blank screen when I try to access the unigui page (e.g. https//x.com/app.dll). I was using Delphi 10.3.2, web server is windows server IIS 7, unigui version 1.90.0.1511 Or can anyone tell me to issue Restful call within the unigui app, thanks !
  14. Follow that post did help, thanks Sherzod !
  15. Can anyone tell me how to implement the "Sign in with Google" button in unigui Apps ?
  16. Test case attached. Have a unidbgrid with 3 colunms, 1 is horizontal, while the last 2 is vertical. With the 2 vertical column header, one title called "short" which can be displaycorrectly and the other is called "very logn title" that can not display properly. If I change the "height: 40px;" to "height: 140px;" then nothing display on the top of the grid. Please help ! Vertical-Column-Header.zip
  17. Hi, Thanks for your solution, it works, but for short column title. If the column title is "Name", then a height of 40px will do. But if the column title is "This is a long Header" and I set height to 100, then the column header did not show up ! How can I fix this ?
  18. Try to reduce your exe to below 16m by not include debug information or config your IIS to allow upload files greater than 16m
  19. lcolombo Thanks for your component, works like a charm !
  20. Hi, How can I make some of my unidbgrid column title to vertical oriented like the picture shown ? Steve
  21. Hi, Today I upgrade my development PC by cloning the old PC to a new hardware platform. After reboot, I start my Delphi 10.2 and got the "unigui : verfication failed" message. What should I do to get my unigui back ? Regards, Steve
  22. Hi, How can I change the background color of the unidbradiogroup, I try to set unidbradiogroup->color to cllime, it was OK at design time but the color changed back to clwindow when I open it in a browser
  23. I just want to show a memo box when I click on one of the cell under the remark column. At present DBGrid show the text and did not allow me to edit.
×
×
  • Create New...