And use a XPath + CellFormatter to accomplish the task.
Create 2 DataSources, one for each table, and use DataSourceField.setForeignKey() to inform the relationship.
But… Maybe why I’m new for the SmartClient framework, I couldn’t figure out how to make work, and I will appreciate code examples if anyone already did that.
#1 is the right approach. With #2, foreignKey plus optionDataSource is not going to result in the format you want unless you implement a formatter, so your back to #1.
For help, show your best attempt at writing a formatter, and also, the result of using methods like isc.echo() and isc.echoAll() to dump the data involved to the Developer Console.
Ok, I will post my attempt soon. But… what I like int the #2 approach is the possibility to reuse the second DataSource in another context, in despite of in this example the Person is an Entity and the Address is a Value (following the Domain Driven Design…) and sounds good to send the two together in a single request…