Мда.. 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.
С Уважением,
Георгий.