Hello,
I'm using SCOPE to show the CUSTOMERS and the related SERVICES
I noticed, after reaching round about 50 % scrolling through the CUSTOMER-dbf
the speed slows down.
I tested SYSREFRESH(), but no difference
A row of SERVICES shows 38 fields
As well the FOLDER-page is updated
// CUSTOMERS
REDEFINE XBROWSE oBrw1 ID 110 OF oDlg1 AUTOSORT ;
COLUMNS { "NAME1", "NAME", "PFLSTUFE", "MERKER", "VARIANTE" } ;
ALIAS "KUNDE"
SET ORDER TO TAG KUNDE1
...
...
// on CUSTOMER-change the SCOPE for SERVICES is defined
WITH OBJECT oBrw1
:bChange := { || PAT_GET(), ; // read vars CUSTOMERS
DBSELECTAREA( cMonat ), ; // select SERVICES
SET_SCOPE(cMonat), ; // set SCOPE
( cMonat )->( DBGOTOP() ), ; // SERVICE go top
oBrw2:SetPos( 1, 5 ), ; // Col-start-position
V_GET(cMonat), ; // read vars SERVICES
oBrw2:Refresh(), ; // Refresh browser SERVICES
oFld:aDialogs[ nPage ]:Update(), SYSREFRESH() } // Folder-update and Sysrefresh
END
// SERVICES
REDEFINE XBROWSE oBrw2 ID 130 OF oDlg1 AUTOSORT FASTEDIT ;
COLUMNS { "KUNDE", "NAME1","POS0","SIGNAL","AUFBAU", "KENNER", "T1","T2","T3","T4","T5","T6", ;
"T7","T8","T9","T10","T11","T12", ;
"T13","T14","T15","T16","T17","T18", ;
"T19","T20","T21","T22","T23","T24", ;
"T25","T26","T27","T28","T29","T30","T31", "VSUMME1" } ;
ALIAS cMonat
// the defined SCOPE of SERVICES :
STATIC FUNCTION SET_SCOPE(cMonat)
LOCAL cNName := UPPER(( "KUNDE" )->NAME1) + UPPER(( "KUNDE" )->NAME)
DBSELECTAREA( cMonat ) // Services
(cMonat)->( ORDSCOPE(0, cNName ) ) // Customer-name
(cMonat)->(ORDSCOPE(1, cNName ) )
oBrw2:Refresh()
RETURN NIL()
Browser 2 shows the SERVICES a customer receives each month.
Any idea, how to normelize the speed ?
best regards
Uwe