Jump to content

Wicket

uniGUI Subscriber
  • Posts

    208
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Wicket

  1. I have tried but I can't pin point the issue. It happens often enough that it will cause a real issue for my customers. Any ideas? Sent from my Pixel using Tapatalk
  2. I don't know if this helps, but I get the same error when i rotate the device whilst viewing a pdf. I am currently using an iPad. It seems it's only reproducible if you rotate while the pdf is loading from a previous rotate. This is using the demo code, so i guess is it's something to do with the onshow event, as this is when the pdf is loaded for some reason. I'm going to swap this out to load the pdf on form create to see if it helps. Sent from my Pixel using Tapatalk
  3. Hi Delphi Developer, Thanks for giving me the code for the work around - this now allows me to still "save to home screen" as before and launch the app into safari.- exactly, as per the stackoverflow answer. If anyone comes across this I added the code above on my login screen uni events > window before init. It works exactly as expected. Lets hope apple fix this issue ASAP! Thanks once again!
  4. Hi Guys, I have just come across a fairly large issue for myself, and probably others. I have just upgraded my ipad air to iOS 11, and now the camera does not work - when launching "a web app" from your home screen, the camera appears but it just shows as a black screen. It works as expected if you access your application via a Safari tab (web broswer), just not when you open it via a bookmarked application added to your home screen. This is a large issue, as customers like and use the application as an app - it opens into its own full screen window. Here is some background reading from stack overflow - https://stackoverflow.com/questions/46228218/how-to-access-camera-on-ios11-home-screen-web-app It seems their isn't much anyone can do - so I guess I am asking in vain - Anyone have any ideas? The only thing I can think of is using firemonkey ios application and having a TBrowser to host the web URL, unfortunately I do not have the mobile add on for delphi professional. I would be really thankful if someone could test this for me, I just need to know if the camera is still accessible (eg not just a blank screen) (Then I can consider buying the mobile add-on for delphi) Thanks for any help. *Edit1* - does anyone know if it's possible to manually remove meta tags, one solution to this problem as per stack overflow is removing <meta name="apple-mobile-web-app-capable" content="yes"> so your 'app' runs in a normal Safari tab, where getuserMedia is accessible. This is really quite a serious issue for me and my customer base. *Edit 2* I am using FileUpload.Execute; to access the camera I am currently using uni gui version 1.0.0.1420
  5. Thanks for the info Peter! Sent from my Pixel using Tapatalk
  6. Peter, does running the application on a separate sever from the database effect performance much? Do you use SSL on you application server, if so does this mean the data served up to it from the database server is encrypted also? I am slightly concerned if out my database on a separate server it will be vulnerable, as only my app server will have SSL. Sent from my Pixel using Tapatalk
  7. Thanks for some advice adragan, a few things for me to think about now. Looking forward to hearing about the load balancer! Sent from my Pixel using Tapatalk
  8. After some thought, would it be such a bad idea to have one application server , then have a different database server, this way SQL server would be on its own server and I could essentially add more database servers as needed. Then the application server only has to worry about the application, not the DBMS. This to me seems like a viable option splitting out concerns , may cost more , but long term is more scalable. Anyone have any thoughts? Sent from my Pixel using Tapatalk
  9. If your not planning on using SQL server express for production, then it will cost you, as you will need a SQL server licence option. You can either pay for a standard licence per core , or per CAL. If memory serves me correctly I'd you have more than about 30 users , it's cheaper to go per core, but don't quote me on that. Some providers offer SQL server web which is about 30 GBP per month for a 4 core CPU. This is probably your best option. Hope that helps. Sent from my Pixel using Tapatalk
  10. **edit ignore this post - posted in haste** I have just seen the client demo - UniEdit1.ClientEvents.ExtEvents.Values['change']:='function(sender, newValue){UniClientEventsDynamicClient.UniEdit2.setValue(newValue)}'; if anyone does come across this I can confirm this works, AGrid.ClientEvents.UniEvents.Values['pagingBar.afterCreate']:='function pagingBar.afterCreate(sender){sender.items.items[10].hide();}';
  11. Hi, On the create of all of my forms I have a function which loops over controls to find all UniDBGrids, so I can have one function that sets up the grids, so they are all the same. Is it possible to hook up ClientEvents at runtime, eg AGrid.ClientEvents.UniEvents := xxx I want to be able to hook up to Ext.toolbar.Paging [pagingBar] function pagingBar.afterCreate(sender) { sender.items.items[10].hide(); //hide refresh button } This will allow me to add this in one place, rather than 50 odd forms. Is this possible?
  12. Hi Guys, Just after a bit of advice about deployment. Here is my scenario.. (If I am ever lucky enough to have lots of customers for my application - this is a good problem to have!) Let’s say I own www.uniguiapp.com I am using a VM which can scale to a certain degree(I can add more RAM and CPU cores etc.) Lets say for now the limit of the server is 2 customers. I have my application deployed on IIS – Underneath an application pool I have a site for each “Customer” eg. www.uniguiapp.com/customer1 goes to the application and connects to customer1’s database (on the same SQL server instance) www.uniguiapp.com/customer2 goes to the application and connects to customer2’s database (on the same SQL server instance) Each folder on the file system has its “own instance off the unigui application, eg its own ISAPI dll (as each is treated as a different site, underneath the application pool) Now, this setup works well for me, everything is on the same server I can roll out updates and make backups easily enough. Now down to my question… However, the server only has a certain amount of scaling, let’s say I have maxed out ram/cpu and I now have a new customer, let’s say customer3. I would now have to purchase a new VM server to accommodate customer3. I would like to be able to have customer3's url of www.uniguiapp.com/customer3 , eventhough it is running on a different server. (with a different IP of course) I want to know if this is possible, and how to achieve it. Currently I have my server IP mapped to the domain name using a single A record, then my site in IIS maps to the correct directory. Can I achieve what I need by have another A record on the new server of www.uniguiapp.com/customer3 ? Apologies for the long post, and thanks for reading. Any advice is welcome.
  13. +1 I would also like to know how to implement this, if possible. Andy, did you manage to get this working?
  14. Swapped out the export component, and replaced with TMS FlexCell, ran a quick test and no crash/timeout on exporting from a dataset. This obviously means the EMS export component is doing something that the ISAPI module doesn't like. I haven't got the time to debug and need a working solution fast so this is the best option for me currently. If any does have any ideas please still post as I would eventually like to know why this was caused. Thanks, Dan.
  15. Hi Guys, Hoping someone can give me a little bit of help with a application crash/timeout using IIS. The below works fine using stand-alone deployment - this is only an issue in my production IIS environment. ekkkk (please help) This is reproducible every time I do the same operation - which is using a component to export a dataset to excel (the component is EMS Advanced data export) All I do is call execute on this component to take what I have in the dataset (5 records) and output it to excel. I have one modal form - with the export component and a grid - all code is local to the form, apart from the dataset which is located on a datamodule. This application has EnableSynchronousOperations := true; I am using SSL https 1.All records are outputted correctly to the excel file (xlsx) and the file exist where I expect on the file system. It opens perfectly well. 2.As soon as the .execute method is called, I immediately call UniSession.SendFile(_FilePath, ExtractFileName(_FilePath)); This also excutes and allows me to "download" the xlsx and the contents is fine. 3.It is at his point the application becomes unresponsive, I call modalresult := mrok on the form and nothing happens. This is the error I am getting from windows event viewer - A worker process '3856' serving application pool 'AppPool' failed to stop a listener channel for protocol 'http' in the allotted time. The data field contains the error number. Event ID = 5138 (strange as I am using https, not http) I can also see this event A process serving application pool 'AppPool' exceeded time limits during shut down. The process id was '3856'. Event ID = 5013 UniGUI log shows nothing It seems to just crash/timeout the session/instance of the application, not the server - once i hit refresh I can log back into the application. (obviously the issue will occur again if I try to export) Here are my IIS settings (should be exactly the same as per instructions from the deployment guide) https://www.dropbox.com/s/t51rlbogxd5cxkk/iis.png?dl=0 Delphi 10.1 Berlin Unigui Complete 1.0.0.1420 Thanks for any help, Dan.
  16. Hi Mohammad, It's great we have people like yourself in the UniGUI community to share knowledge and help others. Personally, I would probably prefer a pdf.
  17. Hi Mohammad, You helped me out on a mobile layout, which I spent hours trying to do, so again thanks for that. I would be willing to donate for you to create a comprehensive guide on layouts, from real basics, like what NOT to do. Also including a basic overview on best practices on where to add, and how to interact with CCS with Delphi controls. Perhaps start a new thread to Hague interest. Coming from a Delphi background I can echo the fact that the only thing I really struggle with is layouts. Sent from my Pixel using Tapatalk
  18. Hi Mohammad, I really appreciate you taking the time to help me out, and probably a lot others with this solution. I will look over the solution, so that I can get an understanding of how you've implemented it. Thanks again, Dan. **EDIT** Looks great - I can see how you have done it - looks like I have a lot to learn about layouts!
  19. I have found this , seems to be exactly what I need , however I can not see a way to implement this, any pointers? https://stackoverflow.com/questions/15781916/creating-sencha-touch-2-app-dashboard Sent from my Pixel using Tapatalk
  20. Hi All, been playing around and not really getting very far. I just need to be able to make a image/glyph (either or) stretch to fill the button. The image below shows my result. Is this the correct way to go about things, or is their a better way? Any help would be great. https://www.dropbox.com/s/qopg8qkcw2f7ntr/2017-12-28_15-18-43.png?dl=0
  21. Hi All, I am working on a project that consists of a 'office' application that manages data that can be seen and edited in a 'mobile' app - I have used both Sencha and SenchaTouch. Now, all of my business logic is more or less done, and it is easy to make the office app look ok, as its a standard web application with grids and forms (as per delphi vcl really) So, I am now looking and making the mobile application look good and feel better. (The mobile application will mostly be used on a iPad, and sometimes used on a iPhone) So I need to make the menu work and look OK for both platforms. I am trying to implement something like the attached file. What would be the best way to go about this, as a starting point? I am currently using a TUnimList to create a list of menu items, that I can browse to. This works OK(ish), but the user experience would not be good. I know this is a very vague question, but I am struggling with inspiration and how to implement. I am using sencha-touch theme, it doesn't need to be fancy just functional. Any other ideas are welcome, perhaps even some screen shots of what you are working on? Thanks, Dan. **EDIT** - I am trying to achieve this using client side alignment
  22. Wicket

    Mobile demos

    FYI - I was prompted to upgrade my android version today on my google pixel to the latest android version (8.1 (Oreo)) and it now works as expected. (I wonder why?!)
  23. FYI - I was prompted to upgrade my android version today on my google pixel to the latest android version (8.1 (Oreo)) and it now works as expected.
  24. Wicket

    Action OnUpdate

    Is it by design that action OnUpdate is not called? I use OnUpdate in vcl apps quite a lot to set state of action, and I looks to me that the event is not called within unigui, can someone confirm that this is the case? Thanks , dan Sent from my Pixel using Tapatalk
  25. I also had the same issue a week or so ago - (it occurred when I upgraded to the latest version of VMWare, which did change some of the VMs compatibility settings) I also had the same concern - What happens if the licence server goes down? Is it a case of contacting support?
×
×
  • Create New...