Posts: 99
Threads: 17
Joined: Aug 2018
Reputation:
7
Location: The Netherlands
09-10-2020, 01:03 PM
(This post was last modified: 09-10-2020, 03:18 PM by PaulWeem.)
Hello,
I'm using IW15.2.15 on Delphi 10.3.3.
It seems like TIWDBEdit is not respecting AutoEditable setting.
Even when a dataset is not in editmode, the value in TIWDBEdit can be changed and is saved in the database.
Can you please check and confirm?
Regards, Paul
It seems this occurs only when using a DataModule and the DataSource is on the Datamodule.
When the DataSource is on the same form as the TIWDBEdit, everything works as expected.
Posts: 2,261
Threads: 196
Joined: Mar 2018
Reputation:
86
Location: Auckland, New Zealand
09-15-2020, 09:26 AM
(This post was last modified: 09-15-2020, 09:27 AM by Alexandre Machado.)
I'll check it out and let you know.
However, there is one thing that I'd like to mention: a DataSource component belongs to the *form* not to the DataModule. It is basically an observer object created to notify visual components when the underlying DataSet changes. (the exception is when it connects 2 DataSets in a Master/Detail relationship, but in this case it shouldn't be connected to any visual control anyways).
Posts: 2,261
Threads: 196
Joined: Mar 2018
Reputation:
86
Location: Auckland, New Zealand
Do you also have a grid in your form?
I believe that what caused this issue has been fixed in our code base. A new update is being released with a fix.
Posts: 99
Threads: 17
Joined: Aug 2018
Reputation:
7
Location: The Netherlands
Yes, I do have a grid on my form.
I'll test as soon as the new update is released.
Thanks!
Posts: 99
Threads: 17
Joined: Aug 2018
Reputation:
7
Location: The Netherlands
Hi Alexandre,
I haven't been able to reproduce this, so I can confirm the problem is solved.
Talking about problems, I now have one with IWTabControl.
When having multiple Tabs and setting the TabOder of all Tabs to -1 or 0 (because I don't want these in the tab order), the Tabs get messed up.
It lookes almost like the TabOrder is used to determin the order of the Tabs within the IWTabControl.
Cheers, paul