Forum Discussion
Hi Rick,
I've encountered the same issue and implemented a possible fix for this. I've not tested it completely but it looks good so far (=
Could you test the fix on a development environment and check if it solves your problem?
Two code tree files have to be modified to enable the tree grid view editor to map multiple elements pointing to the same recursion starting point (the files are from an ootb aras innovtor 11 sp 14 installation):
- \Innovator\Client\Modules\aras.innovator.TreeGridView\Scripts\Configurator\Models\QueryDefinition\QueryReferenceModel.js
Here I added a setter to the already existing getter for the property parentRefId on QueryReferenceModel object as shown below: - \Innovator\Client\Modules\aras.innovator.TreeGridView\Scripts\Configurator\DataLayer\BranchBuilder.js
Here is the main fix. The parentRefId property from recQueryReference object is not always the same as the _queryItemRefId property from lowLevelTreeRow object. This is caused by storing the query items in a dictionary where the key is the refId to the recursion query element. So when the first recursion is mapped, everything is fine, but if another recursion will be defined to the same recursion source object the dictionary will return the wrong query item:
Let me know, if you have further questions or suggestions on this!
Best regards,
Alex
Hi,
Unfortunately it didn't work for me, it seems like it made one of the items "jump" out of its place in the structure instead. Since my programming experience is limited, I don't know if I have any useful suggestions to offer.
Best Regards
Rick