Master Detail

Hello Friends,

I AM a new Kotlin developer, AM discovering this language, everything seems to be fine, but there is a thing a could not find i all the web yet, how to do a Master detail. I mean for example doing an invoice, a classic one, I need to especify date, hour, user, number and so on but in the same Activity save the datails such as product, price, quantity, and so on.

That is my question if you can help me it would be great.

Greetings.

If you are using JavaFX take a look at these examples for TornadoFX