mendixlabs / mendix-tree-table

Mendix Tree Table (Mendix 8, React based, Webmodeler compatible)
https://appstore.home.mendix.com/link/app/111095/
Other
2 stars 6 forks source link

Error on selection #13

Closed ajaysdahibhate closed 4 years ago

ajaysdahibhate commented 4 years ago

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?

DomainModel Helper

JelteMX commented 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

ajaysdahibhate commented 4 years ago

I am using Mendix Studio Pro 8.3.0. Also tried in 8.4.2.

JelteMX commented 4 years ago

Thanks. I will check it out

JelteMX commented 4 years ago

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.

ajaysdahibhate commented 4 years ago

Thank you Jelte. sending you the test project in which, this issue is occurring.

TreeTablePractice.zip

JelteMX commented 4 years ago

Thank you, I will have a look at it later today

JelteMX commented 4 years ago

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.

JelteMX commented 4 years ago

Screenshot 2020-02-03 09 51 52

This is the error you will be presented with in the new version of the widget, to make sure you can debug this issue.

ajaysdahibhate commented 4 years ago

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" ReferenceToContext

How should I resolve this?

JelteMX commented 4 years ago

If you would set an extra 1..* association from Node to SelectionHelper that would solve your problem

JelteMX commented 4 years ago

SelectionHelper *-->1 Node I mean

ajaysdahibhate commented 4 years ago

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!

JelteMX commented 4 years ago

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! :-)

ajaysdahibhate commented 4 years ago

Ohh ok.. My bad. Thank you!