Sipmle question about table browse

Moderator: Moderatoren

Antworten
eldhose
Rookie
Rookie
Beiträge: 7
Registriert: Di, 16. Sep 2008 7:11
Kontaktdaten:

Sipmle question about table browse

Beitrag 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
Benutzeravatar
Martin Altmann
Foren-Administrator
Foren-Administrator
Beiträge: 16502
Registriert: Fr, 23. Sep 2005 4:58
Wohnort: Berlin
Hat sich bedankt: 111 Mal
Danksagung erhalten: 48 Mal
Kontaktdaten:

Re: Sipmle question about table browse

Beitrag 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
:grommit:
Webseite mit XB2.NET und ausschließlich statischem Content in Form von HTML-Dateien: https://www.altem.de/
Webseite mit XB2.NET und ausschließlich dynamischem Content in Form von in-memory-HTML: https://meldungen.altem.de/

Mitglied der XUG Osnabrück
Vorsitzender des Deutschsprachige Xbase-Entwickler e. V.
eldhose
Rookie
Rookie
Beiträge: 7
Registriert: Di, 16. Sep 2008 7:11
Kontaktdaten:

Re: Sipmle question about table browse

Beitrag 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
Benutzeravatar
Martin Altmann
Foren-Administrator
Foren-Administrator
Beiträge: 16502
Registriert: Fr, 23. Sep 2005 4:58
Wohnort: Berlin
Hat sich bedankt: 111 Mal
Danksagung erhalten: 48 Mal
Kontaktdaten:

Re: Sipmle question about table browse

Beitrag von Martin Altmann »

Eldhose,
OK - how about :BrowseRecno instead of :RowPos()?

Regards,
Martin
:grommit:
Webseite mit XB2.NET und ausschließlich statischem Content in Form von HTML-Dateien: https://www.altem.de/
Webseite mit XB2.NET und ausschließlich dynamischem Content in Form von in-memory-HTML: https://meldungen.altem.de/

Mitglied der XUG Osnabrück
Vorsitzender des Deutschsprachige Xbase-Entwickler e. V.
Antworten