Jump to content

wsv01

uniGUI Subscriber
  • Posts

    58
  • Joined

  • Last visited

Everything posted by wsv01

  1. I purchased and am using the uniGUI solution for building web pages for customer portals. I did not purchase the mobile feature set at this time. I would like to know if the mobile feature set is able to access the phones features like IMEI number, address book, photos, GPS coordinates, etc. I looked through the mobile objects listed on the uniGUI web site and did not see anything that led me to believe this was the case. IF not, are there other ways to get at this information while still using uniGUI?
  2. All you have to do is create a new uniGUI stand alone application, add a menu, then add a couple items to a sub menu then run it in Chrome.
  3. When I create a new project and add a menu to the main form, then launch the application, I get a dropdown menu that has up/down arrows instead of showing the menu items when using Chrome. If I select another menu choice, then go back to the one that was not displaying correctly, it now shows the proper sub-menu items. This does not occur in Edge. I have only tried to do this with Chrome and Edge. I am using uniGUI 1.50.0.1480 and creating the application in Delphi 10.2. There was another post in July that may have had the same issue, but no real solution. I have attached two images. One in Edge and one in Chrome.
  4. OK, after several days of trying to figure this out, I finally viewed my main form as text and there it was staring me in the face!!!!! Script.Strings = ( 'window.close();') I cannot for the life of me know why I placed that into the Java Script property on the main form, but as you can imagine, when it was removed, the application ran without the message appearing. I'll never forget this one!
  5. I'm still trying to figure out why uniGUI is trying to close the browser window on startup. I had time to run my application on three different browser. IE11, Edge and Chrome. On IE11 and Edge, a window appears With this message The site you're on is trying to close this window. Do you want to close this window? "Yes" or "No" buttons. IF I click Yes, the browser closes and if I click No, the application appears and runs as normal. I launched Chrome and ran debugging and found that the <script>...</script> after the header actually had a window.close() command. It looked like this: <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Vendor Requistion</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=10.0, user-scalable=yes"> <meta http-equiv="content-type" content="charset=utf-8"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="expires" content="-1"> <link REL="SHORTCUT ICON" HREF="/cache/nas_vendreg_exe/87bL9D5OmE1027EDAB5/favicon.ico"> <link rel=stylesheet href="/uni-1.50.0.1480/css/uni-ext.css" /> <link rel=stylesheet href="/ext-6.5.3/build/classic/theme-classic/resources/theme-classic-all.css" /> <script src="/ext-6.5.3/build/ext-all.js"></script> <script src="/ext-6.5.3/build/classic/theme-classic/theme-classic.js"></script> <script src="/uni-1.50.0.1480/ext-unicommon-min.js"></script> <script src="/uni-1.50.0.1480/ext-sync-min.js"></script> <script src="/uni-1.50.0.1480/jQuery/jquery-1.11.2.min.js"></script> <link rel=stylesheet href="/ext-6.5.3/build/packages/font-awesome/resources/font-awesome-all.css" /> <link rel=stylesheet href="/ext-6.5.3/build/packages/font-pictos/resources/font-pictos-all.css" /> <script src="/uni-1.50.0.1480/jQuery/MaskedInput/jquery.inputmask.min.js"></script> <script src="/uni-1.50.0.1480/jQuery/autoNumeric/autoNumeric-1.9.35.js"></script> <link rel=stylesheet href="/uni-1.50.0.1480/css/uni-xtheme-common.css" /> <link rel=stylesheet href="/uni-1.50.0.1480/css/uni-xtheme-classic.css" /> <script src="/uni-1.50.0.1480/ext-unigui-min.js"></script> <style type="text/css">.x-viewport > .x-body {position:relative !important;}</style> <style type="text/css">body {overflow-y: hidden !important;}</style> </head> <script> window.close();;uniVars._extVer="6.5.3";_S_ID="_S_ID=87bL9D5OmE1027EDAB5";Ext.Ajax.setTimeout(1800000);uniSyncObj.errShow=true;uniSyncObj.errText="Connection Error";uniSyncObj.errRetryText="Retrying...";uniSyncObj.errTextColor="#0055AA";uniSyncObj.errAfterRetry=1;uniSyncObj.errLogTry=0x7ef4f2fa;uniSyncObj.licOwn="@@@@@@@@@@@@=";uniSyncObj.srcArr="XJoHutVO"; ... </script> <body> <div id="loading-mask"></div><div id="loading"><div class="loading-indicator">Loading...</div></div> <div id=body></div><noscript>This web application requires JavaScript enabled</noscript></body> </html> The debug text continues, but the rest is not causing issues. I then created a simple uniGUI standalone application with nothing but a button on the main form that ran showmessage('ok'). This time, looking at the debugger I got this: <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>New Application</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=10.0, user-scalable=yes"> <meta http-equiv="content-type" content="charset=utf-8"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="expires" content="-1"> <link REL="SHORTCUT ICON" HREF="/cache/project1_exe/APLNDGAwn81027EE02C/favicon.ico"> <link rel=stylesheet href="/uni-1.50.0.1480/css/uni-ext.css" /> <link rel=stylesheet href="/ext-6.5.3/build/classic/theme-classic/resources/theme-classic-all.css" /> <script src="/ext-6.5.3/build/ext-all.js"></script> <script src="/ext-6.5.3/build/classic/theme-classic/theme-classic.js"></script> <script src="/uni-1.50.0.1480/ext-unicommon-min.js"></script> <script src="/uni-1.50.0.1480/ext-sync-min.js"></script> <script src="/uni-1.50.0.1480/jQuery/jquery-1.11.2.min.js"></script> <link rel=stylesheet href="/ext-6.5.3/build/packages/font-awesome/resources/font-awesome-all.css" /> <link rel=stylesheet href="/ext-6.5.3/build/packages/font-pictos/resources/font-pictos-all.css" /> <script src="/uni-1.50.0.1480/jQuery/MaskedInput/jquery.inputmask.min.js"></script> <script src="/uni-1.50.0.1480/jQuery/autoNumeric/autoNumeric-1.9.35.js"></script> <link rel=stylesheet href="/uni-1.50.0.1480/css/uni-xtheme-common.css" /> <link rel=stylesheet href="/uni-1.50.0.1480/css/uni-xtheme-classic.css" /> <script src="/uni-1.50.0.1480/ext-unigui-min.js"></script> <style type="text/css">.x-viewport > .x-body {position:relative !important;}</style> <style type="text/css">body {overflow-y: hidden !important;}</style> </head> <script> uniVars._extVer="6.5.3";_S_ID="_S_ID=APLNDGAwn81027EE02C";uniSyncObj.errShow=true;uniSyncObj.errText="Connection Error";uniSyncObj.errRetryText="Retrying...";uniSyncObj.errTextColor="#0055AA";uniSyncObj.errAfterRetry=1;uniSyncObj.errLogTry=0x7ef4f2fa;uniSyncObj.licOwn="@@@@@@@@@@@@=";uniSyncObj.srcArr="XJoHutVO"; ... </script> <body> <div id="loading-mask"></div><div id="loading"><div class="loading-indicator">Loading...</div></div> <div id=body></div><noscript>This web application requires JavaScript enabled</noscript></body> </html> Notice that there is no window.close() at the beginning of the script. I've tried stepping through the application and cannot find out where this window.close() is being executed from. Any help would be greatly welcome. Note: I don't know if the licOwn= value is something private to my license, so I just replaced it with @@@@@@@@@@@@
  6. Sorry for the delay... I just uninstalled everything, restarted the server, moved my licensed standalone EXE to a folder and all ran as expected. Thanks for taking time to give me suggestions.
  7. OK, so this is most likely not a uniGUI issue, but I do not seem to have this issue with a standard VCL application. I have a MSSQL database table with a money type column. I have a uniDBEdit control wired to that money column. I have a TFDStoredProc wired to the database table. In that TFDStoredProc I have a persistent field pointing to the money column in the TFDStoredProc. In that persistent field, I have a DisplayFormat of $###,###.00. When I enter a dollar amount in the field on the screen of say 25000.44, the display format takes over and shows $25,000.44. When I try to save the data, I get an error stating $25,000.44 is not a valid floating point value for field xxx. Of course this is because of the "$" and the "," in the display format. How do I get those out of there before the post actually takes place or what properties do I set to resolve this? For whatever reason, I do not seem to have this issue in standard VCL applications. I has to be something quite easy to fix because I cannot seem to find any relevant info about it on the web. I tried a whole bunch of things with no success.
  8. It does not matter how many rows there are. In my own stupidity, I found the issue. On the form OnActivate event I called a procedure that opens the data set. When a form is simply dragged in any direction, it fires off the OnActivate event. Originally I thought it was something to do with the call back, but it really has to do with the form refreshing. I moved the procedure that opens the data set to the OnSHow event and all is well.
  9. A quick update. I think this has something to do with the callback to the window I have the data in. If I simply drag the window a little in either direction, the cursor is refreshed and pointed to the 1st row. I know it's something I do not understand with a window refreshing while there is an open data set in a grid.
  10. I am having this specific problem when trying to remove a row of data from an open cursor. When using this type of syntax attached to a button: MessageDlg('Are you sure you want to delete this record? ', mtConfirmation, mbYesNo, RemoveDocCallback); Then running a callback procedure like this with no code or code in it, the data cursor moves to the 1st row of data by itself. procedure TfrmViewUploads.RemoveDocCallback(Sender: TComponent; Res: Integer); begin end; Let's say there are 3 rows of data in a uniDBGrid shown and I select the 2nd row, then click a button that asks a MessageDlg like above. When Yes is selected, the cursor will move to the 1st row of data by itself. I am using FireDac and connecting to a MSSQL database and pulling data into the cursor via a stored procedure call. If anyone can duplicate this or tell me what I an doing wrong, that would be great.
  11. I'll try on different browsers later today and let you know what I find.
  12. Hmmm. I tried resetting IE 11 and fooled with some security settings. I'll have to keep working on that. The encrypted string that is passing some startup parameters to the application. If they are not there, the app simply tells the user that they are not authorized to use the system and gives them no menu to select from.
  13. I just found out another interesting thing. If I launch the app using a shortcut with my link in the URL field, I run into the error. http://localhost:8081/?id=95CD5F65341F311-4C80-986C-CFV807EB0B3S4EE59AEDWD6E4-4CC6-935A-F312DF2A7945 If I open Chrome, then paste the link into the URL, the app launches as expected. When I try the same thing using IE 11, I still get the same message of The webpage you are viewing is trying to close the window. Do you want to close this window?
  14. This morning I added debugging to my application so "see" exactly the steps it was taking. When run on my dev box, all works to plan. When I deploy the application to a customer server, things are not the same. When launched in IE 11, this message appears. The webpage you are viewing is trying to close the window. Do you want to close this window? If I answer Yes, the browser quits. If I answer No, the application runs as intended. I then launched Chrome and ran the same application, but when launched, Chrome simply closed with no message at all. So I opened Chrome and turned on debugging. (Ctrl+Shit+J), then launched the uniGUI app. This time, the app loaded as expected, but there was a warning message in the debug window of Scripts may close only the windows that were opened by it. Expanding the debug window I saw the line that caused the error. I pasted the top part of the debug text below. I looked on the web for solutions, but could not find anything that helped. <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Vendor Requistion</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=10.0, user-scalable=yes"> <meta http-equiv="content-type" content="charset=utf-8"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="expires" content="-1"> <link REL="SHORTCUT ICON" HREF="/cache/nas_vendreg_exe/IvxbEVfxWr1026C8C0C/favicon.ico"> <link rel=stylesheet href="/uni-1.50.0.1480/css/uni-ext.css" /> <link rel=stylesheet href="/ext-6.5.3/build/classic/theme-classic/resources/theme-classic-all.css" /> <script src="/ext-6.5.3/build/ext-all.js"></script> <script src="/ext-6.5.3/build/classic/theme-classic/theme-classic.js"></script> <script src="/uni-1.50.0.1480/ext-unicommon-min.js"></script> <script src="/uni-1.50.0.1480/ext-sync-min.js"></script> <script src="/uni-1.50.0.1480/jQuery/jquery-1.11.2.min.js"></script> <link rel=stylesheet href="/ext-6.5.3/build/packages/font-awesome/resources/font-awesome-all.css" /> <link rel=stylesheet href="/ext-6.5.3/build/packages/font-pictos/resources/font-pictos-all.css" /> <script src="/uni-1.50.0.1480/jQuery/MaskedInput/jquery.inputmask.min.js"></script> <script src="/uni-1.50.0.1480/jQuery/autoNumeric/autoNumeric-1.9.35.js"></script> <script src="/uni-1.50.0.1480/ext-treenode-plugin.js"></script> <script src="/uni-1.50.0.1480/unicanvas-min.js"></script> <link rel=stylesheet href="/uni-1.50.0.1480/css/uni-xtheme-common.css" /> <link rel=stylesheet href="/uni-1.50.0.1480/css/uni-xtheme-classic.css" /> <script src="/uni-1.50.0.1480/ext-unigui-min.js"></script> <style type="text/css">.x-viewport > .x-body {position:relative !important;}</style> <style type="text/css">body {overflow-y: hidden !important;}</style> </head> <script> window.close();;uniVars._extVer="6.5.3";_S_ID="_S_ID=IvxbEVfxWr1026C8C0C";Ext.Ajax.setTimeout(90000);uniSyncObj.errShow=true;uniSyncObj.errText="Connection Error";uniSyncObj.errRetryText="Retrying...";uniSyncObj.errTextColor="#0055AA";uniSyncObj.errAfterRetry=1;uniSyncObj.errLogTry=0x7ef4f2fa;uniSyncObj.licOwn="cmBucTtyZGlvYF5jKGRpXileamg=";uniSyncObj.srcArr="XJoHutVO"; Ext.application({name:"uniApplication",launch: function(){setTimeout(function(){Ext.get("loading").remove();Ext.get("loading-mask").fadeOut({remove:true});},250);Ext.BLANK_IMAGE_URL="/ext-6.5.3/build/classic/theme-classic/resources/images/tree/s.gif"; Ext.BLANK_IMAGE_SRC="<img src="+Ext.BLANK_IMAGE_URL+">"; TextMetrics=new Ext.util.TextMetrics(Ext.getBody());
  15. When I launch my application (stand alone test) using IE 11. I get the message The webpage you are viewing is trying to close the window. Do you want to close this window? When I launch it using Chrome, it just closes as soon as it starts. When I launch the server monitor, it runs normal for both browsers. It has to be something I am doing in the application that is causing this. Any ideas?
  16. +1 I fall in the over 60. It all started with dBase II.
  17. I just copied the whole thing to another computer and it worked as planned. I'm now going to work with the security administrator of the server I was trying to install things on and see what the issue could be. If you know of any tricks for the security side of things, please let me know. I will post back here with results of my findings once it has been addressed. Thanks so much for all your help!
  18. OK, while waiting for an answer, I did a test on my dev box and queried the ExtRoot value during the onActivate of my main form. I had to include the ServerModule to do this, but removed after the test. With the ExtRoot set to "[ext]\" I was returned C:\Program Files (x86)\FMSoft\Framework\uniqui\ext-6.5.3. I'm confident that the path is set to look in the correct location. I'm going to try this whole thing on another computer to see if it is some security thing on the one I'm having issues with.
  19. I only have one version... It was the one I purchased two days ago. Getting back to the ExtRoot property, if I set it to "[ext]", what you are saying is that I do not have to copy anything to the root of my application folder, correct?
  20. After the runtime package is installed, do I have to restart the computer? There was nothing that informed me of doing that and I saw nothing in the documentation either.
  21. No, the same thing happens...a wait, then timeout expired.
  22. I did install it. The install package name was FMSoft_uniGUI_runtime_1.50.0.1480.exe. So here is what I have: C:\MyApp is the folder than contains my stand alone MyApp.EXE. When run, four new folders are created. (cache, files, log, temp) I'm guessing that when I installed the runtime package it created this folder: C:\Program Files (x86)\FMSoft\Framework\uniGUI\ext-6.5.3 So, without copying anything under the C:\Program Files (x86)\FMSoft to the c:\MyApp folder, I launch MyApp.EXE and I see the server icon in the lower right appear. I them open up the server manager and try to select the Manage --> Server Monitor. After a long wait, the browser page comes back with Timeout Expired.
  23. I know this is very trivial, but I just purchased the Pro version and am trying to install/run my first app on a computer other than my dev box. So I took the option of copying the ext-6.5.3 folder from the runtime install folder over to the root folder of where my simple stand alone EXE is located. My ExtRoot property is set to ".\[ext]" The documentation states I have top now rename this folder to the Ext JS version and build. How do I know the build number? I trued renaming this folder to ext-6.5.3.1429. I don't know how to obtain the actual EXT JS version and build number. When I run my stand alone server I cannot access the \server stats window. It just times out. Help!
  24. Wow! I really feel dumb on this one! I guess I just need to know why the design time DateFormat is not working for me.
×
×
  • Create New...