Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Lost Focus
Message
From
10/06/2004 08:57:04
 
 
To
10/06/2004 08:40:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00912156
Message ID:
00912171
Views:
8
>do not know the code on GridPageNRefresh() or Setup,
>but i think that the problem is the refresh() or Setup() into a not active >( visible ) page.

>You can refresh and setup() only the active page ?

GridPage1Refresh() --
LOCAL llOK
WITH ThisForm
	llOK=.oMovPed.PedidosNaoSatisfeitos(.oRSMovPed)
	IF .oRSMovPed.RecordCount>0
		lcAliasGridPage1=LOWER(SYS(2015))
		.RS2CURSOR(.oRSMovPed,lcAliasGridPage1)
		SELECT(lcAliasGridPage1)
	 ELSE
		.SfPageFrame1.SfCnt1.Page1.SfGrd1.RecordSource=''
		.SfPageFrame1.SfCnt1.Page1.SfGrd1.refresh()
	ENDIF
ENDWITH
GridPage1Setup() --
WITH THISFORM

.SfPageFrame1.Page1.SfGrd1.RecordSource=''
.SfPageFrame1.Page1..SfGrd1.refresh()

SELECT (lcAliasGridPage1)
GO top
.SfPageFrame1.Page1.SfGrd1.RecordSource=(lcAliasGridPage1)
.SfPageFrame1.Page1.Sfgrd1.Refresh()		
.SfPageFrame1.Page1.SfGrd1.Column1.controlsource=lcAliasGridPage1+'.c_codigo'
.SfPageFrame1.Page1.SfGrd1.Column2.controlsource=lcAliasGridPage1+'.c_cod_matpri'	
ENDWITH
I remove the code from the timer for page2 and page3, and only refresh de Page1 and it's activepage and the grid lost focus.

João
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform