Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #1386 > unrolled thread

bBrowser 4

Started by"Marc Verkade [Marti]" <marcatm@rti.nl>
First post2011-06-14 00:13 +0200
Last post2011-06-22 22:31 +0000
Articles 20 on this page of 27 — 8 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  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

Page 1 of 2  [1] 2  Next page →


#1386 — bBrowser 4

From"Marc Verkade [Marti]" <marcatm@rti.nl>
Date2011-06-14 00:13 +0200
SubjectbBrowser 4
Message-ID<4df68c95$0$794$58c7af7e@news.kabelfoon.nl>
HeyJoachim,
Any news on BB 4.0?
Regards, Marc

[toc] | [next] | [standalone]


#1390

FromJoachim Bieler <support@votools.com>
Date2011-06-14 08:15 +0200
Message-ID<95ock8FovjU1@mid.individual.net>
In reply to#1386
Hi Marc,

the bBrowser 4  makes progress. All features are implemented. I still have a problem with the record 
groups but I already work on it. As soon as this problem is solved, I still must finish the 
documentation. According to that the bBrowser 4 is published. Because I already have announce many 
appointments and have not observed these, I will not announce any new appointment. However, I am 
confident that it will last no longer.

Regards,
Joachim Bieler



Am 14.06.2011 00:13, schrieb Marc Verkade [Marti]:
> HeyJoachim,
> Any news on BB 4.0?
> Regards, Marc

[toc] | [prev] | [next] | [standalone]


#1409

From"richard.townsendrose" <richard.townsendrose@gmail.com>
Date2011-06-15 00:04 -0700
Message-ID<ca2b0d7a-beec-49b5-8b38-5b649b6b9e99@36g2000yqj.googlegroups.com>
In reply to#1390
Joachim

Look forward to it.

Hope it includes support for bDBServer's record filter respecting
changes when a record moves out of scope

and "cannot wait" for record groups ... does it include sub groups and
sub sub groups ...

Thanks

Richard

[toc] | [prev] | [next] | [standalone]


#1421

FromJoachim Bieler <support@votools.com>
Date2011-06-16 07:15 +0200
Message-ID<95thqeFl29U1@mid.individual.net>
In reply to#1409
Richard,

>  Hope it includes support for bDBServer's record filter respecting
>  changes when a record moves out of scope

I'm sorry, but I don't know what you mean. Can you explain the problem.

>  and "cannot wait" for record groups ... does it include sub groups and
>  sub sub groups ...

Yes, the implementation of record groups in bBrowser 4 supports sub groups, sub sub groups, sub sub 
sub groups, sub sub sub sub groups, and so on. There is no limitation for sub groups.

Regards,
Joachim Bieler


Am 15.06.2011 09:04, schrieb richard.townsendrose:
> Joachim
>
> Look forward to it.
>
> Hope it includes support for bDBServer's record filter respecting
> changes when a record moves out of scope
>
> and "cannot wait" for record groups ... does it include sub groups and
> sub sub groups ...
>
> Thanks
>
> Richard

[toc] | [prev] | [next] | [standalone]


#1432

From"richard.townsendrose" <richard.townsendrose@gmail.com>
Date2011-06-17 02:43 -0700
Message-ID<d5ce0de5-7f26-45f1-8273-40b3df4541c7@f21g2000vbr.googlegroups.com>
In reply to#1421
Joachim

if you have a bdbserver with top and bottom scope set,
and then implement aIncluderecs or aExcludedRecs,
and then a record is moved "out of scope" by another user, or process
then record is still shown in a browse even when it is refreshed

richard

[toc] | [prev] | [next] | [standalone]


#1433

From"Stephen Quinn" <stevejqNO@bigpondSPAM.net.au>
Date2011-06-17 20:35 +1000
Message-ID<Z4GKp.6763$aH5.2311@viwinnwfe02.internal.bigpond.com>
In reply to#1432
Richard

> if you have a bdbserver with top and bottom scope set,
> and then implement aIncluderecs or aExcludedRecs,
> and then a record is moved "out of scope" by another user, or process
> then record is still shown in a browse even when it is refreshed

That doesn't make sense.

If you have SCOPES on an INDEX then aIncludeRecs/aExcludeRecs would be 
meaningless as they're not part of the index nor referred to by the RDD
Unless your meaning a CUSTOM index
    - then you can add almost any record but aIncludeRecs/aExcludeRecs would 
still be meaningless.

If a record is out of scope (no matter who puts it out of scope) then it's 
invisible to you as far as your search criteria/SCOPE is concerned.

CYA
Steve 

[toc] | [prev] | [next] | [standalone]


#1450

FromJoachim Bieler <support@votools.com>
Date2011-06-20 13:31 +0200
Message-ID<968pc6Fq6oU1@mid.individual.net>
In reply to#1432
Hi Richard,

this problem is fixed in bBrowser 4.

Regards,
Joachim Bieler



Am 17.06.2011 11:43, schrieb richard.townsendrose:
> Joachim
>
> if you have a bdbserver with top and bottom scope set,
> and then implement aIncluderecs or aExcludedRecs,
> and then a record is moved "out of scope" by another user, or process
> then record is still shown in a browse even when it is refreshed
>
> richard

[toc] | [prev] | [next] | [standalone]


#1454

From"Jamal" <vodotnet_nospam@yahoo.com>
Date2011-06-20 11:42 -0400
Message-ID<itnpon$go6$1@dont-email.me>
In reply to#1421
Hi Joachim,

Right now you RowSelect( ) method, but can you add a RowMouseClick() method 
that is only called when a row is left clicked.
It seems to that RowSelect( ) creates extra overhead since it is being 
invoked in various other methods such as Notify, etc.

Jamal

"Joachim Bieler"  wrote in message news:95thqeFl29U1@mid.individual.net...

Richard,

>  Hope it includes support for bDBServer's record filter respecting
>  changes when a record moves out of scope

I'm sorry, but I don't know what you mean. Can you explain the problem.

>  and "cannot wait" for record groups ... does it include sub groups and
>  sub sub groups ...

Yes, the implementation of record groups in bBrowser 4 supports sub groups, 
sub sub groups, sub sub
sub groups, sub sub sub sub groups, and so on. There is no limitation for 
sub groups.

Regards,
Joachim Bieler


Am 15.06.2011 09:04, schrieb richard.townsendrose:
> Joachim
>
> Look forward to it.
>
> Hope it includes support for bDBServer's record filter respecting
> changes when a record moves out of scope
>
> and "cannot wait" for record groups ... does it include sub groups and
> sub sub groups ...
>
> Thanks
>
> Richard 

[toc] | [prev] | [next] | [standalone]


#1438

From"Darmadi" <support@gfsoftindo.com>
Date2011-06-18 10:15 +0700
Message-ID<ith58f$uo7$1@speranza.aioe.org>
In reply to#1390
Hi Joachim Bieler,

I have bought bBrowser 3 for one year more, but only these month I have use 
a lot bBrowser for my new product, and found it's really good stuff, help me 
a lot in developing for browser.

Because I'm a newbie here, so need more time to explore inside bBrowser.

I'm not sure if the bBrowser3 already have this kind of stuff or not:

1.  AutoNumber, so we could easily add a column call AutoNumber (not by 
Recno), cause Recno could not represent the number of browser as might be 
order by Index.
Now I have do something inside the SDK of bBrowser:

IF IsInstanceOf( oColumn, #bAutoNumberColumn )
    uValue := NTrim(iRowNo) + "."
ELSE
    uValue := oColumn:Value
ENDI

I have put in bBrowser:FillBuffer()

So when I want have a AutoNumberColumn, just add the column 
bAutoNumberColumn{}


2.  More flexible showing data in bDataColumn.
The Property only apply to LOGIC and DATE format (looked the 
bDataColumn:Transform())
When I'm doing an accounting software, the value showing in Rupiah 
(Indonesia) and US Dollar are different.
Rp. 7.000.000,-
U$  1,565.75

So when I want flexibly showing the value based on Currency in the record, I 
don't know, maybe could be done by overwrite FieldSpec.

But I do another, I have add a codeblock in bDataColumn:Transform() -> first 
line:

IF SELF:oTransformExp != NULL_OBJECT .AND. 
IsMethod(SELF:oTransformExp,#Eval)
    RETURN SELF:oTransformExp:Eval()
ENDI

So I could have my own way to show the data.


3.  If there any way to prevent bBrowser lost the edit focus?,
I have a richedit with context menu "Set Font Color", "Set Font", the 
problem is when user choose this menu, then editing state will lost, cause 
by showing the Font Dialog / Color Dialog, then I cannot change anything the 
value inside richedit anymore.



Look forward the bBrowser 4.

Regards,
Darmadi




"Joachim Bieler"  wrote in message news:95ock8FovjU1@mid.individual.net...

Hi Marc,

the bBrowser 4  makes progress. All features are implemented. I still have a 
problem with the record
groups but I already work on it. As soon as this problem is solved, I still 
must finish the
documentation. According to that the bBrowser 4 is published. Because I 
already have announce many
appointments and have not observed these, I will not announce any new 
appointment. However, I am
confident that it will last no longer.

Regards,
Joachim Bieler



Am 14.06.2011 00:13, schrieb Marc Verkade [Marti]:
> HeyJoachim,
> Any news on BB 4.0?
> Regards, Marc 

[toc] | [prev] | [next] | [standalone]


#1439

From"Geoff Schaller" <geoffx@softwarexobjectives.com.au>
Date2011-06-18 08:55 +0000
Message-ID<4dfc6811$0$34828$c30e37c6@exi-reader.telstra.net>
In reply to#1438
Darmadi.

> 1.  AutoNumber, so we could easily add a column call AutoNumber (not by

You can do this now. Use the row number of the browser.
Or y9ou can add a calculated column to do the same thing.

> 2.  More flexible showing data in bDataColumn.
> The Property only apply to LOGIC and DATE format (looked the

...but you can do this now. I don't see the problem.

> So when I want flexibly showing the value based on Currency in the record, I
> don't know, maybe could be done by overwrite FieldSpec.

Correct - or override the value access.

> 3.  If there any way to prevent bBrowser lost the edit focus?,

Yes (but I advise against it). Use FocusChange or COntrolFocusChange.

Cheers,

Geoff

[toc] | [prev] | [next] | [standalone]


#1443

From"richard.townsendrose" <richard.townsendrose@gmail.com>
Date2011-06-19 04:46 -0700
Message-ID<3d3895a8-af6c-4b7c-9f3f-5872c97beaea@g16g2000yqg.googlegroups.com>
In reply to#1439
Stephen

Please go and see the bdbserver class of bbrowser

When you set a complex filter, this is changed to a list of included
or excluded records [programmers choice]
at present if a record falls out of scope [or if a new falls into
scope] the array of records is not updated.

we have a button to refresh the filter. which updates the array of
records.

Richard

[toc] | [prev] | [next] | [standalone]


#1447

From"Stephen Quinn" <stevejqNO@bigpondSPAM.net.au>
Date2011-06-20 02:08 +1000
Message-ID<39pLp.7000$CS3.5350@viwinnwfe01.internal.bigpond.com>
In reply to#1443
Richard

> Please go and see the bdbserver class of bbrowser

A bdServer is a subclassed DBServer and still has to obey the rules of the 
RDD in use.
A complex filter isn't a SCOPE - it's a FILTER
    - I still do see how you can add/drop records using arrays from SCOPED 
indices

CYA
Steve 

[toc] | [prev] | [next] | [standalone]


#1462

From"Darmadi" <support@gfsoftindo.com>
Date2011-06-21 10:27 +0700
Message-ID<itp33g$k8s$1@speranza.aioe.org>
In reply to#1439
Hi Geoff,

> Or y9ou can add a calculated column to do the same thing.


Sorry, I'm really a newbie in bBrowser.
Would you please show me with a sample code ?


TIA,
Darmadi

[toc] | [prev] | [next] | [standalone]


#1463

From"Stephen Quinn" <stevejqNO@bigpondSPAM.net.au>
Date2011-06-21 13:40 +1000
Message-ID<moULp.7046$aH5.1697@viwinnwfe02.internal.bigpond.com>
In reply to#1462
Darmadi

> Sorry, I'm really a newbie in bBrowser.
> Would you please show me with a sample code ?

Have you read the docs/help??
Have you looked at the samples that came with bBrowser??

CYA
Steve 

[toc] | [prev] | [next] | [standalone]


#1512

From"Darmadi" <support@gfsoftindo.com>
Date2011-06-23 12:45 +0700
Message-ID<itujtb$fee$1@speranza.aioe.org>
In reply to#1463
Hi Steve,

Did you mean #Expression, but I don't know how to do calculated field for an 
auto-number, which field should I get ?

I have read the help and the samples:
bSample - bComboEdit
bSample - bCompoundValues
bSample - bGroupColumn
bSample - Blinking
bSample - BrowserCollection
bSample - ContextMenu
bSample - DataBrowser
bSample - DragDrop
bSample - Edit
bSample - FieldChoice
bSample - Images
bSample - MultipleServer
bSample - OwnerDrawValues
bSample - Selection
bSample - SensitiveSearch
bSample - SortMarker
bSample - Standard
bSample - VirtualColumn
bSample - Wallpaper

Did I miss some sample ?


Regards,
Darmadi

"Stephen Quinn"  wrote in message 
news:moULp.7046$aH5.1697@viwinnwfe02.internal.bigpond.com...

Darmadi

> Sorry, I'm really a newbie in bBrowser.
> Would you please show me with a sample code ?

Have you read the docs/help??
Have you looked at the samples that came with bBrowser??

CYA
Steve

[toc] | [prev] | [next] | [standalone]


#1513

From"Stephen Quinn" <stevejqNO@bigpondSPAM.net.au>
Date2011-06-23 16:59 +1000
Message-ID<NvBMp.7210$aH5.5354@viwinnwfe02.internal.bigpond.com>
In reply to#1512
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 

[toc] | [prev] | [next] | [standalone]


#1529

From"Darmadi" <support@gfsoftindo.com>
Date2011-06-24 10:07 +0700
Message-ID<iu0v2b$uqu$1@speranza.aioe.org>
In reply to#1513
Thanks Steve,

It's really enlight me.

Thanks,
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

[toc] | [prev] | [next] | [standalone]


#1530

From"Darmadi" <support@gfsoftindo.com>
Date2011-06-24 11:03 +0700
Message-ID<iu129l$47r$1@speranza.aioe.org>
In reply to#1513
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

[toc] | [prev] | [next] | [standalone]


#1531

From"Stephen Quinn" <stevejqNO@bigpondSPAM.net.au>
Date2011-06-24 16:40 +1000
Message-ID<riWMp.7274$aH5.1997@viwinnwfe02.internal.bigpond.com>
In reply to#1530
Darmadi

> The class bVirtualColumn may not be used directly in the bBrowser.
Then use a bDataColumn{}, they were all I ever needed to use.
    - sorry, meant to mention that in the previous post

bVirtualColumn{} wasn't in bBrowser when I was using it<g>

> So I tried bVirtualFieldColumn, but the 2nd parameter must be a server, 
> cannot be bBrowser  be a server.
bVirtualFieldColumn - just by reading the name I could guess it requires 
database access.

The info you want to display isn't in a FIELD of any database, unless you've 
created one to hold that info and that is virtually impossible to 
achieve/maintain.

A 'server' as used by bBrowser is whatever (DBServer, bBrowser, 
bArrayServer, Window) will give you the info with the appropriate 
ACCESS/METHOD available.

CYA
Steve 

[toc] | [prev] | [next] | [standalone]


#1539

From"Geoff Schaller" <geoffx@softwarexobjectives.com.au>
Date2011-06-25 00:00 +0000
Message-ID<4e05250c$0$57114$c30e37c6@exi-reader.telstra.net>
In reply to#1530
No, you are wrong.
Go back and re-read the documentation.
I know because I helped design the class.

No column, real or virtual, has to have a server but it always leaves a 
place holder for it case you want to use it. Remember that when you are 
providing an expression you can supply up to 4 additional objects to be 
used in the code block. The purpose in the case of the virtual column is 
pre-fill with values. Perhaps I can suggest some documentation 
enhancements for Joachim but stay with me here:


> The class bVirtualColumn may not be used directly in the bBrowser. After
> creating a virtual column the access bDataColumn:Editable has the value
> TRUE.

Yes - it is an abstract class from which the implementer classes are 
inherited. You could create your own and add additional behaviour. I do 
this all the time. And yes, its purpose is ALWAYS to be editable. 
Otherwise you would use just a regular expression column. Kapiche?

> So I tried bVirtualFieldColumn, but the 2nd parameter must be a server,
> cannot be bBrowser  be a server.

Actually no. It could be anything. Same with EVERY column type.

> oColumn := bVirtualFieldColumn{oBrowser,;
>                                odbsCUSTOMER,;
>                                {|oServer| 0},;
>                                #Expression}

You need to understand that this is a template expression. This is just 
as valid:

oCol := bVirtFldCol{oBrowser, oMyWin, {|oWin, oSelf, oSvr| ...<expr>}, 
#Expression, SELF, oDBServer}

it is just parameter substitution taking place. This is the actual 
template:

oCol := bVirtFldCol{oBrowser, param1, {|param1, param2, param3...| 
<expr>}, #Expression, param2, param3...}

Do you understand? If you do not use an expression type for the column 
then the base class will assume the first parm will be a server BUT IT 
DOES NOT HAVE TO BE.

> And if I try to force using bBrowser as Server, I got error.

I say it over and over. SHOW US YOUR CODE.

I use this column everywhere, especially to collect checked responses or 
genuine data. It adds fantastic flexibility to your browsers as a tool 
to collect variable user data entry. It works.

Geoff


[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web