Jump to content

andersa@ellenshoej.dk

Members
  • Posts

    144
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by andersa@ellenshoej.dk

  1. If you want the user to be able to customize a report, or build a new report from scratch via a web page, you must build a custom report designer using html/css or UniGui components. It would be hard to do.
  2. Fix Error Insight.. Oh God the squigly lines, they hurt so much!
  3. Not easily. You can use html in the caption though if I remember correctly. So you can use an img tag to add any image to the caption. This doesn't work in VCL mode unfortunately. I believe it is actually more of a limitation in what image types you can add to VCL buttons than it is a limitation of Ext JS.
  4. From - http://httpd.apache.org/docs/current/mod/mod_isapi.html It will not work on linux.
  5. Use TUniURLFrame and put the url to the pdf in the URL property.
  6. I was thinking about what possibilities there are for running the same uniGUI app on several virtual hosts mapped to the same ip. I want to be able to display different data for each virtual host. Is it possible to see what host name the user has input into the address line in his browser? If so at least for a standalone server it should be pretty straightforward to do. IIS might be a different story. Edit: I have done some testing, and it seems like this will work. The UniSession host parameter seems to contain the host header of the http request. In theory I should be able to use this information to trigger which back end data is presented to the user and even have separate authentication options for each host.
  7. The dll is not sent to the client, so it does not matter how big it is. It does not have any effect on the performance if you reduce the dll size. You are probably wasting your time trying to fix this non-issue.
  8. Google translate for the win.
  9. Just talked to a guy from our distributor. He confirmed a new edition this fall, but didn't have an exact date yet. Edit: He sent me an email. He says August or September. Nothing unexpected obviously.
  10. Not sure what you are asking. Are you refering to storing data on the client, like in a cookie, which is then used to fill out the form? QuickReport works as well. It is a bit troublesome in ISAPI mode though. It is better to separate the reporting out into a background service that the web interface calls. None. You can only use the components supplied with UniGUI. There are a couple of example extensions made by users, which you can download in one of the other subforums, but no thirdparty packages. Keep in mind that this is still beta software, although it is stable and featureful as it is. The key thing to understand is that the components are designed to use the Ext framework from Sensha for the web part. I believe that the goal is to wrap as many Ext controls as possible in UniGUI itself, leaving little to be added by third party developers. To create a custom component, you would both have to implement the custom VCL part, as well as an web implementation from scratch. Quite a chore, I would say, and I don't see much reason to do this. Right now the idea is to keep as high feature parity between the VCL end and the Web framework as possible, but this could possibly change. There has been some discussion about possibly losening the focus on the VCL framework, in order to speed up development of the Web part, since this is the part that most people actually need. The VCL part of Unigui primarily serves as a way to design the Web layout of the forms. The people that actually plan to deploy both a VCL and Web version of their applications seem to be not that many compared to how many that only needs the Web framework. I should let Farshad answer that one.
  11. In our company we just talked about our Delphi upgrade plans. Now it seems there is a new version of Delphi every year after Embarcadero took over. Has anyone heard any roadmap for the next edition of Delphi after XE2? New features? Estimated release date? We are still running D2009 and I am beginning to see some real incentives for upgrading. Especially since I am using generics a lot now and the D2009 generics implementation is somewhat rough around the edges as places.
  12. Browsers can never access the client file system! This is a deliberate browser limitation (Internet Explorer, Safari, Firefox, Chrome, doesn't matter which browser) to ensure client security. As others have suggested, you can make files available for download, but it is the users choice to download the file, by clicking on it and saving it and the user has to manually double click the file to execute it afterwards. It is impossible to automate this from the server code.
  13. Well it seems at least one person wanted to browse server files. The reason for the impossibility of browsing the client side file system is that it is a browser technology limitation. It is not something specific to uniGUI in any way. It would be a major major security vulnerability if server code could access client files, so html/javascript simply doesn't allow it. There has been talk of a limited javascript api for it, but nothing solid has materialized.
  14. Just do what you would do in a regular VCL app. Use findfirst, findnext, etc.. There are no shell components in uniGui.
  15. http://forums.unigui.com/index.php?/topic/1039-quickreport/
  16. I have the same issue and use case is pretty much the same, accounting. Similar behaviour is requested for grid cells. I actually asked about this quite a while back, but there didn't seem to be concensus on this being an important feature.
  17. 1. Grid editors will be part of 0.88 beta release. A pre-beta release can be downloaded from the beta forum. 2. You could use a dataset lookup field that converts the field to a boolean value. 3. I am guessing you want to be able to create grid columns dynamically with grid editors. I don't know if this is possible. I have not tested it. 4. Again I would suggest a lookup field to do the conversion. Hope I got a least some of that right. Very hard to understand.
  18. You would need some other way to design the forms if you skip the VCL mapping. Intraweb has TIWAppform, which I don't know how they implement, but at a glance it kind of looks like you put components on a datamodule. Some reporting applications use external designers. My point here is that maybe it would be just as much work constructing a designer for a pure web uniGUI, compared to reusing VCL. But yes, in principle I agree. The VCL interface is not really that useful in general. I would probably prefer to build a multitiered solution and tie a real VCL interface to it for Windows apps and create a pure web interface for web users. One place where I think the VCL interface is a bit handy is when it comes to prototyping and testing stuff, but then in the end you actually still need to test in a browser to make sure everything works.
  19. Some routers do not support loopback connections. Have you tried connecting from a computer that is actually out on the internet?
  20. This is dangerous in my opinion unless you know for sure that TADOConnection is thread safe. Two queries could potentially interfere with each others data while they are being executed unless the TADOConnection takes special care to protect from this scenario. If you implement some kind of locking mechanism to ensure that only one thread can use TADOConnection at the time, then it would be safe. But then different sessions may have to wait for their turn to use the database. All considerations that you would have when using a database from a multithreaded delphi application (using TThread typically) also applies to uniGUI applications. Montri's suggestion of keeping all DB access out of process for instance using Datasnap is very good and definitely worth consideration. Yes, but again it may not be safe to use TADOConnection in a multithreaded environment. I don't have a solution to this.
  21. Wow. I need some eye bleach after seeing that.
  22. You are exactly right and it is definitely an issue. The safest and easiest option is to use MainModule. If you use ServerModule, losing connection to the database will probably be the least of your issues. Each of the MainModules run in separate threads. You will need to make sure that all data manipulation that you do in ServerModule is thread safe so each session is isolated from each other. With databases this can be a nightmare to handle. The correct way to do it is probably some kind of middle way between these options. For example you could have the ServerModule create a pool of datamodules that each MainModule can borrow in turn. If you run out of data modules in the pool your client session will have to either wait a bit for a data module to become available or the operation has to fail in some predictable manner. Try to make data access operations proceed as swiftly as possible so there is least chance that a client will have to wait.
  23. How do you expect this to work? Is the intention that you click on a button in your browser and then excel opens? That will not work. Your browser can not open excel. If that was possible, any web site that you visited would be able to open excel on your computer. That would be a major security vulnerability. Maybe I am misunderstanding what it is you are trying to do.
×
×
  • Create New...