Why does Mendix not learn to identify patterns and data types?

0
I have been trying to retrieve a single object by giving the offset an index and the amount as 1. Why does it not set the return type as an OBJECT instead of A LIST? Like above, even entities of the same type but SIMPLY with different names are not allowed to be assigned to each other as LISTS. This just increases the process of applying logic, shows a lack of flexibility.   Mendix needs to make notes of these simple needs for better solution making.
asked
2 answers
0

Hello Priya,

 

What makes your approach differ from the select first approach, because then it returns an object.

image.png

 

Hope this helps

answered
0

You can use the Object List Operations module in the Marketplace. This has the Java Action JA_List_GetObjectByIndex which I think will do what you need.

 

https://marketplace.mendix.com/link/component/117715

 

I hope this helps.

answered