DCBROWSE AND GOTOP PROBLEM
hello Roger
How can I remove the GoTop when using RefreshAll () in dcbrowse
DCBROWSE AND GOTOP PROBLEM
DCBROWSE AND GOTOP PROBLEM
Nolberto Paulino
Regards
Regards
Re: DCBROWSE AND GOTOP PROBLEM
Hey, Nolberto.
There is no implicite DbGotop() when calling RefreshAll().
There is no implicite DbGotop() when calling RefreshAll().
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Re: DCBROWSE AND GOTOP PROBLEM
Hello Tom
and because every time I use RefreshAll () the position of the DCBrowse goes to the first line and then it is positioned in the last line which is where I want it to be
and because every time I use RefreshAll () the position of the DCBrowse goes to the first line and then it is positioned in the last line which is where I want it to be
Nolberto Paulino
Regards
Regards
Re: DCBROWSE AND GOTOP PROBLEM
oBrowse:refreshAll()
oBrowse:goBottom()
oBrowse:pageUp()
oBrowse:forceStable()
oBrowse:goBottom()
oBrowse:pageUp()
oBrowse:forceStable()
The eXpress train is coming - and it has more cars.
Re: DCBROWSE AND GOTOP PROBLEM
Hi,
I have a similar problem when ADDING with the insert key in an array browse.
When the insert is started, the browse add a line on the last line on the active row. The above lines are moving up one line.
I would like to show the new line below the existing lines, but I don't succeed.
With the above code, the browse shows all the rows at the moment the user left the cell editing of the first column.
The problem is that a user thinks that the previous row is lost. He added one row, hits the INSERT key, and the previous row disappears, a cell edit on the first row appears.
When he hit ENTER the two rows are visible.
I have a similar problem when ADDING with the insert key in an array browse.
When the insert is started, the browse add a line on the last line on the active row. The above lines are moving up one line.
I would like to show the new line below the existing lines, but I don't succeed.
Code: Select all
@ 5,1 DCBROWSE oBrowse DATA aDetail SIZE 73,17 FIT ;
EDIT xbeBRW_ItemSelected MODE DCGUI_BROWSE_EDITEXIT ;
INSERT xbeK_ALT_INS EXIT {|o| o:gobottom(),o:forceStable()} INSMODE DCGUI_BROWSE_SUBMODE_2 ;
APPEND xbeK_INS ;
ITEMSELECTED { |uNil0,uNil1,oBrowse| fChkBox(oBrowse,aApp) } ;
COLOR {|o| zebra(o)}
The problem is that a user thinks that the previous row is lost. He added one row, hits the INSERT key, and the previous row disappears, a cell edit on the first row appears.
When he hit ENTER the two rows are visible.
Re: DCBROWSE AND GOTOP PROBLEM
Hi,
Meanwhile I solved it with a hotkey.
This does what I want.
Meanwhile I solved it with a hotkey.
Code: Select all
DCHOTKEY xbeK_INS ;
ACTION {|o| aadd(aDetail,{space(15),space(20),0,.F.,cEmptyRef,"",0} ),;
oBrowse:firstcol(), oBrowse:refreshAll() ,oBrowse:goBottom() , PostAppEvent(xbeP_Keyboard,xbeK_ENTER,,oBrowse)} PARENT oBrowse