Than either there is a bug or I must miss something on how to display the batch content as in my case, only 3 records get displayed in the first page
despite the number of records in the rowset being 4 and batchesneeded
returning false.

I always loop from $batch{"start"} to $batch{"end"} (as the documentation suggests) and it works correctly. I just tried this code:

all records([ingredients])
reduce selection([ingredients]; 4)
$rs := RowSet.newFromSelection(->[ingredients]; "name:[ingredients] name")
$batch := Batch.newFromRowSet($rs; 3)

$batch contains:

end             4
orphan          2
overlap         0
row_count       4
size            3
start           1

Note that end = 4. This is correct.


Regards,

   Aparajita
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoylibrary.com


_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to