Jump to content

Javier Tarí

  • Content Count

  • Joined

  • Last visited

  • Days Won


Javier Tarí last won the day on October 15 2020

Javier Tarí had the most liked content!

Community Reputation

20 Excellent

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Javier Tarí

    RAD Studio 11 Alexandria is now available

    The installer is failing for me. These are some details for my subscription; This is what happens when I try to install from the web installer or the ISO installer: Just in case, I downloaded the activation file from the licensing page: and tried removing the license from licensing manager, and leting the installer use the new one Result: Delphi 10.3 and 10.4 keep running with the license, but Delphi 11 won't install
  2. Javier Tarí

    Need help finding the IDesigner

    Works perfect; thank you very much
  3. Javier Tarí

    PlasticSCM, Delphi, Semantic merge

    Has someone tried PlasticSCM with Delphi sources? The semantic comparison seems awesome, but I wonder if someone has tried it already, and has found how good it is - or is not Thanks in advance
  4. Javier Tarí

    Database app good practice

    If you can, sure. I work everyday on the same project, for more than 20 years, and it can't stop evolving So no chance of rewriting projects here
  5. Javier Tarí

    Database app good practice

    Testing Greater Platform independency Long term, evolutive applications Same happens with DB-aware; you just have some DBaware components
  6. Javier Tarí

    Database app good practice

    Very far from it; just an appetizer, an starting point to get a feeling on how MVVM could work If you are looking for a true MVVM framework, this is not for you
  7. Javier Tarí

    Is someone using MVVM?

    Could you expand that a bit? Do you mean in Delphi we don't need it? If that's what you mean, wich would be in Delphi the pattern that gives us the same as MVVM in other platforms?
  8. One possible solution could be allowing a two-phase declaration: tPolar2D = record Radius: Double; azimuth: Double; end; forward; //keyword just to say there are methods to be defined later tPoint2D = record x: Double; y: Double; function ToPolar: tPolar2D; end; tPolar2D = record finalization function ToCartesian: tPoint2D; end;
  9. I'm deeply interested on this, and would like if anyone here is using/used homegrown MVVM implementations, and wich was/is your experience. Works fine? Is not woth the effort? Is the best since sliced bread? Please, share your experience Thank you!
  10. Javier Tarí

    Database app good practice

    There are no MVC or MVVM frameworks on Delphi, other than the DMVCframework, wich I believe is not thought for Windows UI apps And anyway, that kind of frameworks are not oriented to let a form use a TDataset or a TDatasource So IMHO, as of today, RAD and MVC/MVVM are not friends
  11. Javier Tarí

    Need help finding the IDesigner

    Thank you; finally understood it Ofcourse, it is a BPL registering the components and some property editors, all of them working Following your advice, I've solved it this way: var ModuleServices: IOTAModuleServices; FFormEditor: IOTAFormEditor; NTAFormEditor: INTAFormEditor; FormModule: IOTAModule; aFormDesigner: IDesigner; begin aFormDesigner:=nil; ModuleServices := BorlandIDEServices as IOTAModuleServices; if Assigned(ModuleServices) then begin FormModule := ModuleServices.FindFormModule(Self.Owner.Name); if assigned(FormModule) then begin FFormEditor := FormModule.GetModuleFileEditor(FormModule.GetModuleFileCount - 1) as IOTAFormEditor; if Supports(FFormEditor, INTAFormEditor, NTAFormEditor) then aFormDesigner:=NTAFormEditor.GetFormDesigner; end; end; //Now you just select the column, i.e.: if Assigned(aFormDesigner) then aFormDesigner.SelectComponent(Column(ACol)) end; Next one also works, but I'm not sure if it should work, so will keep the first one var aFormDesigner: IDesigner; aForm: TCustomForm; begin AForm:=GetParentForm(Self); If not Supports(aForm.Designer,IDesigner,aFormDesigner) Then aFormDesigner:=nil; if Assigned(aFormDesigner) then begin aFormDesigner.SelectComponent(Column(ACol)); end;
  12. Javier Tarí

    Need help finding the IDesigner

    Don't thik I understood you.. Do you mean something as this? ((Form as IOTAmodule) as INTAFormEditor).GetFormDesigner
  13. Short: At design time, How can I get the IDesigner interface for a given form? Long: I have a VCL DBGrid-kind component developed for D5 and working fine all the way up to D10.4.1, except for one thing At design time, when I clic on a column header, it should select on the Object Inspector the TCollectionItem descendant for that column In D5, it was as easy as finding the form owning the DBGrid-kind, and then using FDesigner.SelectComponent(TheColumn); But now the form has IDesigner: IDesignFormHook, so I don't know how to do a SelectComponent Thanks in advance
  14. Javier Tarí

    SetRange - Doesn't

    If it is not supported, it should throw an exception. Is the query sorted with an order by?
  15. Javier Tarí

    No C/S FireDac for Delphi Professional

    Unless you really need Enterprise, I would go with UniDac If you decide to go with UniDAC, consider making wrapper components wich, depending on a $DEFINE, would inherit from FireDAC or from UniDAC, and then substitute all your current FD components with those That way, your app will always be ready for both FD and UD. So if you later decide to go with Enterprise and come back to FireDAC, you would not need to change a single line of code on your sources That's pretty much my line of work right now