Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #5324 > unrolled thread
| Started by | steve_dar@yahoo.com |
|---|---|
| First post | 2013-06-05 01:27 -0700 |
| Last post | 2013-06-15 07:02 -0700 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Is it possible bBrowser doing something like this? steve_dar@yahoo.com - 2013-06-05 01:27 -0700
Re: Is it possible bBrowser doing something like this? "Jamal" <jamal@examples.net> - 2013-06-05 10:33 -0400
Re: Is it possible bBrowser doing something like this? steve_dar@yahoo.com - 2013-06-15 07:02 -0700
| From | steve_dar@yahoo.com |
|---|---|
| Date | 2013-06-05 01:27 -0700 |
| Subject | Is it possible bBrowser doing something like this? |
| Message-ID | <de8d68b1-bd16-4c53-bdf1-a39f85503d13@googlegroups.com> |
Hi to all, Is it possible bBrowser doing something like this? (column -> BALANCE) DATE DESCRIPTION DEBIT CREDIT BALANCE 01/01 Beginning Balance 0 0 100 02/01 Deposit 0 300 400 03/01 Withdrawal 200 0 200 Regards, Darmadi
[toc] | [next] | [standalone]
| From | "Jamal" <jamal@examples.net> |
|---|---|
| Date | 2013-06-05 10:33 -0400 |
| Message-ID | <konjcs$42g$1@speranza.aioe.org> |
| In reply to | #5324 |
Yes, check bDataColumn and add and expression which references a method to
handle the virtual column.
Setup your browser, then add something like:
LOCAL oColumn AS bDataColumn
oColumn := bDataColumn{SELF:oDCbBrowser1, SELF:oDCbBrowser1:Server,
{|oServer, oWin| oWin:CalcBalance()}, #Expression, SELF}
oColumn:Editable := FALSE
oColumn:Width := 30
oColumn:HyperLabel := HyperLabel{#BALANCE}
oColumn:Caption := "Balance"
SELF:oDCbBrowser1:AddCOlumn(oColumn)
SELF:oDCbBrowser1:OpenColumn(oColumn,,FALSE)
SELF:oDCbBrowser1:Redraw( )
SELF:oDCbBrowser1:Refresh()
METHOD CalcBalance() AS LOGIC PASCAL CLASS MyBrowserWindow
if !SELF:oDCbBrowser1:Server:bof
SELF:oDCbBrowser1:Server:skip(-1) // to get previous row
balance
endif
RETURN SELF:oDCbBrowser1:Server:FIELDGET(#BALANCE) +
SELF:oDCbBrowser1:Server:FIELDGET(#CREDIT) -
SELF:oDCbBrowser1:Server:FIELDGET(#DEBIT)
I suggest you check the docs and samples that come with bBrowser for
additional help.
Jamal
wrote in message
news:de8d68b1-bd16-4c53-bdf1-a39f85503d13@googlegroups.com...
Hi to all,
Is it possible bBrowser doing something like this? (column -> BALANCE)
DATE DESCRIPTION DEBIT CREDIT BALANCE
01/01 Beginning Balance 0 0 100
02/01 Deposit 0 300 400
03/01 Withdrawal 200 0 200
Regards,
Darmadi
[toc] | [prev] | [next] | [standalone]
| From | steve_dar@yahoo.com |
|---|---|
| Date | 2013-06-15 07:02 -0700 |
| Message-ID | <2bbabc7d-807e-43b0-a722-ea54366b8885@googlegroups.com> |
| In reply to | #5327 |
Pada Rabu, 05 Juni 2013 21:33:50 UTC+7, Jamal menulis:
> Yes, check bDataColumn and add and expression which references a method to
>
> handle the virtual column.
>
>
>
> Setup your browser, then add something like:
>
>
>
> LOCAL oColumn AS bDataColumn
>
>
>
> oColumn := bDataColumn{SELF:oDCbBrowser1, SELF:oDCbBrowser1:Server,
>
> {|oServer, oWin| oWin:CalcBalance()}, #Expression, SELF}
>
> oColumn:Editable := FALSE
>
> oColumn:Width := 30
>
> oColumn:HyperLabel := HyperLabel{#BALANCE}
>
> oColumn:Caption := "Balance"
>
>
>
> SELF:oDCbBrowser1:AddCOlumn(oColumn)
>
> SELF:oDCbBrowser1:OpenColumn(oColumn,,FALSE)
>
>
>
> SELF:oDCbBrowser1:Redraw( )
>
> SELF:oDCbBrowser1:Refresh()
>
>
>
> METHOD CalcBalance() AS LOGIC PASCAL CLASS MyBrowserWindow
>
> if !SELF:oDCbBrowser1:Server:bof
>
> SELF:oDCbBrowser1:Server:skip(-1) // to get previous row
>
> balance
>
> endif
>
> RETURN SELF:oDCbBrowser1:Server:FIELDGET(#BALANCE) +
>
> SELF:oDCbBrowser1:Server:FIELDGET(#CREDIT) -
>
> SELF:oDCbBrowser1:Server:FIELDGET(#DEBIT)
>
>
>
> I suggest you check the docs and samples that come with bBrowser for
>
> additional help.
>
>
>
> Jamal
>
>
>
> wrote in message
>
> news:de8d68b1-bd16-4c53-bdf1-a39f85503d13@googlegroups.com...
>
>
>
> Hi to all,
>
>
>
> Is it possible bBrowser doing something like this? (column -> BALANCE)
>
>
>
> DATE DESCRIPTION DEBIT CREDIT BALANCE
>
> 01/01 Beginning Balance 0 0 100
>
> 02/01 Deposit 0 300 400
>
> 03/01 Withdrawal 200 0 200
>
>
>
> Regards,
>
> Darmadi
Thanks Jamal, I'll look forward it.
Darmadi
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web