How can i get a value of master from detail.

Hi, i have an application master - detail, When i am in detail, i need get a value from a field of master, Is possible get this value of buffer if the record master is not saved still.?

Create a global variable in the master on load
Event and use the variable in the detail to get the value
Remember to clear the variable before setting it
So it doesn’t stay after reloading records

easy way run the sc_lookup() function in detail…

Thanks you, the way is use global variable, because sc_lookup is only for query database not for variables in memory.

but if user changes after loading in master, then how to get the value in detail?

but if user changes after loading in master, then how to get the value in detail? i thought of refreshing the page when value in master changes, so that on re-load, it might work but in sc or php, refresh page doesnt work.

i manage to do this by creating [global variable] in onload event in master, if anything changes in master field, then change it in Ajax Events OnChange.

thanks