You need to sign in to do that
Don't have an account?
Venkata Sravan Kumar Bandari
PLEASE SOLVE THIS CODE.........No output and also no bugs
<apex:page standardController="Account" recordSetVar="accs">
<apex:pageBlock >
<apex:pageBlockTable value="{!accs}" var="acc">
<apex:column headerValue="Action"/>
<apex:outputLink title="view detail in a Popup window" onclick="return openPopup('{!acc.Id}');"> Details </apex:outputLink>
<apex:column value="{!acc.Name}"/>
<apex:column value="{!acc.Industry}"/>
<apex:column value="{!acc.Type}"/>
</apex:pageBlockTable>
</apex:pageBlock>
<script>
function openPopup(id)
{
var newwin=windows.open(!'{!$Page.Popup}?id='+id,'Popup','height=600,width=650,left=100,top=100,resizable=no',scrollbars=yes,toolbar=no,status=no');
if(window.focus)
{
newwin.focus();
}
return false;
}
</script>
</apex:page>
<apex:pageBlock >
<apex:pageBlockTable value="{!accs}" var="acc">
<apex:column headerValue="Action"/>
<apex:outputLink title="view detail in a Popup window" onclick="return openPopup('{!acc.Id}');"> Details </apex:outputLink>
<apex:column value="{!acc.Name}"/>
<apex:column value="{!acc.Industry}"/>
<apex:column value="{!acc.Type}"/>
</apex:pageBlockTable>
</apex:pageBlock>
<script>
function openPopup(id)
{
var newwin=windows.open(!'{!$Page.Popup}?id='+id,'Popup','height=600,width=650,left=100,top=100,resizable=no',scrollbars=yes,toolbar=no,status=no');
if(window.focus)
{
newwin.focus();
}
return false;
}
</script>
</apex:page>
Try Below code:
Before executing page, create Account records in your Org.
Thanks,
Vatsal
it is not displaying the link details in the vfpage
<apex:page standardController="Account" recordSetVar="accs">
<apex:pageBlock >
<apex:pageBlockTable value="{!accs}" var="acc">
<apex:column headerValue="Action">
<apex:outputLink title="view detail in a Popup window" onclick="return openPopup('popup?id={!acc.Id}');" > Details </apex:outputLink>
</apex:column>
<apex:column value="{!acc.Name}"/>
<apex:column value="{!acc.Industry}"/>
<apex:column value="{!acc.Type}"/>
</apex:pageBlockTable>
</apex:pageBlock>
<script>
function openPopup(id)
{
var newwin=windows.open('{!$Page.Popup}?id='+id,'Popup','height=600,width=650,left=100,top=100,resizable=no',scrollbars=yes,toolbar=no,status=no);
if(window.focus)
{
newwin.focus();
}
return false;
}
</script>
</apex:page>
Please replace your code with the code below
If that solves your problem, please mark this as the best answer.
Thanks
Rohit Girdhar
That code is working fine for me.
If it is not working for you, it might be a missing permission. Please contact salesforce support. they will help you in this.
Thanks
Rohit