What I'm trying to do is on column click, I want it to execute a backend function to store the value that was selected.
<apex:pageBlockTable rows="5" rendered="{!(foundResults==true)}" value="{!searchResultsAcc}" var="temp">
<apex:column value="{!temp.Name}" onclick="setSource('{!temp.Name}','{!temp.ID}');"/>
<apex:column value="{!temp.ID}"/>
<apex:column value="{!temp.LastModifiedByID}"/>
</apex:pageBlockTable>
From here, on the click it will call this function in my script tag within my VF page :
<script>
function setSource(var3,var4){
alert(var3)
callsetSource(var3,var4);
alert(var4);
}
</script>
The alerts are just for testing to see if its actually coming here on the click and it is successfully going there.
<apex:actionFunction name="callsetSource" action="{!setSource}">
From the function within the script tag, I call the action function. I was assuming that it would be checking for the setSource() that has 2 parameters but it keeps going to the setSource() that has no parameters. I really doubt my values are actually getting passed to the action function tag, hence, its going to the setSource() without parameters