You need to sign in to do that
Don't have an account?

Display a Visual Force page within a Form
Hi,
I have a multi line editor and the first column of the editor is a commandLink named Show Detail. My specific
requirement is that when user clicks on the Show Detail, link another page with the link "https://cs2.salesforce.com/apex/TestPage?id=a1ZR00000008koK" should open with in the current page in some page block or some form.
Can someone help me please.
Regards,
Rao
I have solved the problem another way. However I am thankful to you for your idea, because based on that I have been able to solve the problem.
Also I would be interesting if you can give me some more details of you solution.
Rao
Here goes my code:
<apex:pageBlock title="PRF" id="pixelReqPageBlock"> <apex:pageBlockTable value="{!PixelReq}" var="aReq" id="tbl"> <apex:column headerValue="History" id="hisTrack"> <apex:commandLink value="History" reRender="histIFrame"> <apex:param name="pixelReqID" value="{!aReq.id}"/> </apex:commandLink> </apex:column> </apex:pageBlock> <apex:pageBlock title="Iframe History PRF" id="histIFrame"> <apex:iframe id="theframe" src="www.pt.com/t?Page?id={!$CurrentPage.parameters.pixelReqID}" /> </apex:pageBlock>
All Answers
Hey
You would have to use an iframe and set the 'target' attribute on the outputLink to the name of the iframe e.g.
<apex:outputLink target="theframe" ... />
<apex:iframe id="theframe" />
Cheers,
Wes
Wesnolte,
Thanks for your help, I have tried this way but it is not working
Rao
<apex:outputLink target="theframe"> Show Inline History </apex:outputLink> <apex:pageBlock title="History" id="histIFrame"> <apex:iframe id="theframe" src="https://cs2.salesforce.com/aZR00000008kooMAA" frameborder="true" /> </apex:pageBlock>
I have solved the problem another way. However I am thankful to you for your idea, because based on that I have been able to solve the problem.
Also I would be interesting if you can give me some more details of you solution.
Rao
Here goes my code:
<apex:pageBlock title="PRF" id="pixelReqPageBlock"> <apex:pageBlockTable value="{!PixelReq}" var="aReq" id="tbl"> <apex:column headerValue="History" id="hisTrack"> <apex:commandLink value="History" reRender="histIFrame"> <apex:param name="pixelReqID" value="{!aReq.id}"/> </apex:commandLink> </apex:column> </apex:pageBlock> <apex:pageBlock title="Iframe History PRF" id="histIFrame"> <apex:iframe id="theframe" src="www.pt.com/t?Page?id={!$CurrentPage.parameters.pixelReqID}" /> </apex:pageBlock>