Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #1530
| From | "Darmadi" <support@gfsoftindo.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: bBrowser 4 |
| Date | 2011-06-24 11:03 +0700 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <iu129l$47r$1@speranza.aioe.org> (permalink) |
| References | (1 earlier) <4dfc6811$0$34828$c30e37c6@exi-reader.telstra.net> <itp33g$k8s$1@speranza.aioe.org> <moULp.7046$aH5.1697@viwinnwfe02.internal.bigpond.com> <itujtb$fee$1@speranza.aioe.org> <NvBMp.7210$aH5.5354@viwinnwfe02.internal.bigpond.com> |
Hi Steve,
Seem it cannot be done as expected.
This from help file:
Important notes!
The class bVirtualColumn may not be used directly in the bBrowser. After
creating a virtual column the access bDataColumn:Editable has the value
TRUE.
So I tried bVirtualFieldColumn, but the 2nd parameter must be a server,
cannot be bBrowser be a server.
oColumn := bVirtualFieldColumn{oBrowser,;
odbsCUSTOMER,;
{|oServer| 0},;
#Expression}
oHyperLabel := HyperLabel{#Orders, "bBrowser"+CRLF+"Orders"}
oColumn:FieldSpec := FieldSpec{oHyperLabel, "N", 3, 0}
oColumn:CaptionView := bViewStyle{ , , BALIGN_CENTER}
oColumn:SuspendEmptyValues := TRUE
oColumn:CalculateWidth()
This is from the sample.
And if I try to force using bBrowser as Server, I got error.
>> {|x| x:OrderKeyNo() }
This is one not my option, cause the database will be set filtered.
Regards,
Darmadi
"Stephen Quinn" wrote in message
news:NvBMp.7210$aH5.5354@viwinnwfe02.internal.bigpond.com...
Darmadi
> Did you mean #Expression, but I don't know how to do calculated field for
> an auto-number,
> bSample - VirtualColumn
> which field should I get ?
None
Eg
// where x is the DBServer ('Server' in the declaration)
oCol := bVirtualColumn{ {|x| x:OrderKeyNo() }, /* rest of parameters */}
oCol:Picture := '999999' // Make it wide enuff for thr max no. of
records in index
or
// where x is the bBrowser ('Server' in the declaration)
oCol := bVirtualColumn{ {|x| x:RowNo }, /* rest of parameters */}
oCol:Picture := '99' // No. of rows on screen - <100
// Here's a sample class but you'll need to check the syntax as I just typed
// it into this post from memory and I've done no programming in ~2
years<bg>
CLASS AutoNumber INHERIT bVirtualColumn
METHOD INIT( xServer ) CLASS AutoNumber
PROTECT cbBlock AS CodeBlock
DO CASE
CASE IsInstanceOf( xServer, #DBServer )
cbBlock := {|x| x:OrderKeyNo() }
OTHERWISE
// Default to bBrowser being the Server
cbBlock := {|x| x:RowNo }
ENDCASE
SUPER:INIT( cbBlock, /* whatever*/, xServer, #EXPRESSION )
RETURN
CYA
Steve
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
bBrowser 4 "Marc Verkade [Marti]" <marcatm@rti.nl> - 2011-06-14 00:13 +0200
Re: bBrowser 4 Joachim Bieler <support@votools.com> - 2011-06-14 08:15 +0200
Re: bBrowser 4 "richard.townsendrose" <richard.townsendrose@gmail.com> - 2011-06-15 00:04 -0700
Re: bBrowser 4 Joachim Bieler <support@votools.com> - 2011-06-16 07:15 +0200
Re: bBrowser 4 "richard.townsendrose" <richard.townsendrose@gmail.com> - 2011-06-17 02:43 -0700
Re: bBrowser 4 "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-06-17 20:35 +1000
Re: bBrowser 4 Joachim Bieler <support@votools.com> - 2011-06-20 13:31 +0200
Re: bBrowser 4 "Jamal" <vodotnet_nospam@yahoo.com> - 2011-06-20 11:42 -0400
Re: bBrowser 4 "Darmadi" <support@gfsoftindo.com> - 2011-06-18 10:15 +0700
Re: bBrowser 4 "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-06-18 08:55 +0000
Re: bBrowser 4 "richard.townsendrose" <richard.townsendrose@gmail.com> - 2011-06-19 04:46 -0700
Re: bBrowser 4 "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-06-20 02:08 +1000
Re: bBrowser 4 "Darmadi" <support@gfsoftindo.com> - 2011-06-21 10:27 +0700
Re: bBrowser 4 "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-06-21 13:40 +1000
Re: bBrowser 4 "Darmadi" <support@gfsoftindo.com> - 2011-06-23 12:45 +0700
Re: bBrowser 4 "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-06-23 16:59 +1000
Re: bBrowser 4 "Darmadi" <support@gfsoftindo.com> - 2011-06-24 10:07 +0700
Re: bBrowser 4 "Darmadi" <support@gfsoftindo.com> - 2011-06-24 11:03 +0700
Re: bBrowser 4 "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-06-24 16:40 +1000
Re: bBrowser 4 "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-06-25 00:00 +0000
Re: bBrowser 4 "Darmadi" <support@gfsoftindo.com> - 2011-07-13 11:23 +0700
Re: bBrowser 4 "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-07-13 16:32 +1000
Re: bBrowser 4 "Darmadi" <support@gfsoftindo.com> - 2011-07-14 09:05 +0700
Re: bBrowser 4 Camille Kater <katercamXXX@pt.lu> - 2011-07-14 07:32 +0200
Re: bBrowser 4 "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-07-14 15:20 +1000
Re: bBrowser 4 "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-07-14 22:16 +0000
Re: bBrowser 4 "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-06-22 22:31 +0000
csiph-web