Refresh of DCBROWSE

This forum is for eXpress++ general support.
Post Reply
Message
Author
skiman
Posts: 1185
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Refresh of DCBROWSE

#1 Post by skiman »

Hi,

I have a problem with the refresh of a DCBROWSE. It's a browse of an array.

I have a DCGET which has in the VALID the following:
aadd(aData, { getvalue, xxx }) ,;
oBrowse:gobottom(),oBrowse:forceStable() ,;
oBrowse:refreshall(),DC_GetRefresh(GetList),.T. }

I want the browse to display the last elements of the array. If my browse is 10 rows, and I have added 11 rows to my array, I want to see row 2 - 11. After a new element is added to the array, i want to see row 3 - 12, and so on.

I don't succeed. :?

Code: Select all

@ 1.6,5 DCSAY "TEST: " GET _cArtikel ;
     GETID 'oArtNr' ;
     PICTURE '@!K' ;
     VALID {|o,lValid|  lValid := if(!empty(_cArtikel), fFastZoekArt(@_cArtikel,aApp,o),.F.) ,;
        if (lValid ,fChkScan(@aPicked,aApp,_cArtikel),),;
	_cArtikel:=space(15) ,o:get:home() , o:setdata() ,;
        oBrowse:gobottom(),oBrowse:forceStable() ,;
	oBrowse:refreshall(),DC_GetRefresh(GetList),.T. } ;  
     SAYRIGHT ;
     SAYSIZE 18 ;
     GETSIZE 20 

@ 3,5 DCBROWSE oPickBrowse DATA aPicked SIZE 70,22 FIT FONT amain(9,5) 
	DCBROWSECOL ELEMENT 2 HEADER 'Header 1' PARENT oPickBrowse WIDTH 15 EDITOR {|| nil }  
	DCBROWSECOL ELEMENT 3 HEADER 'Header 2' PARENT oPickBrowse WIDTH 25 EDITOR {|| nil } 
Best regards,

Chris.
www.aboservice.be

skiman
Posts: 1185
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Refresh of DCBROWSE

#2 Post by skiman »

Hi,

Don't bother.

After posting my message I saw that I was using oBrowse and oPickBrowse.
Best regards,

Chris.
www.aboservice.be

Post Reply