Jump to content

All Activity

This stream auto-updates     

  1. Past hour
  2. jarto

    SMS and MORMOT

    Gonna have a look at that SmartMobileStudio Client that is in mORMot Git.
  3. Today
  4. Roberto

    SMS and MORMOT

    Actually, if this could be made to work, it would be a VERY nice solution.
  5. Roberto

    SMS and MORMOT

    I've created a VM with an old version of Mormot (2016). Tomorrow I'll try to compile the same project on the VM with SMS 3.1. If that fails, will try to download an old SMS version and try that on the VM. Will report back.
  6. Roberto

    SMS and MORMOT

    Today I ran some tests with SMS3.1 and a Jan 2018 version of Mormot. I coppied the SynCrossPlatform*.pas files from ...\mORMot\CrossPlatform to C:\ProgramData\The Smart Company\Smart Mobile Studio\Libraries Opened the following p[roject in SMS 3.1 : ...\mORMot\SQLite3\Samples\27 - CrossPlatform Clients\SmartMobileStudio 17 compiler errors - things like : Syntax Error: Unit "SynCrossPlatformREST" referenced in unit "mORMotClient" not found [line: 26, column: 23, file: mORMotClient] Do SMS Projects automatically see .pas files in the ...\Smart Mobile Studio\Libraries folder? Note that I ran \Samples\27 - CrossPlatform Clients\SmartMobileStudio\www\index.html in the browser. It works - but only with an old version of the Project14ServerHttpWrapper.exe Server. I'll attach the .exe - needed if anyone gets the project to compile. Project14ServerHttpWrapper.exe
  7. Yesterday
  8. MikeR

    Recommendations for Graphics work

    Did some preliminary research. Here is an example of 2-way comms between a C# Winforms program and an embedded HTML-script-capable browser window: https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.webbrowser.objectforscripting?view=netframework-4.7.2 I ran this code in VS2017 and it works just fine. Video attached. 2-way comms_20181210160234.mp4
  9. jarto

    CSS Resource Files

    @DavidRM Can you send me a zip of the whole project to jt at smartmobilestudio.com, so I can have a look what's going on?
  10. DavidRM

    CSS Resource Files

    I just did it again. I right-clicked on the CSS file in the "Resources" tree and chose "Remove". I right-clicked on the tree again and chose "Add", then "Resource Files..." Selected my CSS file. I right-clicked on the newly re-added CSS file in the Resources tree and see "Make Item Internal" which seems to me to be a flag that the project is considering this file an external file. I do a build. The correct CSS file is added to the "www\res" folder. I edit the CSS file using Notepad++. I do a build. The CSS file in the "www\res" folder is NOT updated. I DELETE the CSS file from the "www\res" folder. I do ANOTHER build. The CSS file added to the "www\res" folder is the ORIGINAL CSS file. NOT the edited one. The CSS file, though seemingly marked as "external", is being stored in the project file (I guess). And isn't updated until I do another Remove/Add sequence. -David
  11. petermm

    CSS class name vs StyleClass property

    What I've found now is, that the <link rel="stylesheet" type="text/css" href="res/app.css"/> was missing in index.html. Maybe that was because the project includes a "Custom Template" that loads another CSS for some DHTMLX components used. I've added link rel="stylesheet" type="text/css" href="res/app.css" to the Custom Template now and the problem seems to be gone 😊
  12. Roberto

    SMS and MORMOT

    @EWB - you're saying the latest SMS WILL work with Mormot version 18 ?
  13. Roberto

    SMS and MORMOT

    @EWB Great - thank you. Just downloaded the trial. Will have a play in the morning (nearly 11 PM here).
  14. Roberto

    SMS and MORMOT

    @jarto Yes - I do. Will give it a try later 🙂
  15. jarto

    SMS and MORMOT

    @EWB Thank you a lot. I'm going to also have a look.
  16. EWB

    SMS and MORMOT

    You can invoke a webservice created with MORMot to perform the authentication and call some services, thanks to suberb work by Arnauld Bouchez http://blog.synopse.info/post/2014/08/11/CrossPlatform-Clients/SmartMobileStudio, interface-based service can be accessed via a SmartPascal for instance, this classes are 100% smart pascal code compatible, just to prove the power the smart pascal. You can use even the SMS Basic version, but you don't have support from the desginer, you basically have to create the views and binding using the controllers (smart units), the point is you don't need to pay the Enterprese edition to consume mORMot services, of couse the professional editions is recommended. I can't believe SMS didn't put this feature info into https://smartmobilestudio.com/feature-matrix/, IMHO it may be a good selling point for SmartMobileStudio. The super-robo-architect AB has designed the units for months... I still can not believe it today, SMS didn't give due value to the super-robo-architect. Some months writting some the lib, the units will be generated directly from the mORMot server, there is no package to be installed within the SMS IDE, there is no wrappers involved, the clients are 100% written in smart pascal dialect. to enable/generate the smartmobilestudio wrapper class, just go to http://127.0.0.1:888/root/wrapper and paste into smart mobile studio for news projects. Smart Mobile Studio with mORMot is very interesting!
  17. jarto

    SMS and MORMOT

    Probably the Client -Server area is best. There are discussions there about RemObjects too. When you do a post, do you see this
  18. Roberto

    SMS and MORMOT

    OK :-). I wrote some mormot exampls inDelphi earlier this year for my Delphi user group. They are versions of the MORMOT examples from the mormot SQLite3/Samples folder. What I'd like to do is to see if I can convert them to SMS. How do we go about posting source code on the forum? Also - is there a more appropriate plce than the "Pre-Sales" area ?
  19. jarto

    SMS and MORMOT

    It's definitely best if we try to work on this here in the forum. There are others who know more about mORMot, so we can pool our collective wisdom here.
  20. jarto

    CSS class name vs StyleClass property

    @petermm Have you loaded your css-file like in this thread: https://forums.smartmobilestudio.com/topic/4794-css-resource-files/?tab=comments I doubt the project history has anything to do with this. If you can't solve this, feel free to e-mail me a zip to jt at smartmobilestudio.com
  21. Roberto

    SMS and MORMOT

    Good idea Igor - will give it a try.
  22. petermm

    CSS class name vs StyleClass property

    The problem is, that methode #1 (use custom theme and add css) does not work for me. As mentioned before, all changes to my Custom CSS are ignored at runtime. I guess it has to do with the project history (It is one that was build with SMS 2.x some years ago). Maybe the app.css file is located at a wrong place (...\www\res at the moment) or the initialization sequence is not correct for some reason... Don't know where to look next at the moment.
  23. Igor Savkic

    SMS and MORMOT

    You can use SMS trial for the tests.
  24. Roberto

    SMS and MORMOT

    Happy to help you with mormot stuff jarto. But I'd better not clog up the SMS support group with mormot info. If you can PM me with your email address I'll send you some examples.
  25. jarto

    CSS Resource Files

    As you use the default theme, it gets copied as res/app.css every time you compile. Also, the compiler adds this to the head of the html-file: <link rel="stylesheet" type="text/css" href="res/app.css"/> If you write your own styles for your components, you can create a separate css file just like you have done and use it with TW3Storage.LoadCSS or the function I wrote above. They both add the same kind of stylesheet-link to the html-file. I can't reproduce the caching. Let's see if we are doing everything the same way. I added MyTestControl.css to the Resources section. The file itself is in the project's own folder and NOT www/res. Once I compile, the file gets copied to www/res/MyTestControl.css During startup of my app, I load the css with TW3Storage.LoadCSS. I run it and see my style. The css-resource is currently an unknown type for the IDE, so I can't edit it in the IDE. I open the file in Notepad++ and change something + save. I hit Compile again and Execute and I do see the changes that I made.
  26. jarto

    SMS and MORMOT

    Yes you can. And don't think that you may waste my time. It's also a great possibility for me to learn about mORMot.
  27. Roberto

    SMS and MORMOT

    Oh, and if I purchase SMS, can I download earlier versions from the web site? Thanks
  28. DavidRM

    CSS Resource Files

    This is what I'm doing: procedure TApplication.LoadPBTCSS; begin TW3Storage.LoadCSS('res/PBTerm-NodeJS.css', procedure (const FromUrl: string; const ObjectHandle: THandle; const Success: boolean) begin if success then Writeln('PBTerm-NodeJS.css loaded.') else Writeln('Error loading PBTerm-NodeJS.css.'); end); end; However, how does changing how I call the CSS load solve the problem that the project is caching the CSS file? I update the CSS project file, I do a build, but the updated CSS file is *not* being copied into the new build. -David
  1. Load more activity
×