Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #12831
| From | "Jamal" <noooospam@example.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: BBrowser 4 Autorefresh of recordgroup with recalculate |
| Date | 2020-02-07 23:14 -0500 |
| Organization | albasani.net |
| Message-ID | <r1lcj2$67k$1@news.albasani.net> (permalink) |
| References | <9a6d81f7-43ef-454b-99b1-705c09c3141e@googlegroups.com> <cfc96b20-1872-493f-a1dd-b8c39a068029@googlegroups.com> <d642c62a-4a0a-40fe-9993-e948760367e5@googlegroups.com> |
How are you writing the OrderScope( )? Did you issue a GoTop() after it.
Jamal
wrote in message
news:d642c62a-4a0a-40fe-9993-e948760367e5@googlegroups.com...
The issue comes from the Scope, i think.
I do an OrderScope based on the state of my car to only show the ones in the
workshop.
If I reapply my orderScope in the refresh method, everything is back to
normal.
Maybe the browser has some data in memory, and cannot group them properly
due to the changed of values.
I tried a
self:oDCbBrowser1:RecordGroup:UpdateGroupHeaderCount()
But it doesnt seems to handle this case either.
Reapply OrderScope isn't really a good way for me due to the size of data
and the network speed of some of our customer.
Le vendredi 7 février 2020 08:59:19 UTC+1, jeanph...@igsoft.be a écrit :
> I tried, it refresh the same way.
>
> I think the problem is more in the Notify event of bbrowser when you click
> on the item of the group which changed.
>
> When i click on a record of another group, the group changes and shows
> right.
>
> https://drive.google.com/file/d/1FR1Vqv1IWXaQ3Z8UtXfiwlRlYWokaJgA/view?usp=sharing
>
> When i click on a record of the group which changed, the group split :
>
> https://drive.google.com/file/d/11-xOdnG5Wx39ckg_nMleuNxNNkFpxZ3m/view?usp=sharing
>
> This is really frustrating ;)
>
>
>
>
>
> Le mercredi 5 février 2020 10:19:11 UTC+1, jeanph...@igsoft.be a écrit :
> > 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