TDBDateEdit lazarus / 31-LCL ---------------------------------------------------------------------- LacaK · 2014-12-17 11:03 There was added in revision 47208 of Lazarus TRUNK new db-aware component TDBDateEdit, data-aware TDateEdit (TDateEdit is on Misc tab and descends from TEditButton) As far as there is no icon for this new component, I would like ask if here is somebody who can prepare it? (as I am not strong in graphics) ---------------------------------------------------------------------- howardpc · 2014-12-17 14:39 I am not strong on graphics either, but the attached might tide you over until someone more skilled (hopefully) provides something better. ---------------------------------------------------------------------- LacaK · 2014-12-18 09:48 Very good, thank you very much ! Can please somebody with commit rights to Lazarus SVN copy this file into: images/components (or where it is needed to copy) ? Thanks ---------------------------------------------------------------------- patyi · 2014-12-19 08:36 Hi Lacak ! TDBDateEdit has conflict by name with RXNEW controls TDBDateEdit !  One of them have to be renamed ... RxNew has TDBDateEdit for long time before you added yours.  For my opinion the TDBDateTimePicker by Zoran is better solution for date and time input  !  (witch is now part of components provided with Lazarus trunk, I'd like to be installed by default ...) ---------------------------------------------------------------------- LacaK · 2014-12-21 18:50 Hi patyi, I do not noticed your reply here, sorry. I was not aware of TDBDateTimePicker, where it is ? I am looking into TRUNK version of dbctrls.pp and I do not see such component there ? Aha now I find it in components/datetimectrls ... so it is not a part of LCL But is this component installed by default in IDE ? It seems, that installation of additional package is required, which is not good for many users, which expects, DB-aware controls already on Data Controls tab. So I prefer solution, where DB-aware Date component is part of LCL. I agree, that Rx Lib was first in using name TDBDateEdit, but I see very illlogicall, that it still uses this name. It seems te me very inconsistent beside other names like: TRxDBTimeEdit, TRxDBCalcEdit, TRxDBCurrEdit, TRxDBComboBox, TRxDBGrid IMHO RX Lib should start using TRxDBDateEdit and make TDBDateEdit as alias for them to provide temporary migration path. If now is reason for such step then IMO it is right way to do so on RX Lib side ... I do not know if ther is any maintainer of Rx Lib which can be asked  ? ---------------------------------------------------------------------- JuhaManninen · 2014-12-21 20:09 Quote from: LacaK on December 21, 2014, 07:50:37 pmBut is this component installed by default in IDE ? It seems, that installation of additional package is required, which is not good for many users, which expects, DB-aware controls already on Data Controls tab. So I prefer solution, where DB-aware Date component is part of LCL. It is part of bigide ("make bigide" at cmd line) and thus will be installed by default in the next release. Thus you can consider it as part of LCL. It is a separate package only for historical reasons. Zoran used to maintain the same package already elsewhere. Maybe we should move the components to LCL package but it really does not make a big difference. QuoteI agree, that Rx Lib was first in using name TDBDateEdit, but I see very illlogicall, that it still uses this name. It seems te me very inconsistent beside other names like: TRxDBTimeEdit, TRxDBCalcEdit, TRxDBCurrEdit, TRxDBComboBox, TRxDBGrid IMHO RX Lib should start using TRxDBDateEdit and make TDBDateEdit as alias for them to provide temporary migration path. If now is reason for such step then IMO it is right way to do so on RX Lib side ... I do not know if ther is any maintainer of Rx Lib which can be asked  ? I must agree with you on this one. The Rx component should be renamed TRxDBDateEdit. The library in CCR is already a modified port of the original library, modifying it a bit more should be OK. According to this page :   http://wiki.lazarus.freepascal.org/Using_the_Lazarus- ccr_SVN_repository the maintainers are Aleksy Lagunov and Andrew Ivanov. They are not very active. In fact most CCR packages lack proper maintenance. Even the bug reports are ignored for this reason. The rule is that a package should not be modified without permission from its maintainer. The maintainers fleed and thus most of CCR is doomed for stagnation for eternity! We must loosen the rules somehow. If somebody provides a patch to rename the Rx component, I promise to apply it. Put it in bug-tracker, otherwise I may not notice it. ---------------------------------------------------------------------- LacaK · 2014-12-22 15:00 I have created bug report: http://bugs.freepascal.org/view.php?id=27200 with attached patch. I do not know if it is worth to add some compiler define into rx.inc or if there is way how to register any alias name for component (something like RegisterClassAlias), so we can conditionaly register also old TDBDateEdit as alias for TRxDBDateEdit. ---------------------------------------------------------------------- marcov · 2014-12-22 15:06 Quote from: JuhaManninen on December 21, 2014, 09:09:00 pm  http://wiki.lazarus.freepascal.org/Using_the_Lazarus- ccr_SVN_repository the maintainers are Aleksy Lagunov and Andrew Ivanov. Or are those the original authors? The RX page has a remark about "how to contact" them since 2006. http://wiki.lazarus.freepascal.org/RXfpc ---------------------------------------------------------------------- wp · 2014-12-22 17:54 alex75 (Aleksy Lagunov?) is very active with rx, he did a lot of commits to svn during this year. But I am not sure if he reads the forum regularly. ---------------------------------------------------------------------- LacaK · 2014-12-23 08:29 Quote from: wp on December 22, 2014, 06:54:17 pmalex75 (Aleksy Lagunov?) is very active with rx, he did a lot of commits to svn during this year. Yes, right, I also noticed it when I have checking SVN Quote from: wp on December 22, 2014, 06:54:17 pmBut I am not sure if he reads the forum regularly. or bug tracker, where I also reported bug I have found email to Aleksey in WhatsNew.txt, so I can try to contact him. But now I am not sure what to do. As far as there is already TDBDateTimePicker which will be part of Lazarus IDE in next release (1.4? I think) I do not know TDBDateTimePicker, but I expect, that it will provide similar functionality like TDBDateEdit. (btw what is difference between TDateTimePicker and TDateEdit?) If it is so, then it is redundant have two components with same functionality on same tab "Data Controls", does not ? (TDBDateTimePicker is based on platform independent TDateTimePicker (components/datetimectrls/datetimepicker unit) and TDBDateEdit is based od TDateEdit (editbtn unit) I have this idea: - move datetimepicker unit to LCL/include and include it by comctrls.pp (Delphi has also TDateTmePicker as part of ComCtrls) - move dbdatetimepicker unit to LCL/include and include it by DBExtCtrls.pp - remove components/datetimectrls ---------------------------------------------------------------------- JuhaManninen · 2014-12-23 10:25 Quote from: wp on December 22, 2014, 06:54:17 pmalex75 (Aleksy Lagunov?) is very active with rx, he did a lot of commits to svn during this year. Right, now I noticed the commits, too. He is otherwise silent, I made a wrong conclusion. Quote from: LacaK on December 23, 2014, 09:29:16 amI have found email to Aleksey in WhatsNew.txt, so I can try to contact him. But now I am not sure what to do. As far as there is already TDBDateTimePicker which will be part of Lazarus IDE in next release (1.4? I think) I do not know TDBDateTimePicker, but I expect, that it will provide similar functionality like TDBDateEdit. (btw what is difference between TDateTimePicker and TDateEdit?) If it is so, then it is redundant have two components with same functionality on same tab "Data Controls", does not ? (TDBDateTimePicker is based on platform independent TDateTimePicker (components/datetimectrls/datetimepicker unit) and TDBDateEdit is based od TDateEdit (editbtn unit) Does this mean TDBDateEdit is not needed and should be removed? I am not working with DB controls at all personally and I must trust what others say. The component was added by Jesus recently, you must discuss with him by personal mail or mailing list. I don't think he reads this. QuoteI have this idea: - move datetimepicker unit to LCL/include and include it by comctrls.pp (Delphi has also TDateTmePicker as part of ComCtrls) - move dbdatetimepicker unit to LCL/include and include it by DBExtCtrls.pp - remove components/datetimectrls Why is it so important for you? As explained, the package is installed by default (bigide) and you will not notice difference compared to LCL components. Your idea is basically good but it would require administrative work again from Vincent / Marc / Zoran. Zoran now has commit access to his package dir. BTW, Zoran has not updated his component wiki page to mention that they have moved to Lazarus repo, but that is another issue. ---------------------------------------------------------------------- LacaK · 2014-12-23 18:58 Quote from: JuhaManninen on December 23, 2014, 11:25:47 amDoes this mean TDBDateEdit is not needed and should be removed? Yes it is one solution, but I do not want do fast conclusions ... Quote from: JuhaManninen on December 23, 2014, 11:25:47 amThe component was added by Jesus recently, you must discuss with him by personal mail or mailing list. Yes it was added by Jesus, but on my patch in bug #15189  Quote from: JuhaManninen on December 23, 2014, 11:25:47 amWhy is it so important for you? As explained, the package is installed by default (bigide) and you will not notice difference compared to LCL components. Good question. It is only my preference, I understand that functionality is not affected by this change. And I like better have all DB-aware components in one place, either in DBCtrls or DBExtCtrls. It is IMO more clear and compact, than have components scattered in more independent directories. (sometimes change underlying DB architecture like TDataSource or TFieldDataLink which causes that components must be updated ... then it is better have them somehow centralised) Quote from: JuhaManninen on December 23, 2014, 11:25:47 amYour idea is basically good but it would require administrative work again from Vincent / Marc / Zoran. Zoran now has commit access to his package dir. Yes, but I believe, that it is not too much work for somebody experienced ... ---------------------------------------------------------------------- Zoran · 2014-12-24 19:01 Quote from: JuhaManninen on December 23, 2014, 11:25:47 amBTW, Zoran has not updated his component wiki page to mention that they have moved to Lazarus repo, but that is another issue. Now I have added this note to the top of the old page: From Lazarus version 1.4, this package should be replaced with DateTimeCtrls Package, which is included in Lazarus distribution. ---------------------------------------------------------------------- JuhaManninen · 2015-01-02 17:09 Quote from: LacaK on December 23, 2014, 07:58:13 pmQuote from: JuhaManninen on December 23, 2014, 11:25:47 amDoes this mean TDBDateEdit is not needed and should be removed? Yes it is one solution, but I do not want do fast conclusions ... What shall we do with this? I promised to apply the patch for Rx lib. Then things turned out to be more complicated, the maintainer of Rx turned out to be active although he has not yet reacted to the bug report. The installation problem still exists and should be fixed ASAP. I see 2 ways: 1. I apply the Rx patch and inform Lagunov Aleksey about it. 2. Somebody removes TDBDateEdit. It is your call now LacaK. TDBDateEdit was your creation. If you select number 1., then let me know and I will do it. If you select number 2., then co-operate with Jesus to get it done. ---------------------------------------------------------------------- fpcoder · 2015-01-02 21:51 My 2 cents: Rx TDBDateEdit should be renamed to TRxDBDateEdit to have a name that is consistent with the other Rx components. Personally I use TDBDateTimePicker. Haven't compared it with TDBDateEdit yet, and because of the name conflict its not possible without uninstalling the RX package. ---------------------------------------------------------------------- vfclists · 2015-01-03 07:28 RX Library needs a serious clean up. It is so difficult to compile properly across different Lazarus versions and FPC compilers. The maintainers of that library need to be more organized and more disciplined. They should look at the yacc source code. Note a chance for naming conflicts ---------------------------------------------------------------------- LacaK · 2015-01-03 09:29 Quote from: JuhaManninen on January 02, 2015, 06:09:15 pmThe installation problem still exists and should be fixed ASAP. I see 2 ways: 1. I apply the Rx patch and inform Lagunov Aleksey about it. Just now I have wrote email to Aleksey at his email addres at yandex.ru (I do not know of course if this address is valid) Let's wait few days If he will react. I belive (and it seems, that also other users think so), that renaming RxLib TDBDateEdit should be done in all cases. (regardless if TDBDateEdit will be removed or not) Quote from: JuhaManninen on January 02, 2015, 06:09:15 pm2. Somebody removes TDBDateEdit. It is other question: Does we need TDBDateTimePicker and TDBDateEdit together or not ? Is there any advantage of one component over other or not ? 3. Remove TDBDateEdit and introduce new TDBEditButton as data-aware TEditButton with new property: ButtonStyle: ebbsCalendar, ebbsDots, wbbsLookup which will control image on button and behavior. In database applications is often value in edit box based on selection from any list. For example: in invoice header, name of customer is selected from list of customers ... then there is edit box and button ... when user clicks button other form with list of customers is opened and user can select customer ... I think that this kind of DB control will be useful, other opinions about it ? ---------------------------------------------------------------------- JuhaManninen · 2015-01-03 14:41 Quote from: LacaK on January 03, 2015, 10:29:50 amJust now I have wrote email to Aleksey at his email addres at yandex.ru (I do not know of course if this address is valid) Let's wait few days If he will react. I belive (and it seems, that also other users think so), that renaming RxLib TDBDateEdit should be done in all cases. (regardless if TDBDateEdit will be removed or not) Sounds good. If he does not react in one week then I will apply the patch. The installation problem must be fixed in any case. Quote3. Remove TDBDateEdit and introduce new TDBEditButton as data- aware TEditButton with new property: ButtonStyle: ebbsCalendar, ebbsDots, wbbsLookup which will control image on button and behavior. I believe it would be accepted if you make it. However I will not be part of that process because I don't know much about the DB controls. Jesus Reyes and some other developers know more. ---------------------------------------------------------------------- marcov · 2015-01-03 14:55 For me what I prefer depends on the target. If i really have to plan something, I like a more picker like solution. If I just have to enter some date that I get in paper form, I prefer an edit like construct with a date-validator mechanism. Usually in such forms you just enter data and tab through, and having to use the mouse is a detractor. ---------------------------------------------------------------------- LacaK · 2015-01-03 16:47 Quote from: JuhaManninen on January 03, 2015, 03:41:25 pmSounds good. If he does not react in one week then I will apply the patch. The installation problem must be fixed in any case. Aleksey has replied to me email: "I rename component after new year holiday's."  Quote from: JuhaManninen on January 03, 2015, 03:41:25 pmJesus Reyes and some other developers know more. It will be good to discuss it somewhere before I will do it. I have such component in Delphi, where I use it often. ---------------------------------------------------------------------- fpcoder · 2015-01-19 17:06 I did a SVN checkout right now and updated my Lazarus to revision 47430. There is still the error message "TDBDateEdit already defined" on Lazarus startup. Is it something I have forgotten to do, or is the component not yet renamed? ---------------------------------------------------------------------- LacaK · 2015-01-20 07:24 Do you have downloaded new trunk version of RxFPC ? ---------------------------------------------------------------------- fpcoder · 2015-01-20 23:30 Quote from: LacaK on January 20, 2015, 08:24:03 amDo you have downloaded new trunk version of RxFPC ? I installed an older RX version by accident. Now its fine, thanks for the hint.