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
Ravi Dutt SharmaRavi Dutt Sharma 

actionsupport not working

I have a action support inside a apex command link which is present inside a page block table. The action support in not calling the apex method.

 
<apex:column headerValue="Call Attempt">
                        <apex:commandLink>{!cmpgnMember.Call_Attempt__c}
                        	<apex:actionSupport action="{!createCallReport}" event="onclick" />
                        </apex:commandLink>
</apex:column>
 
public PageReference createCallReport(){
        System.debug('******contactId: ');
        return null;
}

 
Amit Chaudhary 8Amit Chaudhary 8
Can you please try to update your code like below
<apex:column headerValue="Call Attempt">
	<apex:commandLink  value="{!cmpgnMember.Call_Attempt__c}" action="{!createCallReport}" />
</apex:column>

Let us know if this will help you