You need to sign in to do that
Don't have an account?
unable to pass value through apex:param when using apex:actionfunction
hi all,
I have a functionality wherein i need to use aepx:actionfunction and apex:param for an apex:outputlink
The problem:
When i try to get the param passed in controller it fetches null.How do i fix it?
Thanks,
SFDC Coder
I have a functionality wherein i need to use aepx:actionfunction and apex:param for an apex:outputlink
The problem:
<apex:column > <apex:outputLink value="/{!item.id}" target="_blank" onclick="callAcc();"> {!item.name} <apex:param name="passid" value="{!item.id}"/> </apex:outputLink> </apex:column> *********************************** Id accid=ApexPages.currentPage().getParameters().get('passid'); System.debug('**** new accountid is'+accid);
When i try to get the param passed in controller it fetches null.How do i fix it?
Thanks,
SFDC Coder
apex:param and the currentPage() parameters are different stuff. Why do you want to get the Id accid as a parameter from the page url? Can you explain what your page does? Can you post entire page and controller please?
Thank you,
Adrian
apex:param and the currentPage() parameters are different stuff. Why do you want to get the Id accid as a parameter from the page url? Can you explain what your page does? Can you post entire page and controller please?