Paul McNett wrote:
> Uwe Grauer wrote:
>> Paul McNett wrote:
>>> Uwe Grauer wrote:
>>>> Paul McNett wrote:
>>>>> Uwe Grauer wrote:
>>>>>> If i do a myform.requery on my form, how can i make sure that i get a
>>>>>> consistent display after the requery?
>>>>>> I have a form with a parent and a child grid.
>>>>>> If i delete a record from my parent grid my child grid doesn't get
>>>>>> updated after the requery.
>>>>>> I have different pages on my form and the delete doesn't happen on the
>>>>>> page with the grids. I happens on a edit-page.
>>>>> I think this is a known problem, just discovered a few days ago by John. 
>>>>> Run the dBizobj test and you'll see the failure:
>>>>> sol:~/dabo/dabo/biz/test pmcnett$ python test_dBizobj.py
>>>>>
>>>>> ======================================================================
>>>>> FAIL: Requerying bizMain to 0 records should remove bizChild's records, 
>>>>> too.
>>>>> ----------------------------------------------------------------------
>>>>> Traceback (most recent call last):
>>>>>    File "test_dBizobj.py", line 449, in testChildren_clearParent
>>>>>      self.assertEqual(bizChild.RowCount, 0)
>>>>> AssertionError: 2 != 0
>>>>>
>>>>> ----------------------------------------------------------------------
>>>>> Ran 25 tests in 0.315s
>>>>>
>>>>> FAILED (failures=1)
>>>>>
>>>>>
>>>> Yes, thanks for the hint.
>>>> This way we see bugs at least after the commits. :-)
>>> I just added ticket #1078 for this.
>>>
>> It hasn't anything to do with 0 records in the main bizobj.
>> If you would have firebird running i could send you a form for testing.
> 
> Are you seeing any sort of traceback or error log message?
> 
> Is it that the child bizobj isn't requerying or that the grid isn't 
> displaying current information from the child bizobj? If the latter, try 
> a grdChild.update() and/or grdChild.refresh()
> 
> 

Sorry, had not time in the afternoon and still have no time to explain
more. It's more like a display problem and might have nothing to do with
John's issue.
I will come back tomorrow on this.

Uwe


_______________________________________________
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/dabo-users/[EMAIL PROTECTED]

Reply via email to