[dabo-users] Production problem with granchild bizobj

Author: Nate Lowrie

Posted: 2011-12-03 at 10:03:40

I have a problem with a production bizobj set I need help with.

I have the following structure:

Orders

Order Line Items

Order Line Item Options

In order line items, I have a unit price with options as a virtual

field. The code for the field function is below.

def _getUnitPriceWithOptions(self):

price = 0.0

for record in self.orderLineItemOptionsBizobj.getDataSet():

price += float(record["price"])

return price + float(self.getFieldVal("unit_price"))

My problem is that I expect the order line item options bizobj to get

requeried for each line when the order line items are scanned through

when they are loaded into the grid. This is definitely not happening

and it was working a bit ago. As a result, the options for the first

line item are being applied to all line items and options for all the

other line items are ignored because the bizobj never requeries on the scan.

Regards,

Nate

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/4EDA3A4C.1010609@gmail.com

©2011 Nate Lowrie