Article View: borland.public.cppbuilder.internet.web
Article #1022How to set boolean QueryTableProducer fields
From: Billy Holliday
Date: Thu, 27 Oct 2005 07:24
Date: Thu, 27 Oct 2005 07:24
38 lines
2077 bytes
2077 bytes
Hi.
Does anyone knows, how to set the values of a boolean QueryTableProducer
field?
At this time, i get the text "true" or "false" as result of the
QueryTableProducer. I want to have a simple "1" or "0".
The datasource is a normaly Query with formated boolean fields.
( ( TBooleanField * ) Query1->Fields->FieldByNumber (8) )->DisplayValues =
"1;0";
If i check the Query with:
AnsiString tmp;
tmp = Query1->Fields->FieldByNumber (8)->AsString;
i get my whanted values.
But on the Tableproducer i get the text true or false, because the Query
datafield is boolean.
I try to set the DisplayValues from the TableProducer with
(( TBooleanField * )
QueryTableProducer1->DataSet->FieldByName("PWR"))->DisplayValues = "1;0";
but this doesn't work (I set this before i get the
QueryTableProducer1->Content () )
Shure: i can use the QueryTableProducer1FormatCell event to change the
values, but this takes 15 seconds!!!! in my big Table......
The user can't wait 15 seconds for the table... :-(
Anyone there, who know how to set the DisplayValues ????
Perhaps over: QueryTableProducer1->Columns->Items[i]->??
Thanks
Technical Details
Message-ID:
<43607f85@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: feeec,2144f8c1c867adb0,start X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Billy Holliday" <NoSpam@Hohoho.com> Newsgroups: borland.public.cppbuilder.internet.web Subject: How to set boolean QueryTableProducer fields Date: Thu, 27 Oct 2005 09:24:01 +0200 Lines: 41 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4927.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 NNTP-Posting-Host: 212.202.128.58 Message-ID: <43607f85@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1130397573 212.202.128.58 (27 Oct 2005 00:19:33 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail