ProBindingSource and DataSets containing recursive data

Posted by karsten.ehrlich on 07-Mar-2011 10:22

Hi,
i have some issues with ProBindingSource in combination with ProDataSets containing one recursive data-relation and some other data-relations.
Basically, if you pass such a DataSet to the constructor of the ProBindingSource you will get a System.IndexOutOfRangeException.
The sample procedure attached to this post does the trick for you. (Since there seems no self-referencing data in the sportsdb I had to fake the recursive relationships. )
The dataset in the example looks like that.
define dataset dsEmployee for ttEmployee,ttFamily,ttSomething
 
  data-relation r1 for ttEmployee,ttFamily
    relation-fields (EmpNum,EmpNum) nested    
  data-relation r2 for ttFamily,ttEmployee
    relation-fields (SelfEmpNum,EmpNum) recursive    
  data-relation r3 for ttFamily,ttSomething
    relation-fields (EmpNum,EmpNum) nested
  . 
(We pretend father and son (or mother and daughter, or….) work in the same company.)
Now to the parts that make me wonder:
1. If you remove the third table and data-relation r3, everything works fine.
or
2. If you deactivate r3 (setting it to not-active), everything works fine.
or
3. If you leave r3 active and delete the self-referencing data, everything works fine.
or
4. If you set no DataSources at all and fill the entire DataSet using a "before-fill" call-back, everything works fine.
It doesn’t even matter if the third table contains any data or not.
Can someone shed some light into this, any ideas?
Thanks.

[View:~/cfs-file.ashx/__key/communityserver-discussions-components-files/19/BindingSourcerecursion.p.zip:550:0]

All Replies

Posted by maura on 08-Mar-2011 10:01

You should submit a bug for this issue.

Posted by karsten.ehrlich on 09-Mar-2011 02:38

Ok, will do so.

Thanks

Posted by Anil Kumar on 09-Mar-2011 03:07

Hi Karsten,

Support for recursive relations in ProbindingSource feature is provided from 11.0 release. This is already implemented in 11.0. I had tested this with the attached file and it works properly. However, In 102B service packs this feature is not available.

Thanks and Regards,

Anil Kumar.

Posted by maura on 09-Mar-2011 08:26

I was able to reproduce this issue in version 11, both in and outside the debugger, so it is a bug.

The core (language) support for recursive data-relations was added to the product in version 10.2A,

so this bug can be fixed both in 10.2B and 11.0.

Posted by olivier.dunemann on 06-Jun-2011 04:54

Is there any fix still foreseen for 10.2B?

Thx

Posted by maura on 06-Jun-2011 08:51

What is the bug number?

Posted by olivier.dunemann on 06-Jun-2011 09:00

I have no idea. I was just leaning on your previous post:

maura wrote:

I was able to reproduce this issue in version 11, both in and outside the debugger, so it is a bug.

The core (language) support for recursive data-relations was added to the product in version 10.2A,

so this bug can be fixed both in 10.2B and 11.0.

Posted by maura on 06-Jun-2011 09:10

I believe your bug was OE00205963. It has been fixed in 10.2B05 and 11.0.

Posted by olivier.dunemann on 06-Jun-2011 12:15

Thank you, Maura.

So we will patiently wait for SP5,... or OE11.

This thread is closed