Master/Detail Forms

Does anyone know how to access the field on a master form like {fieldonmasterform}?

I would prefer to not use the sc_lookup method as a user can change the value on the field without saving if there are already child rows in the details form…

Any thoughts?

I think is not possibole, only exist a macro for put a value to master. It very necessary a macro for make that functionality.

Read a value from a master form: [SIZE=12px]$your_value = [form_masterform_fieldname];[/SIZE]

Just looking in View / Data in session menu

$sess_code = $_SESSION['scriptcase']['sc_num_page'];
$myValue = $_SESSION['sc_session'][$sess_code]['form_name']['dados_form']['field_name'];

In my case field_name is always in lower case

Or better define in master form a session variable, assign value on onChange event and get from code in detail as [mysessionvariable]

Thanks everyone…last suggestion works!