You need to sign in to do that
Don't have an account?
Tej
right click on command link not working
i have a list of records which are displayed in a page block table. one of whic is a command link. if i click on it, will open the right record but if i right click on it, it's opening the same record again andagain.
<apex:column>
<apex:commandLink value="View" action="{!viewRecord}">
<apex:param value="{!record.Id}" name="RowId" assignTo="{!RowId}"/>
</apex:commandLink>
</apex:column>
public Pagereference viewRecord(){
PageReference ref = new Pagereference('/apex/mypage?id='+RowId);
ref.getParameters().put('Id',RowId);
return ref;
}
what am i doing wrong...
<apex:column>
<apex:commandLink value="View" action="{!viewRecord}">
<apex:param value="{!record.Id}" name="RowId" assignTo="{!RowId}"/>
</apex:commandLink>
</apex:column>
public Pagereference viewRecord(){
PageReference ref = new Pagereference('/apex/mypage?id='+RowId);
ref.getParameters().put('Id',RowId);
return ref;
}
what am i doing wrong...
i got rid of the command link and using out putlink so its working fine now.
All Answers
Are you experiencing something similar to what the users have reported on our below idea exchange platform:
https://success.salesforce.com/ideaView?id=08730000000aSCpAAM
i got rid of the command link and using out putlink so its working fine now.