Показать сообщение отдельно
Старый 26.03.2005, 12:31   #4  
George Nordic is offline
George Nordic
Модератор
Аватар для George Nordic
Злыдни
 
4,480 / 1255 (50) ++++++++
Регистрация: 17.12.2003
Адрес: Moscow
Записей в блоге: 9
Мда.. display выполняются на клиенте...

Давай обманем:сделай 2 метода:
PHP код:
server Amount getPrice()
{
    
salesLine salesline
    amount amount
;
    ;
    while 
select Amount
        from SalesLine
        where sl
.sid == this.sid....
        {
            
amount += ...
        }  
    
returm amount;
}

display amount showAmount()
{
    return 
this.getAmount.

showAmount закэшируй обязадельно. попробуй addCalculatemethod.

С Уважением,
Георгий.