Jump to content

Abaksoft

uniGUI Subscriber
  • Posts

    1559
  • Joined

  • Last visited

  • Days Won

    87

Everything posted by Abaksoft

  1. May be : Set your datasource on beforOpen of FdQuery1. Ok, but why are you doing this gymnastic ?
  2. Dear Developers, For who have recently joined us, here is a sample to jump from UniEdit and UniDbGrid (very fast). I invite all Unigueers to share their knowlege. This will save us many times Best regards
  3. @ Frederick Use instead AJAX Event. This is Client Side Technic, very Fast See attachment ClientSide_Focus.zip
  4. Hello Erich, I like your idea. But why not wait for Hyperserver Farm server features. it's imminent (unigui Quasar 2.0.0 is comming soon. http://unigui.com/explore/unigui-roadmap-2019 Farm server will automatically load balancing from servers. Regards.
  5. Hello, We are using Frames instead (better). See in attachment Frames On the fly. Regards Frames_On_TheFly_Sample.zip
  6. Dear Artists Developers, EMB, is doing a survey for his new Roadmap 2020.... You can boost our fantastic unigui framework here : https://us.surveymonkey.com/survey-taken Best regards.
  7. Thx mierlp, +1 The art of making things simple !
  8. Try to run your ISAPI application like this : localhost/MyAliasFolder/MyApplication.exe ( http: // localhost: 8080 is runing a service not an ISAPI application) ______________ Please read : http://www.unigui.com/doc/online_help/iis_7_0.htm http://www.unigui.com/doc/online_help/hyperserver.htm
  9. Congratulation powergov ! Beautiful design
  10. Hi Paul, There is nothing to do here, at all. 1. Compile normally your uniguiApplication.exe on your PC (where you installed Unigui) 2. Runtime and Themes Package are needed only on the Server (where Unigui is not installed) Edit : errerratum **************** No need to install Theme Pack on this server. The Runtime is enough. **************** 3. Be sur you are using the same version on your PC and on this Server. Regards
  11. Hello Paul, If you are using HyperServer technology (strongly recommended), keep your unigui Application compiled as standalone (desktop) and adjust only the config file : hyper_service.cfg http://unigui.com/doc/online_help/hyperserver-windows-service-mo.htm So, the steps are : 1. Develope your unigui application as usualy (standalone mode). Let's say : myApplication.exe 2. Create a folder on your server and Copy there : - myApplication.exe - hyper_service.exe and hyper_service.cfg 3. Open with notepad hyper_service.Cfg and Indicate : binary_name=myApplication.exe 4. Install hyperserver service 5. Start this service (not your application) 6.Launch your unigui application on browser like this : localhost:8077 That's all _______ NB : of course, if this server is not your developper PC, then you have to install the uniguiRuntime and the uniguiTheme pack on this server. Edit : errerratum **************** No need to install Theme Pack on this server. The Runtime is enough. ****************
  12. Hello Friends, Using Unigui Application on a server for production, requires some installations and settings. You have to install on this server : - your RDBM - UniguiRuntime - HyperServer_Config - your Service - Your Application - Start Service - Allow FireWall (port 8077 .... + yourapplication) Here is an easy way to do it : In this example we use FireBird as RDBM and hyperserver as Service. ==================================================== 1. Compile and build this program (Install.dpr) 2. Copy on CD\Res your 4 exe files : example : - Firebird server : Firebird-3.0.3.32900_0_x64.exe - Unigui RunTime : FMSoft_uniGUI_Complete_runtime_1.90.0.1503 - HyperServer : FMSoft_uniGUI_HyperServer_Config_1.90.0.1503.exe - Your Application Installer (use for example InnoSetup) and name the output : H.exe 3. adjust the CD\Res\Config.ini : VApplication = 1.00 ( this is yourApplication version) VRuntime = 1.90.0.1503 FBFile = Firebird-3.0.3.32900_0_x64.exe 4. Run Install.exe ==================================================== Download link: http://forums.unigui.com/index.php?/topic/14869-windows-service-issue-via-hyperserver/&do=findComment&comment=81109 Have fun
  13. It's time to take cakes.
  14. Hello Goldline, There is no Bug with that. See, in attachment the correct behavior. Note, that Showmessage, shows the latest message (Asynchronous Constraint): It gives the impression that the event is not executed. But if you put a global variable as in attachment example, you will see variable i is incremented twice : OnExit and OnDoubleCLick. See the Mega DEMO : this will give you a good idea on Unigui. Regards. Onexit.zip
  15. Hello Paul, I did not retreive it, but i will explain here, step by step, what i did with my free home server (This work from Oct 2015 without problem). A. Introduction 1.The first thing is how to start an Unigui application: - either via IIS (ISAPI dll): MyIP_ServerAdresss / MyAliasFolder / MyApplication.dll - Or via Service: MyIP_ServerAdresss / MyApplcation: MyPort (MyPort = 8077, 8078, 8079 ...) Follow the deployment steps in the Developer Manual: http://www.unigui.com/doc/online_help/deployment.htm (My preference, today (May 2019) goes for the Service. Since August 2018 use the FMSfot HyperServer technology and the Hyperserver requires a Standalone Application: it's very simple to set up Follow the steps: http://www.unigui.com/doc/online_help/hyperserver.htm) 2. Once your application launches well on your Development Station, you can then deploy it on a good PC (i5, 8 GB RAM, preferably Windows Server Edition) On ebay, you can have Genuine Windows Server Edition Licenses for € 8. Do not forget to install the Runtime on this PC: FMSoft_uniGUI_Complete_runtime_1.90.0.1501.exe (May 2019) 3. Now connect this PC (server) to the internet via a simple modem. 4. Open your favorite browser and tape: MyIP You will find your Internet IP address: xx.xx.xxx.xx 5. This IP address is not that of your PC (server), but that of your Modem (telephone line) So if you try to launch your application from a smart phone connected to the internet from a chip (not wifi) for example: xx.xx.xxx.xx / MyApplcation: MyPort This should give you the homepage of your Modem and you will not see your application launch! The Solution and this is the most important step: Tell your MODEM that this IP address (xx.xx.xxx.xx) should point to your PC (server). To do this : 5.1 Assign a static address to your PC (Server): example 192.168.1.2 (see picture) 5.2 Enter your MODEM via Browser: 192.168.1.1 5.3 Look for something like: Advanced 5.4 DMZ> NAT 5.5 DMZ: Activated 5.6 Assign: the pointing address: 192.168.1.2 5.7 Save and Restart your Modem. End. Now your modem, as soon as it is called xx.xx.xxx.xx, from the outside, it will point to your PC (Server) 6. Test from a smart phone connected to the internet from a chip (no wifi) for example: xx.xx.xxx.xx / MyApplcation: MyPort And it will work 7. Do not forget to install a good UPS, voltage stabilizer to your PC (Server). END. B. Fixing IP adress Now, your internet IP adress points to your PC (Server) OK. But this IP adress remains 24 h only and will automatically change tomorrow. Solution : Solution 1. Buy from your ISP (Interner Service Provider) a dedicated IP adress Static. Generally ISP is your National Company (internet). 1.1 Run your Unigui Application like this : - ISAPI : yy.yy.yyy.yy/MyAliasFolder/MyApplication.dll - Or Service : yy.yy.yyy.yy/MyApplcation:MyPort (MyPort = 8077, 8078, 8079 ...) 1.2 or smooth call : - ISAPI : MyDomaineName.com/MyAliasFolder/MyApplication.dll - Or Service : MyDomaineName.com/MyApplcation:MyPort (MyPort = 8077, 8078, 8079 ...) For a smooth call : (Edited 26/12/2020) Buy a Domain Name MyDomaineName.com AND ASSOCIATE it --> to your IP Static yy.yy.yyy.yy From providers like (Goddady, NameCheap,...) How ? see this topic http://forums.unigui.com/index.php?/topic/11906-redirect-url-to-other-webapplication/&do=findComment&comment=87072 Solution 2. Use a Free DNS like NoIP or my prefered Dynu dns : https://www.dynu.com/ 2.1 Sign Up and follow the steps 2.2 Download their great tool : Dynu IP Update Client this will capture your daily dynamic IP adress and fixed it as an alias. Example : YourSubDomaine.dynu.net point always to your PC (server) 2.3. Run your Unigui Application like this : - ISAPI : YourSubDomaine.dynu.net/MyAliasFolder/MyApplication.dll - Or Service : YourSubDomaine.dynu.net/MyApplcation:MyPort (MyPort = 8077, 8078, 8079 ...) Have fun Best Regards
  16. Hello everyone, This is not related to UNIGUI, please do not see here any innuendo. i would only like to know how are you doing with your customers When you develop a program, very often you do not think to dissociate it into several sub programs.We send everything in one piece. And one day, you realize that there is a history of bug fixes and a history of improvement (offer new options). And so, we should not charge the customer for corrective updates, but only for scalable updates. Has anyone ever thought about that ? How can we do it with Unigui ? For example : a MainForm call other Unigui applications... then, for fixing bug we operate only on theese applications !? Thx.
  17. Hello Paul 1. You can create your own free server hosting (very easy) at home. That wokrs fine. Will try to find the step by step post in the forum and come back here... 2. For professional hosting you can try : cheap and great. www.Contabo.com Regards
  18. Can you explain what are the benefits of creating components dynamically ?
  19. @ 55143681, For work, you must connect your PC to internet, first.
  20. Hello Rencarnacion Muslims celebrate, all years a holy month, named "Ramadane". During this month, we must fast. Many benefits bring this fast: - Get closer to God - Getting closer to the poor - Better health - A spirituality elevation In the end, we ask God's approval to register among His best beings and to grant us paradise. Aaaaaameeeen. (Sorry if it comes out of the forum context). Edited : Oh...No differences between Hebrew religion, Christian religion and Islam. We are all brothers and Islam is the last UPDATE.
  21. رحمة، مغفرة ، و عتق من النار ان شاء الله ،و لا ننسا ابدا اخواننا الفلسطينيون فقلوبنا معكم و اذكارنا لكم
  22. Hello Friends, Finally, a big thx to Hayri ASLAN, who corrected my code. Thank you to everyone who participated in this topic : Paul, Sherzod and Hayri For those who are interested //********************************************************************** // METHODE without define (JavaScript Code) on Main > Script // Big Thx to Hayri ASLAN [Unigui Forum 24/04/2019] // Benefict to Use LocalStorage instead of Cookies : // 10 Mo Persistent data on Client Side (even with Refresh browser) // Only strings are store //********************************************************************** //1. To Set the Key 'K1' procedure TMainForm.UniButton1Click(Sender: TObject); var st:string; begin st:=UniEdit1.Text; UniButton1.JSInterface.JSCallGlobal('localStorage.setItem', ['K1', st] ); // Key , Value (always string) end; //2. To retreive Value of 'K1' on UniEdit2 procedure TMainForm.UniButton2Click(Sender: TObject); begin with UniEdit2.JSInterface do JSCall('setValue', [jsstatement('localStorage.getItem("K1")')]); // important : Key must be Quoted " " end; //3. To remove Key 'K1' procedure TMainForm.UniButton3Click(Sender: TObject); begin UniButton3.JSInterface.JSCallGlobal('localStorage.removeItem', ['K1']); end; All the Best LocalStorage2.zip
  23. Thank you Sherzod for the fast reply, But to display the value on UniEdit1.Text Nothing !?
×
×
  • Create New...