>> In the button field on the "On Click" tab in the URL field I use 'ServeDocument?Value=1' to call the procedure.
excellent. so when the user clicks on the button, the browser will call that procedure.
>> How do I add in embed code to call a URL that was in a button previously 'ServeDocument?Value=1'.
you can't do that.
>> I want to call the URL procedure out of embed from an other procedure.
you can't do that. The browser makes the requests.
what you could do is your code, then pass back an instruction to the browser to make the request.
ie set the button not to call a procedure. Then in the client-side tab, server code button, do whatever you want plus
p_web.script('some javascript')
in this case some javascript to open a new tab;
p_web.script('window.location('something.pdf','_blank')')
Cheers
Bruce