Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #12826
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: BBrowser 4 Autorefresh of recordgroup with recalculate |
| Date | Fri, 7 Feb 2020 07:31:33 +0100 |
| Lines | 100 |
| Message-ID | <ha4ei5F8tcjU1@mid.individual.net> (permalink) |
| References | <9a6d81f7-43ef-454b-99b1-705c09c3141e@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| X-Trace | individual.net hb1Z7PKL1gvFnDojoslKmgqoFTPrRhu4PdyUDgH4PeRti/MdM= |
| Cancel-Lock | sha1:nD7jZGpMraeULmIjMkNGqPTkXbE= |
| User-Agent | XanaNews/1.18.1.6 |
| Xref | csiph.com comp.lang.clipper.visual-objects:12826 |
Show key headers only | View raw
Hi Jean-Philippe,
do you have tried to send a Notify( NOTIFYFILECHANGED )?
Then the bBrowser should reload completely.
Wolfgang
jeanphilippe@igsoft.be wrote:
> Dear everyone,
>
> I want to show data with auto refresh every 10 seconds using bbrowser
> 4 and recordsgroups.
>
> I call a timer every 10 seconds to refresh data with this code :
>
> self:oDCbBrowser1:Recalculate()
> self:oDCbBrowser1:Refresh()
> self:oDCbBrowser1:Redraw()
>
>
> But when a record change of group, a new group is created rather than
> joining the existing one :
>
> https://drive.google.com/file/d/1_cQmV9QC0T_JpzwjQme5Pnhr1frKn0V9/view
> ?usp=sharing
>
>
> My code for the group
>
> Method EnableGroups() class W_ATELIER_STATUS
>
> LOCAL oRecordGroupLevel as bRecordGroupLevel
> LOCAL cGroupKey as STRING
> LOCAL ocbGroupHeader as bCodeblock
> LOCAL oGroupHeader as bRecordGroupHeader
> LOCAL oFont as Font
> LOCAL oGrid as bGrid
> LOCAL cExpression as STRING
>
> // Initialize record groups
> self:oDCbBrowser1:RecordGroup:LevelList:Clear()
> self:oDCbBrowser1:gotop()
>
> // Record Group: Initializing Level 1
>
>
> cGroupKey := "Str(NumSoc,
> "+tostring(oEnvObject:nSocSize)+")+Str(ETAT,2)+LASTJOB" cExpression
> := "IIF(!Empty(LASTJOB), LASTJOB, '"+trad(self,"Aucun")+"')"
>
> oRecordGroupLevel := bRecordGroupLevel{bCodeblock{cGroupKey,
> self:oDCbBrowser1:server},; ,;
> nil,;
> _or(BRGLO_AUTOOPEN,
> BRGLO_GROUPLEASH, BRGLO_SERVERSEEK)}
> oRecordGroupLevel:GroupRowHeight := 24
> ocbGroupHeader := bCodeblock{cExpression,;
> self:oDCbBrowser1:server}
>
> oGroupHeader := bRecordGroupHeader{ocbGroupHeader}
> oRecordGroupLevel:GroupHeader := oGroupHeader
>
> oGrid := bGrid{BGRID_OUTLINEHORIZONTAL, , , , , Color{COLORBLACK}}
> oFont := self:oDCbBrowser1:GetDefaultFont()
> oFont:Bold := true
> oRecordGroupLevel:GroupView := bViewStyle{ ,;
> ,;
> BALIGN_LEFT +
> BALIGN_BOTTOM,; oFont,;
> oGrid}
>
>
>
>
>
> self:oDCbBrowser1:RecordGroup:LevelList:Add(oRecordGroupLevel)
>
> // Record Group: Recalculate the bBrowser and refresh the data
> // so that the record group levels are regard
> self:oDCbBrowser1:Recalculate()
> self:oDCbBrowser1:Refresh()
> self:oDCbBrowser1:Redraw()
>
> return nil
>
>
> I have the same sort of behavior using
>
> self:odcbBrowser1:AutoRefreshTime := 5000
>
> Any way to make it works ?
>
> Best regards,
> Jean-Philippe Bayard
--
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
BBrowser 4 Autorefresh of recordgroup with recalculate jeanphilippe@igsoft.be - 2020-02-05 01:19 -0800
Re: BBrowser 4 Autorefresh of recordgroup with recalculate "Wolfgang Riedmann" <wriedmann@gmail.com> - 2020-02-07 07:31 +0100
Re: BBrowser 4 Autorefresh of recordgroup with recalculate jeanphilippe@igsoft.be - 2020-02-06 23:59 -0800
Re: BBrowser 4 Autorefresh of recordgroup with recalculate jeanphilippe@igsoft.be - 2020-02-07 03:06 -0800
Re: BBrowser 4 Autorefresh of recordgroup with recalculate "Jamal" <noooospam@example.com> - 2020-02-07 23:14 -0500
Re: BBrowser 4 Autorefresh of recordgroup with recalculate jeanphilippe@igsoft.be - 2020-02-11 00:57 -0800
Re: BBrowser 4 Autorefresh of recordgroup with recalculate "Jamal" <nospam@example.com> - 2020-02-11 19:31 -0500
Re: BBrowser 4 Autorefresh of recordgroup with recalculate jeanphilippe@igsoft.be - 2020-02-12 03:54 -0800
Re: BBrowser 4 Autorefresh of recordgroup with recalculate "Jamal" <nospam@example.com> - 2020-02-13 00:09 -0500
Re: BBrowser 4 Autorefresh of recordgroup with recalculate jeanphilippe@igsoft.be - 2020-02-13 00:10 -0800
Re: BBrowser 4 Autorefresh of recordgroup with recalculate "Jamal" <nospam@example.com> - 2020-02-14 01:28 -0500
csiph-web