the instruction was;
open the parent file
load the parent record (the Unique ID fields are in the Value queue)
assign the session values
close the file.
In your code above I don't see you using the Value queue, and I don't see you opening and closing the file.
Actually, there are methods that make this code easy. try
p_web._LoadRecord(Log,LOG:pk_log_lognumber)
p_web.FileToSessionQueue(Log)
and yes, you're in completely the wrong embed since this needs to be done _before_ the browse filter, not way after it.
I recommend you right-click and look at the generated source - find where the filter is set, and embed this code before that.
cheers
Bruce