function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
<apex:page setup="false" sidebar="false" standardController="contact" recordSetVar="ContactList"> <apex:form > <apex:commandButton value="New Contact" action="/apex/customcontacts"/> <apex:pageBlock > <apex:pageBlockTable value="{!Contactlist}" var="A"> <apex:column headerValue="Contact Name"> <apex:commandLink onclick = "JavaScript:window.open('/apex/customcontactsdetailedpage?id={!A.id}','ContactDetails','height=500, width=500'); return false;"> {!A.Name} </apex:commandLink> </apex:column> <apex:column value="{!A.ID}"/> <apex:column value="{!A.Phone}"/> <apex:column value="{!A.mailingcountry}"/> </apex:pageBlockTable> </apex:pageBlock> </apex:form> </apex:page>
<apex:commandLink action="/apex/CustomContactsDetailedPage?id={!A.id}" target="_blank" > {!A.Name} </apex:commandLink>
<apex:commandLink value=" {!A.Name}" onclick="window.open('/ {!A.id}')"/> {!A.Name} </apex:commandLink >
<apex:commandLink action="/apex/CustomContactsDetailedPage?id={!USE_YOUR_PARAMITERS_HERE}" target="_blank"> {!A.Name} </apex:commandLink >
Use Below code:
<apex:page setup="false" sidebar="false" standardController="contact" recordSetVar="ContactList"> <apex:form > <apex:commandButton value="New Contact" action="/apex/customcontacts"/> <apex:pageBlock > <apex:pageBlockTable value="{!Contactlist}" var="A"> <apex:column headerValue="Contact Name"> <apex:commandLink value="{!A.id}" onclick="window.open('/apex/customcontactsdetailedpage?id={!A.id}')"/> {!A.Name} </apex:commandLink > </apex:column> <apex:column value="{!A.ID}"/> <apex:column value="{!A.Phone}"/> <apex:column value="{!A.mailingcountry}"/> </apex:pageBlockTable> > </apex:pageBlock> </apex:form> </apex:page>
You need to use JS:
Use Below Code:
<apex:page setup="false" sidebar="false" standardController="contact" recordSetVar="ContactList"> <apex:form > <apex:commandButton value="New Contact" action="/apex/customcontacts"/> <apex:pageBlock > <apex:pageBlockTable value="{!Contactlist}" var="A"> <apex:column headerValue="Contact Name"> <apex:commandLink value="{!A.id}" onclick="window.open('/apex/customcontactsdetailedpage?id={!A.id}')"/> {!A.Name} </apex:commandLink > </apex:column> <apex:column value="{!A.ID}"/> <apex:column value="{!A.Phone}"/> <apex:column value="{!A.mailingcountry}"/> </apex:pageBlockTable> > </apex:pageBlock> </apex:form> <script language="javascript" type="text/javascript"> function popitup(url) { newwindow=window.open(url,'name','height=200,width=150'); if (window.focus) {newwindow.focus()} return false; } </script> </apex:page>
Bellow code will work for you.
JavaScript: return false is added to avoid your page refresh while opening popup window.
All Answers
Please use target="_blank" for open new window
You can use the below code
Popup:
Or
In New Tab:
Thanks
Vinod
I need a command link to open the pop-up window here iam giving my code
<apex:page setup="false" sidebar="false" standardController="contact" recordSetVar="ContactList">
<apex:form >
<apex:commandButton value="New Contact" action="/apex/customcontacts"/>
<apex:pageBlock >
<apex:pageBlockTable value="{!Contactlist}" var="A">
<apex:column headerValue="Contact Name">
<apex:commandLink action="/apex/customcontactsdetailedpage?id={!A.id}" target="_blank">
{!A.Name}
</apex:commandLink>
</apex:column>
<apex:column value="{!A.ID}"/>
<apex:column value="{!A.Phone}"/>
<apex:column value="{!A.mailingcountry}"/>
</apex:pageBlockTable> >
</apex:pageBlock>
</apex:form>
</apex:page>
Use Below code:
If you Need any help do let me know.
Thanks
Vinod
You need to use JS:
Use Below Code:
Bellow code will work for you.
JavaScript: return false is added to avoid your page refresh while opening popup window.