🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
3 messages
3 total messages Started by John Smith Tue, 07 Mar 2006 08:09
Title in QueryTableProducer
#747
Author: John Smith
Date: Tue, 07 Mar 2006 08:09
15 lines
1359 bytes
Hello.

Does anyony knows, how to set the DisplayName from a QueryTableProducer ?

I try to set the DisplayName or the FieldName:

QueryTableProducer1->Columns->Items[1]->DisplayName = "Test1";
QueryTableProducer1->Columns->Items[1]->FieldName = "Test1";

but after executing the QueryTableProducer the Changes will be discarged:

 after:  BODY += QueryTableProducer1->Content ();

in the QueryTableProducer1->Columns->Items[1]->FieldName  there is the
original Database - Fieldname and in my BODY too.
Re: Title in QueryTableProducer
#754
Author: John Smith
Date: Thu, 09 Mar 2006 09:04
43 lines
2082 bytes
Hello.

The Problem is: i have many different Databases to browse on my webpage with
the QueryTableProucer.
Only for one client i need to change one Title.

I have left the Columns - definition open, so QueryTableProucer takes the
default Fieldnames for title.
I have thought, after this, i can change my Title????

Perhaps i have to setup the Columns definition for this client, and after
this i remove the definition.

Any better ideas?

I think, my question is to stupid, so nobody takes notice...... :-(





"John Smith" <NoSpam@NoSpam.com> schrieb im Newsbeitrag
news:440d3fa2@newsgroups.borland.com...
> Hello.
>
> Does anyony knows, how to set the DisplayName from a QueryTableProducer ?
>
> I try to set the DisplayName or the FieldName:
>
> QueryTableProducer1->Columns->Items[1]->DisplayName = "Test1";
> QueryTableProducer1->Columns->Items[1]->FieldName = "Test1";
>
> but after executing the QueryTableProducer the Changes will be discarged:
>
>  after:  BODY += QueryTableProducer1->Content ();
>
> in the QueryTableProducer1->Columns->Items[1]->FieldName  there is the
> original Database - Fieldname and in my BODY too.
>
>
>
>
>
Re: Title in QueryTableProducer
#548
Author: John Smith
Date: Fri, 17 Mar 2006 09:53
24 lines
1527 bytes
Hi there.

I'm very unhappy, that nobody can help me.
For an experienced Borland programmer, it was peanuts. For me it was a
skyscraper.

But after long long try's i have found a solution:

void __fastcall TForm1::QueryTableProducer1FormatCell( TObject *Sender, int
CellRow, int CellColumn, THTMLBgColor &BgColor, THTMLAlign &Align,
THTMLVAlign &VAlign, AnsiString &CustomAttrs, AnsiString &CellData )
{

 if ( CellRow == 0 )
    {
              if ( CellColumn == 2)
                 CellData = "TITLE1";

              if ( CellColumn == 3)
                 CellData = "TITLE2";
      }
}

I hope, this will help other users...
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads