Recent

Author Topic: master details not work in last row  (Read 2645 times)

mrkwlee

  • New Member
  • *
  • Posts: 18
master details not work in last row
« on: April 16, 2017, 11:57:54 am »
I am new and I  have a problem in lazreport:

System:     lazarus 1.6.4 64bits Win 10 , sqlite 3 , zeoslib 7.14
2 ZQuery:  ZQresult ( with fields Q_NO....), ZQTitle ( with fields Q_NO, TITLE...)
2 Datasource: DSResult, DSTitle

In ZQTitle
LinkedFields: Q_NO
MasterFields: Q_NO
MasterSource: DSResult

On screen, when I edit DSResult, Q_NO entered gets correct TITLE from DSTitle,
When I move from one record to another in DBgrid TITLE is refrshed correctly.
However, when lazreport is used to print all or a list of the records the TITLE field values are correct in all rows except the last row.
 I have strugled for a week and get no fix.  :(
 Any one get the same problem?
Did I miss something?



« Last Edit: April 16, 2017, 12:01:16 pm by mrkwlee »

mrkwlee

  • New Member
  • *
  • Posts: 18
Re: master details not work in last row
« Reply #1 on: April 21, 2017, 04:59:28 am »
Solved by adding ZQDetails.Refresh to the event of frDBDataSet1Next : :D
« Last Edit: April 21, 2017, 05:02:30 am by mrkwlee »

 

TinyPortal © 2005-2018