Seite 1 von 1

Sipmle question about table browse

Verfasst: Do, 18. Feb 2010 13:58
von eldhose
hi all,

can anyone tell me how to show serial number in table browse I tried browse:recno() but it is showing table rcord number

Is there any property in xclass dsxbrowse?

Thanks
Eldhose

Re: Sipmle question about table browse

Verfasst: Do, 18. Feb 2010 14:10
von Martin Altmann
Hi Eldhose,
what do you mean by serial number? Do you mean the number of the row?
If so, try :rowPos() (when using dsXBrowse() or dsOBrowse()).

Regards,
Martin

Re: Sipmle question about table browse

Verfasst: So, 21. Feb 2010 14:55
von eldhose
hi Martin,

RowPos() return the position of the row which is visible only in the browse .ie if we have 15 records in the table and the
browse has only 5 rows first time it shows 5 records only in the browse when we scroll down then next 5 like..
if the browse show 10 the record in the browse the Recpos() return 5 but actually the index is 10(browse only showing record 5 to 10 )

My actuall requirement is i have scoped one table and show it in the browse after scoping i got 50 records
my browse has three column serial,code ,description In serial column i want to show 1 to 50

:oBrowse:AddColumnDB({{"Serial No", {||::oSaleTab:oBrowse:Recno() },,3}, ;
{"Company", "CODE",,20}, ;
{"Action", "DESC",,15}}

In Arraybrowse it is showing 1 to 50 in serial column but in table browse it is showing the postion of record from the table (like 50,20 etc..)

how can show index number for the serial column

Thanks
Eldhose

Re: Sipmle question about table browse

Verfasst: So, 21. Feb 2010 15:04
von Martin Altmann
Eldhose,
OK - how about :BrowseRecno instead of :RowPos()?

Regards,
Martin