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


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

BBrowser 4 Autorefresh of recordgroup with recalculate

Started byjeanphilippe@igsoft.be
First post2020-02-05 01:19 -0800
Last post2020-02-14 01:28 -0500
Articles 11 — 4 participants

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


Contents

  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

#12825 — BBrowser 4 Autorefresh of recordgroup with recalculate

Fromjeanphilippe@igsoft.be
Date2020-02-05 01:19 -0800
SubjectBBrowser 4 Autorefresh of recordgroup with recalculate
Message-ID<9a6d81f7-43ef-454b-99b1-705c09c3141e@googlegroups.com>
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

[toc] | [next] | [standalone]


#12826

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2020-02-07 07:31 +0100
Message-ID<ha4ei5F8tcjU1@mid.individual.net>
In reply to#12825
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



-- 

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


#12827

Fromjeanphilippe@igsoft.be
Date2020-02-06 23:59 -0800
Message-ID<cfc96b20-1872-493f-a1dd-b8c39a068029@googlegroups.com>
In reply to#12825
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

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


#12828

Fromjeanphilippe@igsoft.be
Date2020-02-07 03:06 -0800
Message-ID<d642c62a-4a0a-40fe-9993-e948760367e5@googlegroups.com>
In reply to#12827
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

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


#12831

From"Jamal" <noooospam@example.com>
Date2020-02-07 23:14 -0500
Message-ID<r1lcj2$67k$1@news.albasani.net>
In reply to#12828
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 

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


#12836

Fromjeanphilippe@igsoft.be
Date2020-02-11 00:57 -0800
Message-ID<de0a555e-9079-438c-9bd1-55d3e767e1f8@googlegroups.com>
In reply to#12831
It's a simple OrderScope : 

oDossier := DOSSIER{}
oDossier:SetORder(34)
oDossier:ORDERSCOPE(TOPSCOPE, StrSoc() + " 1")
oDossier:ORDERSCOPE(BOTTOMSCOPE, StrSoc() + " 1")    	 



Le samedi 8 février 2020 05:14:27 UTC+1, Jamal a écrit :
> 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

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


#12840

From"Jamal" <nospam@example.com>
Date2020-02-11 19:31 -0500
Message-ID<r1vh1u$18g7$1@gioia.aioe.org>
In reply to#12836
You need to issue:

oDossier := DOSSIER{}
oDossier:SetORder(34)
oDossier:Gotop()     // add this

oDossier:ORDERSCOPE(TOPSCOPE, StrSoc() + " 1")
oDossier:ORDERSCOPE(BOTTOMSCOPE, StrSoc() + " 1")

oDossier:Gotop() // add this

This ensures the scope to activated properly.

Try it and let us know.

Jamal

wrote in message 
news:de0a555e-9079-438c-9bd1-55d3e767e1f8@googlegroups.com...

It's a simple OrderScope :

oDossier := DOSSIER{}
oDossier:SetORder(34)
oDossier:ORDERSCOPE(TOPSCOPE, StrSoc() + " 1")
oDossier:ORDERSCOPE(BOTTOMSCOPE, StrSoc() + " 1")



Le samedi 8 février 2020 05:14:27 UTC+1, Jamal a écrit :
> 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 

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


#12841

Fromjeanphilippe@igsoft.be
Date2020-02-12 03:54 -0800
Message-ID<c8322ee2-69de-48e0-adc7-b491fbf567ea@googlegroups.com>
In reply to#12840
It works until a refresh event happens (like if you do F5 on the bbrowser).
Then it starts to failed again, multiple group with the same title, line changing of groups etc.




Le mercredi 12 février 2020 01:32:02 UTC+1, Jamal a écrit :
> You need to issue:
> 
> oDossier := DOSSIER{}
> oDossier:SetORder(34)
> oDossier:Gotop()     // add this
> 
> oDossier:ORDERSCOPE(TOPSCOPE, StrSoc() + " 1")
> oDossier:ORDERSCOPE(BOTTOMSCOPE, StrSoc() + " 1")
> 
> oDossier:Gotop() // add this
> 
> This ensures the scope to activated properly.
> 
> Try it and let us know.
> 
> Jamal
> 
> wrote in message 
> news:de0a555e-9079-438c-9bd1-55d3e767e1f8@googlegroups.com...
> 
> It's a simple OrderScope :
> 
> oDossier := DOSSIER{}
> oDossier:SetORder(34)
> oDossier:ORDERSCOPE(TOPSCOPE, StrSoc() + " 1")
> oDossier:ORDERSCOPE(BOTTOMSCOPE, StrSoc() + " 1")
> 
> 
> 
> Le samedi 8 février 2020 05:14:27 UTC+1, Jamal a écrit :
> > 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

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


#12842

From"Jamal" <nospam@example.com>
Date2020-02-13 00:09 -0500
Message-ID<r22lmm$1aqq$1@gioia.aioe.org>
In reply to#12841
I suggest you create a small reproducible sample AEF that shows the problem 
and email it to bBrowser support.
Another option is to post the sample at the X# forum.

Jamal

wrote in message 
news:c8322ee2-69de-48e0-adc7-b491fbf567ea@googlegroups.com...

It works until a refresh event happens (like if you do F5 on the bbrowser).
Then it starts to failed again, multiple group with the same title, line 
changing of groups etc.


Le mercredi 12 février 2020 01:32:02 UTC+1, Jamal a écrit :
> You need to issue:
>
> oDossier := DOSSIER{}
> oDossier:SetORder(34)
> oDossier:Gotop()     // add this
>
> oDossier:ORDERSCOPE(TOPSCOPE, StrSoc() + " 1")
> oDossier:ORDERSCOPE(BOTTOMSCOPE, StrSoc() + " 1")
>
> oDossier:Gotop() // add this
>
> This ensures the scope to activated properly.
>
> Try it and let us know.
>
> Jamal
>
> wrote in message
> news:de0a555e-9079-438c-9bd1-55d3e767e1f8@googlegroups.com...
>
> It's a simple OrderScope :
>
> oDossier := DOSSIER{}
> oDossier:SetORder(34)
> oDossier:ORDERSCOPE(TOPSCOPE, StrSoc() + " 1")
> oDossier:ORDERSCOPE(BOTTOMSCOPE, StrSoc() + " 1")
>
>
>
> Le samedi 8 février 2020 05:14:27 UTC+1, Jamal a écrit :
> > 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 

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


#12843

Fromjeanphilippe@igsoft.be
Date2020-02-13 00:10 -0800
Message-ID<b7d2b822-a95b-4a93-b4b3-c4d6f4c11b87@googlegroups.com>
In reply to#12842
In fact, this behavior happens in the sample of brecordGroups... 

https://drive.google.com/file/d/1QCVjQvpP6L0Le4wvw7J_A4uufT-kyGYH/view?usp=sharing

if you select Gloria Walsh and push F5, then Elishabeth Cooper appears 2 time.

https://drive.google.com/file/d/1XXh6aqUEGN6NJKLMGFlfgx1R20Vlv6N6/view?usp=sharing

This is the same kind of wrong behavior.
I'll send it to the support.



Le jeudi 13 février 2020 06:09:44 UTC+1, Jamal a écrit :
> I suggest you create a small reproducible sample AEF that shows the problem 
> and email it to bBrowser support.
> Another option is to post the sample at the X# forum.
> 
> Jamal
> 
> wrote in message 
> news:c8322ee2-69de-48e0-adc7-b491fbf567ea@googlegroups.com...
> 
> It works until a refresh event happens (like if you do F5 on the bbrowser).
> Then it starts to failed again, multiple group with the same title, line 
> changing of groups etc.
> 
> 
> Le mercredi 12 février 2020 01:32:02 UTC+1, Jamal a écrit :
> > You need to issue:
> >
> > oDossier := DOSSIER{}
> > oDossier:SetORder(34)
> > oDossier:Gotop()     // add this
> >
> > oDossier:ORDERSCOPE(TOPSCOPE, StrSoc() + " 1")
> > oDossier:ORDERSCOPE(BOTTOMSCOPE, StrSoc() + " 1")
> >
> > oDossier:Gotop() // add this
> >
> > This ensures the scope to activated properly.
> >
> > Try it and let us know.
> >
> > Jamal
> >
> > wrote in message
> > news:de0a555e-9079-438c-9bd1-55d3e767e1f8@googlegroups.com...
> >
> > It's a simple OrderScope :
> >
> > oDossier := DOSSIER{}
> > oDossier:SetORder(34)
> > oDossier:ORDERSCOPE(TOPSCOPE, StrSoc() + " 1")
> > oDossier:ORDERSCOPE(BOTTOMSCOPE, StrSoc() + " 1")
> >
> >
> >
> > Le samedi 8 février 2020 05:14:27 UTC+1, Jamal a écrit :
> > > 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

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


#12845

From"Jamal" <nospam@example.com>
Date2020-02-14 01:28 -0500
Message-ID<r25em9$1u3j$1@gioia.aioe.org>
In reply to#12843
I can reproduce the issue in the bBrowser's RecordGroups which is deep in 
the long Refresh() method.

Hope Joachim can issue a fix.

Jamal

wrote in message 
news:b7d2b822-a95b-4a93-b4b3-c4d6f4c11b87@googlegroups.com...

In fact, this behavior happens in the sample of brecordGroups...

https://drive.google.com/file/d/1QCVjQvpP6L0Le4wvw7J_A4uufT-kyGYH/view?usp=sharing

if you select Gloria Walsh and push F5, then Elishabeth Cooper appears 2 
time.

https://drive.google.com/file/d/1XXh6aqUEGN6NJKLMGFlfgx1R20Vlv6N6/view?usp=sharing

This is the same kind of wrong behavior.
I'll send it to the support.



Le jeudi 13 février 2020 06:09:44 UTC+1, Jamal a écrit :
> I suggest you create a small reproducible sample AEF that shows the 
> problem
> and email it to bBrowser support.
> Another option is to post the sample at the X# forum.
>
> Jamal
>
> wrote in message
> news:c8322ee2-69de-48e0-adc7-b491fbf567ea@googlegroups.com...
>
> It works until a refresh event happens (like if you do F5 on the 
> bbrowser).
> Then it starts to failed again, multiple group with the same title, line
> changing of groups etc.
>
>
> Le mercredi 12 février 2020 01:32:02 UTC+1, Jamal a écrit :
> > You need to issue:
> >
> > oDossier := DOSSIER{}
> > oDossier:SetORder(34)
> > oDossier:Gotop()     // add this
> >
> > oDossier:ORDERSCOPE(TOPSCOPE, StrSoc() + " 1")
> > oDossier:ORDERSCOPE(BOTTOMSCOPE, StrSoc() + " 1")
> >
> > oDossier:Gotop() // add this
> >
> > This ensures the scope to activated properly.
> >
> > Try it and let us know.
> >
> > Jamal
> >
> > wrote in message
> > news:de0a555e-9079-438c-9bd1-55d3e767e1f8@googlegroups.com...
> >
> > It's a simple OrderScope :
> >
> > oDossier := DOSSIER{}
> > oDossier:SetORder(34)
> > oDossier:ORDERSCOPE(TOPSCOPE, StrSoc() + " 1")
> > oDossier:ORDERSCOPE(BOTTOMSCOPE, StrSoc() + " 1")
> >
> >
> >
> > Le samedi 8 février 2020 05:14:27 UTC+1, Jamal a écrit :
> > > 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 

[toc] | [prev] | [standalone]


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


csiph-web