Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #1386 > unrolled thread
| Started by | "Marc Verkade [Marti]" <marcatm@rti.nl> |
|---|---|
| First post | 2011-06-14 00:13 +0200 |
| Last post | 2011-06-22 22:31 +0000 |
| Articles | 7 on this page of 27 — 8 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
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 2 of 2 — ← Prev page 1 [2]
| From | "Darmadi" <support@gfsoftindo.com> |
|---|---|
| Date | 2011-07-13 11:23 +0700 |
| Message-ID | <ivj6kj$lts$1@speranza.aioe.org> |
| In reply to | #1539 |
Hi Geoff,
I have take a look in SDK
on METHOD FillBuffer() CLASS bBrowser
SELF:auRecord[iRow-SELF:iFirstRow+1, BRI_DELETED] :=
SELF:oServer:Deleted
that's why need a server.
But it's Ok, I can use the 2nd Arg to pass object of bBrowser.
Now the problem which ACCESS or METHOD that I can get the row no.
What I want to do:
One table: S_CUSTOMER.DBF
Filter a condition, so partly record was showed.
Showed record in the bBrowser, I want a running number from 1 to xxx
according to showed record, something like this:
No. CUSTOMER #Recno
1. CUSTOMER A #45
2. CUSTOMER B #107
3. CUSTOMER C #90
Now what I want is a column "No."
Regards,
Darmadi
"Geoff Schaller" wrote in message
news:4e05250c$0$57114$c30e37c6@exi-reader.telstra.net...
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]
| From | "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> |
|---|---|
| Date | 2011-07-13 16:32 +1000 |
| Message-ID | <w2bTp.8536$aH5.1539@viwinnwfe02.internal.bigpond.com> |
| In reply to | #1662 |
Darmadi
> Now the problem which ACCESS or METHOD that I can get the row no.
See the bBrowser docs.
oBB:RowNo
The above will get you the row number of the bBrowser
- ie if you have 10 visible rows then you'll see 1-10 even if you have
15 records.
If what you want is the 1-15 for the records then use a SCOPE on the index
and use OrderKeyNo() to get the order from the index.
If you want to use a filter then your on your own<g>
- one possibility is to use an array to hold the record numbers in the
order you need
CYA
Steve
[toc] | [prev] | [next] | [standalone]
| From | "Darmadi" <support@gfsoftindo.com> |
|---|---|
| Date | 2011-07-14 09:05 +0700 |
| Message-ID | <ivlisi$al4$1@speranza.aioe.org> |
| In reply to | #1663 |
Hi Steve,
But there is no bBrowser:RowNo ACCESS.
Regards,
Darmadi
"Stephen Quinn" wrote in message
news:w2bTp.8536$aH5.1539@viwinnwfe02.internal.bigpond.com...
Darmadi
> Now the problem which ACCESS or METHOD that I can get the row no.
See the bBrowser docs.
oBB:RowNo
The above will get you the row number of the bBrowser
- ie if you have 10 visible rows then you'll see 1-10 even if you have
15 records.
[toc] | [prev] | [next] | [standalone]
| From | Camille Kater <katercamXXX@pt.lu> |
|---|---|
| Date | 2011-07-14 07:32 +0200 |
| Message-ID | <1310621970_1@vo.lu> |
| In reply to | #1668 |
bBrowser:GetRowNo() Camille On 14/07/2011 04:05, Darmadi wrote: > Hi Steve, > > But there is no bBrowser:RowNo ACCESS. > > Regards, > Darmadi > > "Stephen Quinn" wrote in message > news:w2bTp.8536$aH5.1539@viwinnwfe02.internal.bigpond.com... > > Darmadi > >> Now the problem which ACCESS or METHOD that I can get the row no. > > See the bBrowser docs. > oBB:RowNo > > The above will get you the row number of the bBrowser > - ie if you have 10 visible rows then you'll see 1-10 even if you have > 15 records. > >
[toc] | [prev] | [next] | [standalone]
| From | "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> |
|---|---|
| Date | 2011-07-14 15:20 +1000 |
| Message-ID | <2rvTp.8672$CS3.1145@viwinnwfe01.internal.bigpond.com> |
| In reply to | #1668 |
Darmadi
Maybe it's called :Row I don't have any help/docs to look at (nor do I have
VO installed on this machine)
- I'm doing this from memory, I've used it (or something similar) in
code
If you can wait until next week I'll be going over to Phils office and I can
look up the bBrowser help file or look up the code where I used it and get
back to you
CYA
Steve
[toc] | [prev] | [next] | [standalone]
| From | "Geoff Schaller" <geoffx@softwarexobjectives.com.au> |
|---|---|
| Date | 2011-07-14 22:16 +0000 |
| Message-ID | <4e1f6ac2$0$24350$c30e37c6@exi-reader.telstra.net> |
| In reply to | #1662 |
Darmadi,
You are confusing the concepts of a browser vs a Column. We are talking
about columns and the params involved DO NOT have to be servers. Most
often they are (or the first one is) and for automated behaviour, it is
expected. But for calculated columns it can truly be anything. The
browser just creates the place holders for the column cells and the
column itself keeps the data. NOT THE BROWSER or BROWSER SERVER.
I can see you don't have the source code version but I recommend you get
it. Some of these "mysteries" will become crystal clear.
But the browser itself already has a row number and it is quite well
documented in the help.
Geoff
"Darmadi" <support@gfsoftindo.com> wrote in message
news:ivj6kj$lts$1@speranza.aioe.org:
> Hi Geoff,
>
> I have take a look in SDK
> on METHOD FillBuffer() CLASS bBrowser
>
> SELF:auRecord[iRow-SELF:iFirstRow+1, BRI_DELETED] :=
> SELF:oServer:Deleted
>
> that's why need a server.
>
> But it's Ok, I can use the 2nd Arg to pass object of bBrowser.
>
> Now the problem which ACCESS or METHOD that I can get the row no.
>
> What I want to do:
> One table: S_CUSTOMER.DBF
> Filter a condition, so partly record was showed.
>
> Showed record in the bBrowser, I want a running number from 1 to xxx
> according to showed record, something like this:
>
> No. CUSTOMER #Recno
> 1. CUSTOMER A #45
> 2. CUSTOMER B #107
> 3. CUSTOMER C #90
>
> Now what I want is a column "No."
>
> Regards,
> Darmadi
>
>
> "Geoff Schaller" wrote in message
> news:4e05250c$0$57114$c30e37c6@exi-reader.telstra.net...
>
> 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]
| From | "Geoff Schaller" <geoffx@softwarexobjectives.com.au> |
|---|---|
| Date | 2011-06-22 22:31 +0000 |
| Message-ID | <4e026d44$0$57110$c30e37c6@exi-reader.telstra.net> |
| In reply to | #1462 |
bBrowser has a perfectly good sample showing this. Geoff "Darmadi" <support@gfsoftindo.com> wrote in message news:itp33g$k8s$1@speranza.aioe.org: > 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] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web