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

TppDBText.DataField containing a '.'

edited March 2006 in General
Hi, I'm running RB 9.03 in Delphi 2005 Update 3 (with the unofficial
post-update 3 patches from Allen Bauer).

I am generating a dataset from a list of objects using a utility
function. The resulting dataset includes some fields that are named
things like "SubObject.Descr". When I try to set a TppDBText's
DataField property in the object inspector, I see the correct list of
the dataset's fields. However, if I pick a field like
"SubObject.Descr", it appears to actually set the property to "Descr".
That causes my report to fail, since there isn't actually a field in
the dataset named "Descr".

It could be an Object Inspector issue, although I have set non-RB
fields to values containing periods before. I'm not sure why the
object inspector would behave strangely here, and not for other
properties, though.

I can set the DataField correctly by doing something like this:

DescrDBText.DataField := 'SubObject.Descr';

Obviously, I don't want to do that except as an absolute last resort,
since that's significantly harder to handle than the object inspector.
I also could rewrite the utility that is generating the dataset so it
doesn't use periods, but I'd rather not do that unless I have to.

Is this a known issue? Is there a fix for it? Thanks for the help,
let me know if there is a way to prevent this behavior.

Comments

This discussion has been closed.