 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Dale Francis Guest
|
Posted: Mon Dec 22, 2003 3:11 pm Post subject: TDataSetTableProducer.Content |
|
|
{Interbase - Delphi 5 - TDataSetTableProducer}
On my development PC, running against an identical Interbase database, the
Content function of a TDataSetTableProducer component returns the expected
and proper HTML representation of the data.
At the client site, the Content function returns an empty string. This is
true even though the simple query behind the component is finding the
expected 4 table rows rather than returning something like EOF. In other
words, the query is working properly and returning what one would expect...
not so the Content function.
Here is what Delphi Help has to say about it:
"...Content calls the OnCreateContent event handler. If the OnCreateContent
event handler indicates that the Content method should continue, Content
returns the Header property, followed by an HTML table image of the records
in the dataset, followed by the Footer property. If the OnCreateContent
event handler indicates that the Content method should not continue, Content
returns an empty string."
So, the OnCreateContent event handler must be indicating that the Content
method should not continue. Why would the OnCreateContent event handler do
such a rude and nasty thing? (I have coded nothing behind this event
handler.)
Thanks,
Dale Francis
|
|
| Back to top |
|
 |
Del Murray Guest
|
Posted: Mon Dec 22, 2003 7:22 pm Post subject: Re: TDataSetTableProducer.Content |
|
|
Did you even create the event. If so , delete the event (clear the field in
the IDE object inspector) and try again. No event, is different from an
empty event.
|
|
| Back to top |
|
 |
Dale Francis Guest
|
Posted: Tue Dec 23, 2003 7:16 pm Post subject: Re: TDataSetTableProducer.Content |
|
|
Good point, Del.
But no, I never coded to the OnCreateContent event. It is empty and
therefore receives the default Delphi behavior.
The central problem is that the the TDataSetTableProducer.Content function
is returning an empty string. Why it is doing so is bewildering. On my
development PC, the Content function returns a nicely formated HTML display.
Against an identical Interbase dataset at the client site, however, the
Content function returns an empty string. (I've had success against a dBase
dataset; it's the Interbase dataset that creates a problem for this
function. As I stated before, the underlying query is finding the 4
Interbase table records. It is the Content function that is
malfunctioning.) To resolve this problem, I must be able to figure out why
this Content function is returning an empty string. It shouldn't be.
Why would the TDataSetTableProducer.Content function return an empty string
when the underlying query is working and finding 4 table records? Why does
the Content function work properly on my development PC but fail to work
properly at my client site? If I could answer these questions, I could
resolve the problem.
Thanks,
Dale Francis
"Del Murray" <delm (AT) mchsi (DOT) com> wrote
| Quote: | Did you even create the event. If so , delete the event (clear the field
in
the IDE object inspector) and try again. No event, is different from an
empty event.
|
|
|
| Back to top |
|
 |
Del Murray Guest
|
Posted: Wed Dec 24, 2003 1:32 pm Post subject: Re: TDataSetTableProducer.Content |
|
|
Try changing the default action item to some action other than the current
action., then set it back to the action that you want to be the default,
then "rebuild" the project, not just compile. I have seen a similar problem
in D5 before where the default action was not recognized properly and
bizarre results were posted (like yours). Of course this is a shot in the
dark , but sometimes one can find the target anyway.
|
|
| Back to top |
|
 |
Dale Francis Guest
|
Posted: Wed Dec 31, 2003 3:03 pm Post subject: Re: TDataSetTableProducer.Content |
|
|
No, this isn't it. The DefaultAction item is working just fine. The
problem is with the Content property of TDataSetTableProducer. I will start
a new thread with a new explanation of the problem.
"Del Murray" <delm (AT) mchsi (DOT) com> wrote
| Quote: | Try changing the default action item to some action other than the current
action., then set it back to the action that you want to be the default,
then "rebuild" the project, not just compile. I have seen a similar
problem
in D5 before where the default action was not recognized properly and
bizarre results were posted (like yours). Of course this is a shot in the
dark , but sometimes one can find the target anyway.
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|