function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PXForcePXForce 

passing parameters from pageBlocktable to controller via javascript

I have a pageBlockTable and some columns . I would want the title value for a column to be set (so that i can show a custom tool tip) based on the item in the table. for this i need to pass in the Id of that particual item in the table to mouse over property of column through java script function. 

 

Heres the code for column , javascript and action function :

I have no clue if i missing the syntax or is there another way to accomplish this as its not working..

 

 

<apex:column id="colLeadName" headerValue="Lead Name" title="{!leadKEs}" onmouseover="showKE({!row.lead.Id});">
					<apex:commandLink id="cmdLnkLeadName" action="{!LeadPage}" value="{!row.lead.Name}" reRender="form" >
						<apex:param name="linkParam" value="{!row.lead.Id}" assignTo="{!leadIdToView}"/>
					</apex:commandLink>
				</apex:column>

javascript

<script type="text/javascript">
				function showKE(String Id)
				{
					showLeadKE(Id);
				}
			</script>

action function
<apex:actionFunction action="{!showLeadKE}" name="showLeadKE" rerender="form">
        	<apex:param name="firstParam" value="" assignTo="{!leadIdToView}"/>
	    </apex:actionFunction>