Is this possible if get an ItemType inside another query within AML?

I have two ItemTypes Person and Address. There is a property Person.address_id that stores the config_id of an address, for a particular purpose it is just a string type, not refer ItemType. I use below query to select a person (*):

<Item action='get' type='PERSON' select ='address_id'>
 <id>'abcdxyz'</id>
</Item>

I want to add some AML code to get Address Item with the id provided in above statement, something likes:

<Item action='get' type='ADDRESS'>
 <id>The (*) query that returns an address id</id>
</Item>

I know that we can achieve the goal by writing a server method, but I just curious is there any way to get that within AML query?

Many thanks,


Parents Reply Children
No Data