You need to sign in to do that
Don't have an account?
CustomDataIntegrations
apex:param not setting controller property
I have this code on my VF page inside a repeater...
<apex:commandButton value="Get Files Only" action="{!DownloadPreviousOrderFiles}" disabled="{!CanExecuteJob}"> <apex:param name="anOrderTicket" value="{!prevorder.OrderTicket}" assignTo="{!OrderTicketId}"/> </apex:commandButton>
When I click on the button and enter the DownloadPreviousOrderFiles, the OrderTicketId controller property is null. What am I missing?
You have to use a commandLink and style it like a button.
http://th3silverlining.com/2009/06/12/salesforce-bugs-you/
All Answers
You need to rerender from the command button .
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.
This is a kind of bug but you need to use rerender in order to pass the value of <apex:param> to controller.
There may be some other reasons as well. You should use <apex:pagemessages> on your vf page to see if there is any error on the page.
apex:pageMessages
Hi,
Please refer the below post by Jeff Douglas to rerender the command button.
http://blog.jeffdouglas.com/2010/03/04/passing-parameters-with-a-commandbutton/
Hope this helps.
Thanks,
Devendra S
This doesn't seem to work either. It doesn't call my controller function.
Hi CustomDataIntegrations,
Can you please post your code here?
Thanks,
Devendra
You have to use a commandLink and style it like a button.
http://th3silverlining.com/2009/06/12/salesforce-bugs-you/