I have a managed/packaged visual force page DetailPage
and I want a custom button on MasterPage
to open it with parameters (the Id of the master record).
What doesn't work:
- Creating a CustomButton to link to a VF Page (from the dropdown list): The list only offers pages which extend my
Master__c
object - Using a URL formula like
/apex/DetailPage?master={!mypack_Master__c.Id}
: the relative URL doesn't work once deployed because the packaged app runs on a different host!
I know I can make a VF page which redirects but this seems like overkill:
- Is there no way to know the full URL of a packaged page?
- Why is
{!URLFOR($Page.CommentAdd, null)}
not possible?
UPDATE:
{!URLFOR($Page.mypack.DetailPage, null)}
doesn't work{!URLFOR($Page.mypack_DetailPage, null)}
doesn't work$Action
applies only to standard objects apparently!
$Page
in formula fields :( one can fully qualify the namespace and pass in parameters:{!URLFOR('/apex/ns__detailPage', null, ['foo'='bar','herp'='derp'])}
but you say the packaged app runs on a different host... even with$Page
how would one do that?