On 10/28/10 10:56 AM, Jacek Kałucki wrote:
> Użytkownik Paul McNett napisał:
>> On 10/28/10 9:55 AM, Jacek Kałucki wrote:
>>
>>> Hi.
>>>
>>> I sometimes have to use such referencing:
>>> self.getChildByDataSource("a"). ... .getChildByDataSource("z").
>>> What do you think about such idea,
>>> that dBizobj.getChildByDataSource() method return
>>> child object reference across all children?
>>>
>>> http://dabo.codepad.org/IdjRU3GH
>>>
>> Hm, I never use that method. I simply store attribute references to my
>> bizobjs, so I
>> can do for example:
>>
>> biz = bizOrders.bizOpenings.bizMiscOptions
>>
>>
>
> Good idea, but I still must add attributes manually.
No biggie, when you do it in the initProperties() of your bizobj subclass.
> Although, I still can modify addChild method to:
> addChild(bo, "bizOpenings")
> and use setattr() function.
Good idea, I think I'll implement that in my main bizobj subclass. Will cut
down on
noise in my initProperties().
Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]