Recent

Author Topic: MDO - Probelm Master-Detail in TDbText  (Read 8060 times)

laguna

  • Sr. Member
  • ****
  • Posts: 323
MDO - Probelm Master-Detail in TDbText
« on: January 21, 2011, 05:31:44 pm »
I created a small program with two Data-Sets and two queries.
In the master dataset, there are two camps TDBEdit.
In detail there are a DataSet field TDBGrid, TDBEdit a field, a field TDBText. (Perfectly connected to the master dataset)
Flowing the DataSet TDBText master data in the field are not updated.
I checked the connection several times, and everything is in order perfattamente.
Can you help me?

Thanks
« Last Edit: January 28, 2011, 01:01:44 pm by laguna »

xenblaise

  • Sr. Member
  • ****
  • Posts: 358
Re: Probelm Master-Detail in TDbText
« Reply #1 on: January 21, 2011, 06:39:46 pm »
This is a sample of Master-Detail Database application, try to see the codes; :D
http://wiki.lazarus.freepascal.org/User:Rocarobin

laguna

  • Sr. Member
  • ****
  • Posts: 323
Re: Probelm Master-Detail in TDbText
« Reply #2 on: January 21, 2011, 07:06:11 pm »
So, let me explain better.
Parts used: MDOCustomDataSet, MDOQuery.

The TDBText detail is in order, in the same way TDBEdit.
Details related to the field TDBEdit flowing properly.
TDBText the loading is assigned a value, but by pressing the button next, the value is not updated.

The dbGrid related retail has uploaded the data correctly.

If I link TBEdit in master control, that flowing properly.

I hope I was clear, I have some difficulty with English.

Thanks to all


laguna

  • Sr. Member
  • ****
  • Posts: 323
Re: Probelm Master-Detail in TDbText
« Reply #3 on: January 21, 2011, 08:10:07 pm »
Using the database of example that you mentioned, I created a small project.
This small project, it is operating correctly.

So I wonder if the problem is not in the MDO-Mercury.

Someone who uses mercury could do a test?

Thanks to All

laguna

  • Sr. Member
  • ****
  • Posts: 323
Re: Probelm Master-Detail in TDbText
« Reply #4 on: January 26, 2011, 01:40:44 pm »
After several tests, I prepared this little project.

This project tests the components MDO
The retail component is not correctly updating the dataset.

Look at the behavior of the control TDBText
Flowing to the main record TDBText is not updated, all other components are updated


You can check out.
and report any error to the group MDO

Not include database EMPLOYEE.FDB

Thanks
« Last Edit: January 26, 2011, 02:11:08 pm by laguna »

ramon

  • Newbie
  • Posts: 3
Re: MDO - Probelm Master-Detail in TDbText
« Reply #5 on: March 04, 2011, 07:20:52 pm »
Quote
anyone requesting another sample? [October 19, 2010]

Could you include a sample of SQLQuery with Firebird?

Thanks.

laguna

  • Sr. Member
  • ****
  • Posts: 323
Re: MDO - Probelm Master-Detail in TDbText
« Reply #6 on: March 04, 2011, 07:25:45 pm »
The problem has been resolved.
The error was caused to version 2.4.3 of FreePascal.
I went to the stable version 2.4.2 and everything works properly.

xenblaise

  • Sr. Member
  • ****
  • Posts: 358
Re: MDO - Probelm Master-Detail in TDbText
« Reply #7 on: March 06, 2011, 10:18:18 am »
Quote
I went to the stable version 2.4.2 and everything works properly.
Yep, stable version must use it. :D

korba812

  • Sr. Member
  • ****
  • Posts: 394
Re: MDO - Probelm Master-Detail in TDbText
« Reply #8 on: March 07, 2011, 02:40:19 pm »
The problem is in the TDataSet.EnableControls (bug 16428 and 18881)
You can work around this problem commenting line 3625 and 3638 of MDOCustomDataSet.pas
(EnableControls / DisableControls in RefreshParams method)

 

TinyPortal © 2005-2018