Author | Topic: obrowse:refreshall() | |
---|---|---|
Reinthaler Rudolf | obrowse:refreshall() on Wed, 17 Sep 2008 11:57:10 +0200 Hello, I have a very strange problem. There are two workareas (alias GER and alias GUTS) with different browser objects. When calling the function, the record pointer in the workarea GER moves to eof() regards Rudolf static function init_gerGS(oBrowse) ****************************************************************** guts->(OrdSetFocus("TERMINAL")) guts->(DC_SETSCOPE(0,ger->nummer)) guts->(DC_SETSCOPE(1,ger->nummer)) guts->(dbgotop()) dcqdebug ger->(eof()) record is ok oBrowse:RefreshAll() !!! dcqdebug ger->nummer GER is now to eof() oBrowse:ForceStable() return .t. | |
Joe Carrick | Re: obrowse:refreshall() on Thu, 18 Sep 2008 08:42:02 -0700 Do you have a relation set between these 2 databases? BTW, I don't think you need the :forceStable() -Joe Reinthaler Rudolf wrote: > Hello, > I have a very strange problem. There are two workareas (alias GER and alias > GUTS) with different browser objects. When calling the function, the record > pointer in the workarea GER moves to eof() > regards > Rudolf > > static function init_gerGS(oBrowse) > ****************************************************************** > guts->(OrdSetFocus("TERMINAL")) > guts->(DC_SETSCOPE(0,ger->nummer)) > guts->(DC_SETSCOPE(1,ger->nummer)) > guts->(dbgotop()) > dcqdebug ger->(eof()) record is ok > oBrowse:RefreshAll() !!! > dcqdebug ger->nummer GER is now to eof() > oBrowse:ForceStable() > return .t. > > | |
Reinthaler Rudolf | Re: obrowse:refreshall() on Fri, 19 Sep 2008 00:44:59 +0200 Hello Joe, no relation between the databases. I will try without forcestable() regards Rudolf "Joe Carrick" <joe.carrick@dslextreme.com> schrieb im Newsbeitrag news:5baa500$5dcaafc4$2c4@news.alaska-software.com... > Do you have a relation set between these 2 databases? > > BTW, I don't think you need the :forceStable() > > -Joe > > Reinthaler Rudolf wrote: >> Hello, >> I have a very strange problem. There are two workareas (alias GER and >> alias GUTS) with different browser objects. When calling the function, >> the record pointer in the workarea GER moves to eof() >> regards >> Rudolf >> >> static function init_gerGS(oBrowse) >> ****************************************************************** >> guts->(OrdSetFocus("TERMINAL")) >> guts->(DC_SETSCOPE(0,ger->nummer)) >> guts->(DC_SETSCOPE(1,ger->nummer)) >> guts->(dbgotop()) >> dcqdebug ger->(eof()) record is ok >> oBrowse:RefreshAll() !!! >> dcqdebug ger->nummer GER is now to eof() >> oBrowse:ForceStable() >> return .t. >> | |
Joe Carrick | Re: obrowse:refreshall() on Tue, 23 Sep 2008 13:35:10 -0700 There may be another issue. oBrowse:refreshAll may be using the current database record pointer for reference. Using multiple browses with multiple databases simultaneously can be difficult. I generally select the proper workarea before refreshing the corresponding browse. There should be a way of doing it without that, but I don't know... -Joe Reinthaler Rudolf wrote: > Hello Joe, > no relation between the databases. I will try without forcestable() > regards > Rudolf > > > "Joe Carrick" <joe.carrick@dslextreme.com> schrieb im Newsbeitrag > news:5baa500$5dcaafc4$2c4@news.alaska-software.com... >> Do you have a relation set between these 2 databases? >> >> BTW, I don't think you need the :forceStable() >> >> -Joe >> >> Reinthaler Rudolf wrote: >>> Hello, >>> I have a very strange problem. There are two workareas (alias GER and >>> alias GUTS) with different browser objects. When calling the function, >>> the record pointer in the workarea GER moves to eof() >>> regards >>> Rudolf >>> >>> static function init_gerGS(oBrowse) >>> ****************************************************************** >>> guts->(OrdSetFocus("TERMINAL")) >>> guts->(DC_SETSCOPE(0,ger->nummer)) >>> guts->(DC_SETSCOPE(1,ger->nummer)) >>> guts->(dbgotop()) >>> dcqdebug ger->(eof()) record is ok >>> oBrowse:RefreshAll() !!! >>> dcqdebug ger->nummer GER is now to eof() >>> oBrowse:ForceStable() >>> return .t. >>> > | |
James Loughner | Re: obrowse:refreshall() on Tue, 23 Sep 2008 22:52:28 -0400 In all the codeblocks use an alias. All DBF movement is done via the codeblocks. If there is a relation set between the browses ie A browse is invoice headers and B browse is the detail of the currently selected header. Use A:Selected to set a scope on the detail and refresh B: Jim Joe Carrick wrote: > There may be another issue. oBrowse:refreshAll may be using the current > database record pointer for reference. Using multiple browses with > multiple databases simultaneously can be difficult. I generally select > the proper workarea before refreshing the corresponding browse. > > There should be a way of doing it without that, but I don't know... > > -Joe > > Reinthaler Rudolf wrote: >> Hello Joe, >> no relation between the databases. I will try without forcestable() >> regards >> Rudolf >> >> >> "Joe Carrick" <joe.carrick@dslextreme.com> schrieb im Newsbeitrag >> news:5baa500$5dcaafc4$2c4@news.alaska-software.com... >>> Do you have a relation set between these 2 databases? >>> >>> BTW, I don't think you need the :forceStable() >>> >>> -Joe >>> >>> Reinthaler Rudolf wrote: >>>> Hello, >>>> I have a very strange problem. There are two workareas (alias GER >>>> and alias GUTS) with different browser objects. When calling the >>>> function, the record pointer in the workarea GER moves to eof() >>>> regards >>>> Rudolf >>>> >>>> static function init_gerGS(oBrowse) >>>> ****************************************************************** >>>> guts->(OrdSetFocus("TERMINAL")) >>>> guts->(DC_SETSCOPE(0,ger->nummer)) >>>> guts->(DC_SETSCOPE(1,ger->nummer)) >>>> guts->(dbgotop()) >>>> dcqdebug ger->(eof()) record is ok >>>> oBrowse:RefreshAll() !!! >>>> dcqdebug ger->nummer GER is now to eof() >>>> oBrowse:ForceStable() >>>> return .t. >>>> >> |