Forum Discussion
db_pdx
3 years agoValued Contributor
Hi Oscar: I think your issue is:
Dim ParentMember As String = ParentList.First.ToString
You are forcing the first member returned from GetParents, but the there are multiple parents for the entity and the returned order will not necessarily follow the order you see in your search screen.
I think you need two lists, the GetParents of your base entity and the Descendants of your E#Gathering_Processing. Then compare them and return only the matching one.
-DB
Related Content
- 5 months ago
- 3 years ago