+ Start a Discussion
CLKCLK 

apex:param not working

 <apex:Commandlink value="Remove" action="{!generateQuery_RemoveCondion_click}"        rerender="pbsQueryWhereClause,pgHeader" status="asFilterProcessing">
               <apex:param assignTo="{!SelectedFilterNumber}" value="{!filterCriteria.SrNumber}"/>
</apex:Commandlink>

 

In this code apex:param i want to pass value of filterCriteria.SrNumber to parameter defined in assignTo.

But it's not working. am i doing something wrong?

Best Answer chosen by Admin (Salesforce Developers) 
bob_buzzardbob_buzzard

I think you'll need to specify a name for the parameter in order for it to go through to the controller.  E.g.

 

 <apex:Commandlink value="Remove" action="{!generateQuery_RemoveCondion_click}"        rerender="pbsQueryWhereClause,pgHeader" status="asFilterProcessing">
               <apex:param assignTo="{!SelectedFilterNumber}" value="{!filterCriteria.SrNumber}" name="selNumber"/>
</apex:Commandlink>

 

All Answers

bob_buzzardbob_buzzard

I think you'll need to specify a name for the parameter in order for it to go through to the controller.  E.g.

 

 <apex:Commandlink value="Remove" action="{!generateQuery_RemoveCondion_click}"        rerender="pbsQueryWhereClause,pgHeader" status="asFilterProcessing">
               <apex:param assignTo="{!SelectedFilterNumber}" value="{!filterCriteria.SrNumber}" name="selNumber"/>
</apex:Commandlink>

 

This was selected as the best answer
CLKCLK

great it's worked thank you very much