Subject Master-Detail with "how to use generator"
Author Gustavo Novaes
Hi,

I want a sample (or example) that show how manage "id" field of master table?

I have a form where user can input master and details record in the same session. 
Before save master record to database , need get next code. 
Like 
master table (Id(integer), when(date)). PK - ID. Generator to ID.
Detail table (Id(intger), Item(integer), value (string)). PK ID + Item.
Generator to Item.

Thank you and sorry about my english.

Gustavo Novaes