Jump to content

corneliusdavid

Members
  • Content Count

    620
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by corneliusdavid

  1. Thanks for sharing your troubles--it'll come up in a search someday, I'm sure!
  2. corneliusdavid

    Android 11 Support in 10.4.2?

    No, the SDK (Software Development Kit) contains tools to support various APIs (Application Programming Interface). The one that comes with Delphi 11 generates Android apps that run on my Google Pixel running Android 11 (API 30).
  3. corneliusdavid

    TListView OnItemClick problems

    True, but digging through the sub-properties to get what I want is so much more work than simply grabbing the value from the memory table to which it's attached. There might be times when this is necessary but I'd much rather use LiveBindings get the original value from the table. By the way, the working project is on GitHub under the name, AppPaths.
  4. corneliusdavid

    Interbase Trigger

    Can you show the table structure or at least the INSERT statement that would trigger this? I suspect it might have to do with New.ITEMNO as that's filtering out the records for which the UPDATE statement would work with.
  5. corneliusdavid

    TListView OnItemClick problems

    I checked the difference in my form and no properties changed from what works now and what didn't the other day. I'm wondering if simply changing a property, compiling, then changing it back activated something in the compilation that should've been enabled in the first place. I've seen this once before in a different component (I don't remember which). I still want to learn more about the sub-properties of the TListItemDrawable item returned in the OnItemClickEx event but for now, ItemClick is working--and simpler to use.
  6. corneliusdavid

    TListView OnItemClick problems

    I tried OnTap but it doesn't indicate which item was clicked. I was playing around and enabled a property that got OnItemClick to work on Mac/iOS! Tomorrow, I'll have to go back carefully and hunt down which property did the trick.
  7. corneliusdavid

    TListView OnItemClick problems

    Thanks for this suggestion. There is an ItemClickEx event I can hook into that does work the same on all platforms and gives me the ItemIndex to the list view items. I guess I need to figure out how to get at the properties of the item. It's not a simple Text field but a variable list of objects and object types. I was hoping to be able to use something simpler.
  8. corneliusdavid

    10.4.2 Installer in GetIt

    It let's you download and start the install but you don't get very far into the installation before it asks for your license key. Once it determines you're not licensed for that version, it halts the upgrade process, then you're left to reinstall the previous version since the first step of installing an upgrade is to uninstall the current version. So yeah, if you know you're not licensed for the new version, don't try as you'll just waste a bunch of time. 😕
  9. corneliusdavid

    10.4.2 Installer in GetIt

    This is a generic title, visible to everyone. Basically, it should be read "Included with your Update Subscription if your subscription is up-to-date". GetIt is not checking to see whether you have an active subscription or not.
  10. corneliusdavid

    RAD Server change password for user

    I was just browsing through this forum and noticed that no one ever answered your question--at least not here. Have you tried looking at the source to RSConsole? It's a FireMonkey app in the source\data\ems\rsconsole folder.
  11. corneliusdavid

    json string to FD MemTable

    You want to copy from the Request to a table? Wouldn't load the Request, call a web service, then copy from the Response to the table? I'm not completely sure what you're doing but I've been working with REST services in Delphi 10.4 and find that hooking up a TRESTResponseDataSetAdapter to both the TRESTResponse and a TFDMemTable does all the work of parsing a JSON response string into a memory table for me--no code!
  12. corneliusdavid

    Replace default code template?

    Why not simply use one of the oldest features of Delphi, The Object Repository? Not only can you store a pre-designed Form Template for reuse but you can create an application and store the whole application as a Project Template. In your case, the project would simply be a single-file .DPR. Here's an old YouTube Video that explains how to use the Object Repository--the latter half demonstrates project templates.
  13. I've been using a small InterBase database for testing and learning purposes while doing some mobile and web development. I work on a Windows 10 machine and have a Windows 2016 Server, both with InterBase 2020 installed. My Windows 10 development machine has Delphi and I use the developer license for InterBase. I'm also playing around with RAD Server and have gotten a small module working in RAD Server on my development machine. I'm using my one production RAD Server license on my Windows server which requires encrypted databases. I finally found the reference on how to encrypt an InterBase database and want to copy this database over to the server so I can test it out on a simulated real-world environment. I created a backup of the database and copied the .ibk file over but using gbak with -sep and -eua_u and -eua_p parameters to specify the System Encryption Password and embedded user authentication is giving me this: When I encrypted the database, it had asked for the System Encryption Password and a Backup Encryption Password. I entered the same for both and it allowed it to be saved and encrypted. I also checked the box to not tie the SEP to the hardware. So why isn't this working? How can I develop an encrypted database on one machine and copy it to another when it's ready for deployment? Does the SEP have to match exactly on both machines? If so, I'll have to find another way to get the data over because I have no idea what the SEP is that RAD Server uses.
  14. corneliusdavid

    Logging from RAD Server

    I'm fairly new to RAD Server and while I have a small module working, pulling data from a database, I'd like to be able to do some logging. Sure, I can create another endpoint and dump stuff in a JSON result, but that's not really behind-the-scenes logging. And yes, I could create a log table and insert records in there. But there's an intriguing class in the EMS namespace called TEMSLoggingService. I can't find any documentation or examples that explain what this is for or how to use it. Anyone have any wisdom on this to share?
  15. corneliusdavid

    Logging from RAD Server

    This is perfect--exactly what I was looking for! Thank you! I'll have to spend some time checking out your THSLoggerRADServerDebugTargetQueue class. That looks like it could useful as well. Thanks again!
  16. corneliusdavid

    Logging from RAD Server

    I looked in DocWiki but could not find it. This is a start, albeit not much more than viewing the source. Thanks for the link!
  17. corneliusdavid

    How to enter a float (currency) in TrzDBNumeric??

    Haha! It's caught me once or twice, as well. 🙂
  18. corneliusdavid

    allow cut & paste of numbers only..

    That's what I thought. LOL!
  19. corneliusdavid

    allow cut & paste of numbers only..

    Use TRzDBNumericEdit to save yourself some time.
  20. corneliusdavid

    How to enter a float (currency) in TrzDBNumeric??

    Uncheck IntegersOnly in the Object Inspector.
  21. I don't completely understand what you're wanting to do. I'll expand your example from Quality Portal: type TMyThingy = class(TParentWidget) public procedure Foo(AValue. string); override; end; implementation procedure TMyThingy.Foo(AValue. string); begin inherited Foo(AValue) // other code end; So right now in Delphi 10.4, I can use Ctrl+Click or Alt+UpArrow on the word "inherited" and it will take me to the inherited class's implementation of Foo, namely TParentWidget.Foo in my example. Your request is that those same hotkeys also work on the word "override"?
  22. corneliusdavid

    Copy Encrypted InterBase Database to another machine

    Thanks. I have two instances of IB installed on my Windows server, both 2020. I had updated the RAD Server one recently with last October's update but forgotten to do the other one until you mentioned it. However, the most recent gds32.dll was already in the Windows\SysWOW folder. I tried IBConsole from the server again just now and it seems to be working again.
  23. corneliusdavid

    Copy Encrypted InterBase Database to another machine

    Yes, that's what I had done. Originally, as mentioned in the blog, I had IB XE7 and IB 2017 installed both listening on different ports. I installed RAD Server and its IB 2020, all using TCP/IP and without changing anything with the first two installs, could no longer access the XE7 or 2017 instances. I'm not sure what happened but I know it was installed in its own directory and was using a different port. Thank you very much for the detailed response on being able to use multiple instances of InterBase on the same machine. I'm pretty sure I followed rule #2 above. I'm accustomed to carefully configuring ports and have used multiple databases and even stand-alone and web-based servers on the same machine before, all without conflict. That's good to know. I had gone looking in the Windows registry for settings to see if something had gotten clobbered. One weird problem I noticed was when I tried to use a different style. I got more error messages until I switched back to the standard Windows style. I thought that was really weird as I can't imagine how the style would affect database connections. After discovering IB 2020 Developer does work with RAD Studio's IB 2020 on a different port, and after continuing to have intermittent problems with IBConsole, I switched to a different client database program, IBExpert, and it works flawlessly. So I think most of my problems stemmed from using IBConsole--and I will avoid using that completely from now on if I can. Thanks again for your response and thorough answers. I really appreciate it. 🙂
  24. corneliusdavid

    Copy Encrypted InterBase Database to another machine

    So, I was writing up a blog about this after I had completely uninstalled all InterBase versions that were not installed by RAD Server and wanted to grab a screenshot from one of the errors, so quickly reinstalled IB and created a quick test database to see the error but this time it worked. The only difference (that I can think of) was that I did not use a database alias to connect! My blog now proclaims that that you CAN use a development license of InterBase in addition to an InterBase instance using the production version of RAD Server. I had been using IBConsole to create and connect the databases and am now very leery IB aliases and any error message in IBConsole as I believe (and have seen reports elsewhere) that it has a lot of bugs. My one remaining question now is this: Is what I have done a violation of licensing? My home Windows Server is for development and testing so applying the developer license of InterBase should not be a problem. I don't have a use for the production license of RAD Server with a customer and would like to test applications with more than 5 users, so figured it wouldn't be a problem to use it on my Windows server alongside development databases. Perhaps that's not what was intended for Delphi Enterprise users but I did not see any restriction mentioned in the EULA on where that license could be used (except within the same country you purchased it).
  25. corneliusdavid

    Refactoring issue in 10.4.2 re: Rename

    Same here. In fact, using the Rename hotkey, Ctrl+Shift+E, while it works for pre-defined vars (sometimes) when activated on an inline var, acts the same as if it was activated in white-space, which oddly enough, brings up Incremental Search instead (as if you had it Ctrl+E instead). Fortunately, SyncEdit works really well (Ctrl+Shift+J).
×