Hello community, I am having a lot of trouble understanding how Mendix processes object retrieval based on id. The way I understand it, whenever we write an XPath constraint like "id = '[%CurrentUser%]'", the object associated with the current User should be retrieve. However, it seems like Mendix thinks differently. Here is an example of this case, where I am trying to retrieve the 'Trainee' object related to the same Account. Apparently there is an incompatibility between the 'expression types'. What am I getting wrong here? I appreciate your help, as this would unlock my further understanding about how Mendix deals with data retrieval. Right now, it feels very random to me :( Thanks in advance
asked
João Meireles
1 answers
0
Is Trainee a specialization of Account? Then use the cast activity. If it has an association to Administration.Account, retrieve by association, or if you want xpath, e.g.: