Hello Mike,
Have you tried using an event listener to execute the PS.Edit call?
Something like:
Form.addEventListener("objectLoaded", EditRecord);
function
EditRecord()
{
PS.Edit()......
}
Someone else on here may have a different idea.
The other thing you might try first is to try executing the PS.Edit call from a button first to make sure you have that sorted out first and then try putting it into a function like the one above. Just a thought.
Justin