Jump to content

Jean-Marc Kiener

uniGUI Subscriber
  • Posts

    220
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by Jean-Marc Kiener

  1. I have to create an assistant/wizard who take the user step by step (ca. 5 steps) through some forms (<<Back - next>>) to make an order. What is the best approach to achieve this? Put all on one form and work with a PageControl? Does this not results in hard to maintable code? Because it tends you to have all components, form logic and other buisness code in one form unit. You must have a large amount of self discipline to write clean code. Mostly i tends to “If then else..” orgy in event methods. Work with one Mainform and frames.? That's better because you can write code for each frame. In this project the mainform is just for showing the frames. Alle frames are inherited by one frame to share some design. Work with different forms? If you have to do a hybrid app that is the way you must go. You can achieve a Model-View-Controller pattern. It is the highest degree of separating form code from a form, because you have to make always two visible forms (one with unigui desktop and one with unigui mobile). So the code for steering the forms should be separated from the visible forms because you do not want it write twice. Since we decided not to go with a hybrid app, this approach is not necessary. But it is an nice and clear approach. Another approach? I try to find out how to organize my code so i have a clear approach but not that much overhead.
  2. Some databases can inform you when per example data in a table changes. You also need dB components who can handle that. Devart sdac components web page should be a good starter.
  3. Maybe because your printer has different standard format then A4, so the page is rendered to this format. Some printer has US Letter Format by default which is slightly smaller then A4.
  4. TIm helped me: you have to adjust the javascript code behind the TUnimHTMLFrame.HTML propertie to get work that on another form/frame.
  5. At moment drag and drop works only on the mainform. This example from Tim works. I need to drag and drop files in another form or in a frame. Any suggestions? MobileUploads.zip
  6. @Tim has made a example of drag and drop with UniGUI Mobile. I will check it...
  7. Yes. I will use it in a iframe (p.e. 640px x 400px) in a website. And i will also use it on tablet and mobile in full screen. It is an kind of assistant you can go through step by step until the process is finished. On mobile devices we need of course no drag drop, we will use a file browser to get a list of file. On desktop we want to let the user drag and drop files from explorer/finder. My bosses want to use the mobile components everywhere because they looks and feels better on mobile and looks also nice on desktop. So i try to avoid the overhead of a hybrid app and want to do all the requirements with the mobile components. The only difficulties i have is to find out if i can handle both, getting files by drag and drop in al unilist/unidbgrid and getting files per file browser button. The rest of the assistant is exactly the same.
  8. Hello gurus, I want to drag and drop files from explorer/finder to a tunimDBGrid, TunimList or TunimDBList. Is this possible? I cannot find an example how to do this. Maybe Drag and Drop is not supported by UniGUI Mobile components?
  9. Mail address ramirez.carlos@yahoo.com seems not to work..
  10. Anyone that has been an experienced/advance ExtJS/UniGUI developer who is interested to be a "freelancer" or "contractor"? We are a company located in switzerland. I am a licensed uniGUI user for a few years and have 20+yrs Delphi skills. I have already made a few projects with UniGUI. We already started to modernize a existing web application. The actual web app was made with morfik and is running since 2008. Unfortunatly, morfik is not under further development. So we decided to bring the whole stuff to ExtJS. He or she will be working with me and my other freelancer who has already created the UX/UI Design for each form. The goal is to create the whole client in UniGUI/ExtJS. I will program the server part of the project. There are two ways to go: 1. Pure ExtJS (Sencha Architect) We are open to use ExtJS alone and feed the data vs. a rest service. I will take care of the rest services, you write the client. 2. UniGUI If we use UniGUI, then the there is no need for a rest webservice. I will then create the STP’s (Stored Procedures) for Get, Set and Delete data in the DB. You will then write the server part with UniGUI Datamodules and SDAC by yourself. We could you deliver a Citrix VM with Delphi, SDAC and UniGUI installed when needed. Anyway, Knowledge of "Sencha Themer" would also be an advantage. Possible for long term employment. Serious inquiry and accountable developer only, no spam or BS please, Thanks. regards Jean-Marc
  11. I need a rock solid file upload solution for uploading mostly bigger pdf,jpg and dwg files to the server. Mostly the files have a size of 2 MB to 40 MB. But there are also files until 4 GB. I want do this with uniGUI Mobile, because the app should work on desktops and on tablets. On Desktop the app is shown in a small iframe (640pxx400px). The app should look exactly the same, desktop or tablet. User can either choose files from a file browser or drag and drop a couple of files to an area. the solution should handle filenames from OSX and windows and linux and different languages (special characters conversion). Some basic questions: - Does Drag and Drop work on uniGUI Mobile? - Because there are sometimes more than 100 files to upload, i would prefer that only per example 5 files together parallel can be uploaded. (when a file is uploaded then the next file upload is started, but max. 5 at same time). Is this possible? - Does TunimFileUploader have these features?
  12. Does this code in MuploadSample.en.rar also work in Mobile application?
  13. And: https://docs.microsoft.com/en-us/azure/active-directory/develop/authentication-vs-authorization
  14. To start: https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow
  15. i would suggest to create a new connection at the beginning of UniGUIServerModuleHTTPCommand, something like Con := TZconnection.create // Create the connection object Try // configure your connection here, // then open Con.open; // Do your stuff here Finally Con.free End; I assume that each HTTPCommand event runs in his own thread. Each thread needs his own db connection. I would try it this way.
  16. I would assume that the problem is the MySQL connection. You connect once on the server module. I would recommend to create a new connection every time you send a sql statement to the db. Also some dB connection components needs a coinitialize construct every time a connection is created.
  17. http://www.e-iter.net/Knowledge/Indy9/000387.html
  18. Still not understood what Radcore is... A Framework based on UniGui?
  19. http://www.unigui.com/doc/online_help/api/uniPanel_TUniPanel_Create@TComponent.html If the parameter aOwner is set to a form, then the form will free the panels automatic if the form get destroyed. if the parameter aOwner = nil then you have to free the panels by yourself.
  20. If you works with different timezones then you should read https://www.delphipraxis.net/191522-utc-datetime-string-tdatetime.html
  21. In my opinion you should use one var (TDateTime) as StartDateTime and one var for EndDateTime. You should first put the fields StartDate and Starttime to a StartDateTime var and the fields EndDate and EndTime to EndDateTIme (Using EncodeDateTIme function or some other..). Then you can use all the functions from Delphi to calculate duration (MinutesBetween, HoursBetween, DayBetween etc.) the correct way.
×
×
  • Create New...