Hi for this purpose you should create class, for example, then you will get selected rows, using class FormDataSource
here some code for you
calledDataSource ; //your data source
if (calledDataSource.anyMarked()) //YourTable_ds = calledDataSource
{
for (YourTableMarked = calledDataSource.getFirst(true, false); YourTableMarked ;
YourTableMarked = calledDataSource.getNext())
{
thanks for you're answer, but It's something else I want to do.
I want to get de rownumber of the selected row.
if there are 100records in the grid and the selected row is the 50th row, then should come below:
row 50 of 100
or something like that.
Or is that possible with you're code?
Comments
here some code for you
calledDataSource ; //your data source
if (calledDataSource.anyMarked()) //YourTable_ds = calledDataSource
{
for (YourTableMarked = calledDataSource.getFirst(true, false); YourTableMarked ;
YourTableMarked = calledDataSource.getNext())
{
info(YourTableMarked .YourField);
}
}
else
{
YourTableMarked = calledDataSource.cursor();
info('Select only'+ YourTableMarked.YourField) ;
}
thanks for you're answer, but It's something else I want to do.
I want to get de rownumber of the selected row.
if there are 100records in the grid and the selected row is the 50th row, then should come below:
row 50 of 100
or something like that.
Or is that possible with you're code?
Greetz