On 2/9/2010 12:06 AM, Ed Leafe wrote:
> On Feb 8, 2010, at 4:35 PM, Sim Zacks wrote:
>
>   
>> The Customer bizobj sets self.KeyField = "customerid"
>> My CreateBizobj function contains
>>        app=self.Application
>>        self.Connection = app.getConnectionByName("thedb")
>>        customers=app.biz.CustomerBizobj(self.Connection)
>>        lookups = app.biz.LookupBizobj(self.Connection)
>>   calls=app.biz.CallsBizobj(self.Connection,LinkField="customerid")
>>        self.addBizobj(customers)
>>        self.addBizobj(lookups)       
>>        customers.addChild(calls)
>>
>> When I start the form, I get the first customer data and the call grid
>> lists all the calls for all customers. When I click the next button
>> (self.next()), it goes to the next customer and still lists all the
>> calls. When I remove the addChild call then no calls show up, so I know
>> that it is making some sort of connection between them.
>>     
>       First, you seem to have a typo: your CallsBizobj instance is created as 
> 'calls', but you add a child named 'calllogs'.
>
>       Second, the value of LinkField for the calls bizobj should be the name 
> of the column in the calls table that is linked to the parent, not the name 
> of the column in the parent that it is linked to. Is there a column in the 
> calls table named 'customerid'? 
>
>
> -- Ed Leafe
>   
That was a posting typo (I pasted the wrong line), the code itself is
correct.
There is a field calls.customerid

Sim
_______________________________________________
Post Messages to: [email protected]
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/[email protected]

Reply via email to