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
Sipmle question about table browse
Moderator: Moderatoren
- Martin Altmann
- Foren-Administrator
- Beiträge: 16544
- Registriert: Fr, 23. Sep 2005 4:58
- Wohnort: Berlin
- Hat sich bedankt: 114 Mal
- Danksagung erhalten: 48 Mal
- Kontaktdaten:
Re: Sipmle question about table browse
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
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
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.
Re: Sipmle question about table browse
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
Browse: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
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
Browse: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
- Martin Altmann
- Foren-Administrator
- Beiträge: 16544
- Registriert: Fr, 23. Sep 2005 4:58
- Wohnort: Berlin
- Hat sich bedankt: 114 Mal
- Danksagung erhalten: 48 Mal
- Kontaktdaten:
Re: Sipmle question about table browse
Eldhose,
OK - how about :BrowseRecno instead of :RowPos()?
Regards,
Martin
OK - how about :BrowseRecno instead of :RowPos()?
Regards,
Martin
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.