We are trying to create a pop-up button same way as achieved in Entity inheritance sample project
But we are getting a class cast exception for the same.
So, I have a class called party and the child classes to this are 1.Person, 2.Organization
also, Person has several more child classes same way organization too has many child classes
What I am trying to achieve is trying to use the popup button to open the editor screens to both the above-mentioned classes and the child classes to them. Is it possible for me to achieve the same.?
When i click the create popup button in the party browser , i want to have options of opening the editor screens or Person and organization which are infact the child classes to Party , But instead when i try to achieve the same I am facing Class cast exception.
For you to understand it better, i will share the screenshots and the code i used.
Unfortunately, I can’t reproduce the problem. I’ve created a demo project that is based on your screenshots and code and it works as expected. Please, check the project below, hope this helps.
The code u sent was working fine but i have child classes for Organization and person as well i.e, Parent Class Party Child Class Person Sub Child Class Employee
How to work this out…
The code is working fine with single level inheritance and not multilevel inheritance.