On Nov 28, 2006, at 1:55 AM, Aparajita Fishman wrote:

Checked archives and read documentation (but may of missed it:-)

You missed it. Batch.new is documented.


Okay, I had an earlier version of v4 reference in my Preview open recent list - it is documented - and I guess it tells me that there is no way to change the size of the batch if you use the shortcut syntax method.

From reference
Typically, all of the batches in a given site will share the same size, minimum size
(orphan), and overlap.

From _init in Batch.a4l
// If $inSize is a collection, we are using the shortcut syntax which takes the start
// from the given collection and uses defaults for everything else.

That answers my question in that I can't change the size. Not the answer I was looking for, but one I'll have to live with - or hack the library. Something like this hack to _init:

$inSize := choose(collection has($inSize;"_size");$inSize {"_size"};self{"_size"})

Then if I want a non-typical size

$attributes{"_size"} := 15
$batch := Batch.new(records in selection([project]); $attributes)

But we all now the repercussions of violating Active4D private -- DO NOT EDIT!

Steve
_______________________________________________
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