Cannot make lazyloading work

Hi,

What I’ve done so far:
Added a field in oxorder table: depotnum
Reconstructed view in services/tools
Cleared tmp
sublcassed controllers/order.php and added this:

public function getOrderObject()
{
    $oOrder = oxNew( 'oxorder' );
    return $oOrder;
    }

Added a block to order.tpl with the following:

[{$smarty.block.parent}]
[{assign var="oOrder" value=$oView->getOrderObject() }]
<input hidden name="lazyfield" value='[{ $oOrder->oxorder__depotnum->value }]' />

In the same module I also have a sublcass of oxorder where on _SetOrderStatus I’d like to read this value oxorder__depotnum->value, but it is emtpy string.
What might be wrong?

Thanks
Greg

EDIT: in the database the depotnum field has a default value of 0

In fact the example code: ocb_ftporderdata
Has the same problem, since there is a new field added to the oxorder table and this code in the example:

if( $sStatus == 'OK' && $this->oxorder__ocbexported->value != '1' )
        {
            $this->_exportOrderToRemote();
        }

where this is called: $this->oxorder__ocbexported->value
that value returns an empty string. So the example works because it is different than 1, but in the database the default value is 0 so it should return this value.