Closed ajaysdahibhate closed 4 years ago
What Mendix Studio Pro version are you using? I'll see if I can reproduce this. If not I might need a test-project from you to see what is going wrong
I am using Mendix Studio Pro 8.3.0. Also tried in 8.4.2.
Thanks. I will check it out
I have double checked it in my test-project with both 8.3.0 and 8.4.1, both seems to work fine. I will need to have a look at your project to see if you implemented it correctly. You can also send me a test-project that reproduces this exact issue.
Thank you Jelte. sending you the test project in which, this issue is occurring.
Thank you, I will have a look at it later today
Well, that was a short one ;-). You have the following problem:
That's the issue you're having, this is purely an implementation error. What I will do is take this as an example and see if I can improve the errors that the widget produces, as this might have just been overlooked.
This is the error you will be presented with in the new version of the widget, to make sure you can debug this issue.
Thank you for having a look. But I can only see one option while setting the "Reference to context", that is "MyFirstModule.SelectionHelper_View/MyFirstModule.View"
How should I resolve this?
If you would set an extra 1..* association from Node to SelectionHelper that would solve your problem
SelectionHelper *-->1 Node I mean
Thank you Jelte. It's working for me. It would also be helpful if you update the domain model screen shot in tree table documentation. Thanks for your help!
No, you are using Node as the context, I am using View as a context, see here. Anyway, good to be able to help. Good luck! :-)
Ohh ok.. My bad. Thank you!
I have followed given steps and able to load the tree table but on selecting one node I am getting this error: Caused by: java.lang.IllegalArgumentException: requirement failed: Reference 'MyFirstModule.SelectionHelper_View' only accepts ids of type 'MyFirstModule.View' (Id '[MendixIdentifier:: id=3659174697238629 objectType=MyFirstModule.Node entityID=13]' is not allowed).
Any idea about this error?