Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

Record Number of TppDBText

edited July 2007 in End User
Hello,

I added an OnClick-Event to some of the labels on my detail band by
doing this (while looping all report components):


(Components[i] as TppComponent).OnDrawCommandClick := eportElementClick;


This works fine, the "exportElementClick" procedure is called by
clicking the DBText element in ppViewer.

The thing I want to know is, how can I notify with record number of my
(tDataset) Table this clicked version of the DBtext belongs to?

kind regards
Bjoern

Comments

  • edited July 2007
    Hi Bjoern,

    What exactly would you like to happen when one of the DBTexts are clicked?
    Inside the OnDrawCommandClick event, you have access to the aDrawCommand
    parameter. You could take a look at the value and determine which field it
    is accessing.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2007
    Hello Nico,

    the Report is some kind of German tax form. The user must be able to add
    some information that can't be generated from a Database. So is prompt
    an Edit-Field on to of the DBText the entered Value must be inserted in
    the correct data row.

    The actual value of an DBText won't help, because at the start all
    fields are empty and after editing many of them would have equal values.

    Regards
    Bjoern
  • edited July 2007
    Hi Bjoern,

    Take a look at the following examples. The first one shows how to get
    information about a certain record when it is clicked. The second shows how
    to refresh a report once the data in the dataset has been changed which is
    what you will need to do once the table has been updated.

    http://www.digital-metaphors.com/tips/DrawCommandCustInfo.zip

    http://www.digital-metaphors.com/tips/RefreshReportAfterDataChange.zip

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2007
    Hi Nico,

    I had a quick view on the sources and using the tag to sore the needed
    information seems to be an good idea (I will figure it out tomorrow). I
    think this would solve my problem.

    Thank you very much!
    Bjoern
This discussion has been closed.