Jump to content

Fred Montier

uniGUI Subscriber
  • Posts

    538
  • Joined

  • Last visited

  • Days Won

    83

Everything posted by Fred Montier

  1. This is an update to this example below in Chinese. I made some correction and soon I'll be providing a whole project and with English support. See other projects, examples and resources from us at https://unigui.com.br/ SourceOriginal.rar
  2. TMS Webcore troll. 😂 His going to make REST API from ground-to-up , manage the backend and frontend faster than with uniGUI only with Delphi bare bones ? Noway José !
  3. Thanks.. I was thinking something similar. Works perfectly. Thanks a lot !!!
  4. FYI... I know that maybe one solution is provide a stream at servermodule HTTP command. But I'm looking for a already made solution. Thanks again for any help.
  5. Is there any way to download a file without defined extension (empty, just the name) ? For some odd reason and integration to old equipment, a client is looking for this solution. That can be done in others HTTP servers. Works ok. But my client wants to use just uniGUI and not install another HTTP server just for this reason, in his cloudserver. For instance this works in my server: (Link Removed. Solved). Where "user", at the end of the URL is a text file without extension. I found: In uniGUI 'application/octet-stream' is generic name for unknown types which currently is not allowed. Look, it works with other servers. I just need to do the proper way in uniGUI. Otherwise... do some tricks. Thanks in advance.
  6. FYI: examples of JS libs that will have problems: WebIX, PDF Annotation. Both easy to use but different solutions and components to make it work in unigui. PDF Annotation Editor https://unigui.com.br/uniGUIPDFAnnotationEditor.html https://unigui.com.br/KanbanBoard-eng.html Webix Kanban
  7. Thanks for your help but I really do think you missed the point here. I'm talking about uniGUI + ext.js / components are related to original JS behavior. How to call, parameter to, from and at JS files and variants to components and the main to uniHTMLFrame and uniURLFrame. Other components have some use like uniLabel etc, but different behavior. THIS IS NOT DOCUMENTED in unigui or Ext.JS. That is the main issue. The correct way to invoke from external to Ext.JS/uniIGUi Controls using uniHTMLFrame/uniURLFrame and what are the rules BECAUSE they are not in the manual /documentation. Calling codes in functions JS, using code in the files and relating them to uniGUI. Make a search here and you will find dozens of posts complaining about this. Reading the uniGUI core source code have helped me more than any thing. This is the problem here. I'm trying finish my third book on uniGUI and I must provide clear rules and examples where to using every component, integrate to invoke, how/where to invoke, why use some params and whatnot's. If you have a table with this, would be of great help because for now, I have a case list with variants to "try and errors" scenarios. This is not productive. At the unigui's forum, EVERY single answer about those components and problems, have incomplete or not very clear solutions: "do this, do that answers". Not why's. And I know that is a problem solving/support forum, only. Keeping tracking in console won't solve those problems witha broader range of complexity. And I'm very aware of how to use the console. Note that I made clear that addjs example will not work in this case, but I need to explain clearly why it should work and not should work in all possible cases. Not guesses, as I'm doing. That is the second point, also. As I said before , and this is my overall solution, for JS libs that won't work, I use the Javascript after HTML body code with pseudo names to call the original functions, will work ok in most of the cases. But this behavior, NEVER happens in Intraweb using almost the same code. Debugging via console, the only difference is the Ext.JS libs being invoked. But the same test with the "almost pure" TMS Webcore, never have such problem either. This is the third point. Well, TMS webcore is really only JS. I've made a lot of projects using external JS libs (see my web site: https://www.uniguiexpress.com ) and some of them works as planned and other just don't. I have more than 200 projects that never worked due to issues to integration to uniGUI. No way. I have almost 300 projects that worked adapting to unigui with a lot of different JS libs. But in everyone, I had to provide some peculiar solution or adaptation to Ext.JS components. It is not just a matter of tracking objects and understanding scopes, and using another tools works on a more clear way. Stack Overflow is full of similar questions and most of them are solved with some tweaks between situations and browsers. JS is a shit language to debug for obvious reasons and the fact that you have different browser, compatibility issues and unknown problems make all problematic. FYI: using some libs in servermodule.customfiles, will never be readable. Using them in direct HTML in frames are way more reliable, in some cases. I DONT KNOW WAY ! and using unigui session.addjs , also in some cases, are the less reliable way to cover them all. Make a simple test case, with external JS file , declaring before or after makes some difference for some projects. See the youtube seminar on Quartex and the authors explain more about problems like that and how they are trying to solve it, you will have a tip on how adapting Ext.JS (uniGUI Solution) can be problematic, that is why I'm in favor of a "bare-bones" uniGUI option. FYI 2: If you have tried some stuff with CEF4Delphi, and inject direct JS code and pages, you don't have this problems because there is no Ext.JS libs and just pure JS code with the chromium engine. This is the closest you will get to Node.JS. So, it is really a "feature" related to use of uniGUI/Ext.js code to JS natural mess. And most of all, the way you call AjaxRequest, depending on some components has different behaviors and effects. Fourth point here. The last fifth point is the testcase project provided above, to explain WHY this won't work in uniURLFrame, will work with some small tweaks, and work in uniHTMLFrame in some cases. This will make clear to me where is the problem. Just try the code, switching component and see the "problemagic". Anyway, thank for your help.
  8. ...And of course I know about scopes (vars and functions) in JS files, imports and using iframes in html. The same example runs ok with uniHTMLFrame (except line b, of course), But as far as I can see, there is something messed up in Ext.JS/unigui the way it works. And without no documentation... mission impossible ! And using some libs, they can not load in uniHTMLFrame, as this particular projects that I'm, working now. I always got "function not declared" error and ajax error, object name ... etc. Even declaring in servermodule.customfiles, same thing. I can solve it partially with unihtmlFrame (for the JS problems) but the html code is note rendered the same as uniUrlFrame and the CSS got messed up. Just to avoid answers about things I have really looked into the past months.
  9. And I know that if I use the SCRIPT property in main form it will work in some cases but not in this particular case using frame and loading from uniURLFrame. And more, uniHTMLFrame has a behavior different (as expected) but injection in uniLabel, all this get very confusing. So, try and error won't get much of my content done. I have more than a hundred examples with JS adaptations problems. And boy, I have been studying this this like crazy for the last 2 years. Thanks in advance.
  10. I always had a problem with uniURLFrame uniHTMLFrame. I don't find documentation about their correct use in the uniGUI help nor anything similar in Ext.JS. There is no reference of when to use the JS name of the component, when to use "parent", "windows", "top" or "1#. bla bla bla". I've scoured the entire forum and always the solutions don't explain when and where to use these parameter rules or which components have restrictions or different behavior. This is really the serious problem in uniGUI as I usually spend literally DAYS in trial and error to find the correct combination to call the component's OnAjax or, the most problematic, access JS libs included in html pages. A trick I discovered is if a page contains a JS lib, it is possible to declare a function at the end of the page with the same parameters so that it is triggered BUT NEVER call the lib directly by the function name in uniGUI. Even declaring it in servermodule.customfiles doesn't work. Well, I have a problem where I need to SPECIFICALLY use uniURLFrame because these libs in my project do not work in uniHTMLFrame. So far so good, but I need to call the functions and if I use dynamic creation via frame in a unipagecontrols I can't find the correct way to call this javascript function declares in the HTML loaded in the uniUrlFrame. Note that even if I declare the libs I need in uniGUI and call the functions directly they are not read or recognized as code available in the external Javascript file (I declare it in the HTML code or in the uniGUI). Some work and some don't. In short, I made a testcase where the project loads a frame in a uniPageControl and declares a simple function. Note that it is executed directly in the button's event in the HTML code. But the correct way to call this function: A. UniURLFrame1.JSInterface.JSCode('myAlert()'); B. UniURLFrame1.JSInterface.JSCode(#1'.iframe.contentWindow.myAlert()'); C. unisession.addjs('myAlert();'); I know that this code above (c) will never work but , explain WHY !!!!! What are the limits on uniGUI. ExtJS and components scope for functions and JS Code ? And why some times you have to config a name to uniURLFrame/uniHTMLFrame using Ext.JS Functions ? If I just use uniURLFrame it will work and run the function, no problem. But I need to use it in a Frame and in an uniPageControl. That is reason of such approach. Problems on this testcase: 1-What is the correct way to call this function "myAlert()" in the HTML code ? 2-Where do I find the correct parameters to call these JS codes and why it doesn't work in some cases? This same problem have being posted at the forum with out any answers or only links to on-line manual where there are just name of properties , functions or methods without any content. FrameTesteCase.rar
  11. uniGUi Professional Video Chat is the perfect solution to integrate video chats to your apps using uniGUI. See all info, price and details at the link below: https://unigui.com.br/uniGUIVC.html Also, you can download a trial uniGUI app at the link above and see who it works.
  12. WhatsApp Multi Instances and uniGUI Video Chat Whatsapp is becoming the ideal social platform for many countries in Asia, Europe and Latin America to integrate personnel and promote business in a solution that is gradually being integrated with different forms of payment, resources and innovations to carry out commerce. However, one of its worst limitations is its integration with video conferencing and limitations both in terms of the number of participants and the integration resources to perform sales in video books. In this project, we integrated the possibility of managing several Whatsapp sessions in the same application and opening video sessions between them using uniGUI and a powerful javascript LIB called Jetsi for this operation. In this way, you can offer a product to your contacts, on your WA channels, and immediately invite them to participate in a video streaming promoted by you, showing your particular features. A great solution to have a third-party independent sales channel, server hosting or CloudServer contracting. Not even a domain is necessary. Here is all the source code for the WhatsApp Multi Instance and uniGUI Video Chat projects. Integrate and modify as you wish. Below, see the main features and resources. You can download a trial version of the Wa Multi Instances. Video Chat (trial and video) coming up in next few hours. See details https://unigui.com.br/WhatsAppMIuniGUIVC.html
  13. Sorry to announce here but few will see it in Code Samples. uniGUI Team , let me know if this is annoying. All info in the post above or at this link: https://unigui.com.br/uniGUIPDFAnnotationEditor.html
  14. Description This tool has a practical utility to integrate the alteration of already created PDFs (although you can create one from scratch, blank) for circulating documents in this format in a business environment such as companies, clients, projects, announcements, etc. The PDF Annotation Editor allows editing by adding elements to a created PDF such as indicative arrows, images, text panels, strokes (brush), QrCodes for references, Digital Signatures Images captured directly, saving the new PDF on the server or immediate download. It is a complementary tool for a layman to add simple elements to a PDF. IT DOES NOT REPLACE A PROFESSIONAL PDF EDITOR, because you can create any document and convert it to PDF these days. It has a PDF file manager on the server, making it easy to import and manage a large amount of files. Upload PDFs for immediate use and download directly or to a folder on the uniGUI server. Resources and Features Add graphics (images), text and shapes to PDF docs Manages PDF on the server Allows you to save direct download or on the server for future reuse Easily create server to embed in your app or a unique API. Allows you to generate QrCode to embed references in Doc (very used for complex documents that have been PRINTED that need to be searched in other online sources) Captures digital signature image and import its image to PDF (this is not certificates ! See videos) Print Manager (from uniGUI) It's not subscription, license... the code is all yours! No dependency on third-party components. USes JavaScript LIB PDF.JS (the most used). Only uniGUI and JavaScript code. Easy to use. All source code included. No hidden costs or fees. Yes, we offer consultancy for adapting any of these examples to your systems. Contact us to receive a quote. Please: THIS IS NOT A PDF EDITOR. Read carefully. This is a Annotation Editor to PDF documents. BE AWARE ! Outros filmes... https://www.unigui.com.br/pdfannotation/pdfannotation4.gif https://www.unigui.com.br/pdfannotation/pdfannotation5.gif https://www.unigui.com.br/pdfannotation/pdfannotation6.gif Se more info at the link below https://unigui.com.br/uniGUIPDFAnnotationEditor.html
  15. As far as I know, FULL sources is now available. Or am I wrong ?
  16. I mean, using other IDE instead Delphi for Python projects. Really annoying. But... maybe is just me... old dog to learn new tricks. But for scripting with P4D in RAD, is ok. But if you ask a Python programmer, majority never hear of Rad/Delphi/Pascal. They are all in their early 20. Lol
  17. I tried, is a "no go" to uniGUI. Maybe Delphi/Pascal. Tried for a whatsapp project, wasted time ! Better to use plain JavaScript. If your looking for binaries, can't see the point. If you looking for scripting integration to read made solution in Python, that maybe worth it. But you have a lot of components VCL scripting tools to pascal for decades. I see Delphi To Python to take some advantage to some well done projects. Also, good to use some examples not available in pascal but I can't really see any advantages at binary producing level. Since you can do the same in pascal, why bother ? OF course, there is trillion users of Python and projects. Go integrate a fingerprinter reader and you will have a Win32/64 DLL to integrate. The majority won't work, despite they say it will work. Had this problem, and they need to use it in Python, that particular fingerprint reader. No go. Using delphi, worked in the first try, Do it in Python or in Delphi. But I really made good use of some codes/projects in python converting to pascal. Another issue, with Delphi, we are spoiled programmer. Can see an IDE that even gets close.
  18. I think this is a very hard issue to solve due to the possibilities, demands and more urgent issues , and above all, Ext.JS dependency. uniGUI Team: Remove uniGU dependency (or make optional) of Ext.JS and make more compatible with pwa approach. Same things happens across all frameworks with UI focus. Even Embarcadero not bothered to make a full UI FMX compatible set of components to linux/unbutu. Just try it and see. Make a poll and ask how many users really make uniGUI apps to linux/Unbutu. Guess what, in stateful (unigUI, intraweb, Elevate, Komo, etc) categories, there is no much options available either. My two cents.
  19. If not solved, because those components are really a torn in my unigui finger ! There are some differences between these two components. UniUrlFrame, as far as I can see works with iframe. Some services and API have protection or different behavior towards it loads content. Try big services and you will see. No way Jose with uniUrlFrame, they block it . Of course, htmlframe wont even work at all. Anyway, there is no clear documentation on that. I follow this rule: Try HtmlFrame, not work ? Try uniURLFrame with code in its Html properties. Not work ? try direct url do external local file or url from API or service online. Same thing using JS function in codes. Works different in both components and we have to make some guess work. Worst calling ajaxRequest. Some time woth with window, parent, bobo param and whatnots. Can't see the rule. And why you sometimes should config ID to name the component with some codes and other not, to uniURLFrame, is beyond my imagination. With uniURLFrame, i discovered that you rename and call JS function in the HTML code loaded, works all the time but not directly from uniGUI in no command available. Some JS libs works, another does not works. Scope in JS is different from Pascal and works more bizarre. So, good luck with that. IF solved, please, reply.
×
×
  • Create New...