• WHO WE ARE
  • WHAT WE DO
    • Salesforce
      • Implementations
        • Sales Cloud
        • Service Cloud
        • CPQ
        • Field Service Lightning
        • Field Service for SMEs
      • Developments
        • Salesforce Customization
        • Custom Application Development
        • AppExchange Product Development
      • Migrations
        • Classic to Lightning Migration
        • Other Systems to Salesforce Migration
      • Integrations
    • Data Science
      • BI Solutions
      • AI/ML solutions
      • Agentic AI
  • HOW WE DO
    • Delivery Model
    • Our Works
  • REACH US
    • Contact Us
    • Careers
  • BLOG
    • WHO WE ARE
    • WHAT WE DO
      • Salesforce
        • Implementations
          • Sales Cloud
          • Service Cloud
          • CPQ
          • Field Service Lightning
          • Field Service for SMEs
        • Developments
          • Salesforce Customization
          • Custom Application Development
          • AppExchange Product Development
        • Migrations
          • Classic to Lightning Migration
          • Other Systems to Salesforce Migration
        • Integrations
      • Data Science
        • BI Solutions
        • AI/ML solutions
        • Agentic AI
    • HOW WE DO
      • Delivery Model
      • Our Works
    • REACH US
      • Contact Us
      • Careers
    • BLOG
  • [email protected]
  • (+91) 44-49521562
Merfantz - Salesforce Solutions for SMEs
Merfantz - Salesforce Solutions for SMEs
  • WHO WE ARE
  • WHAT WE DO
    • Salesforce
      • Implementations
        • Sales Cloud
        • Service Cloud
        • CPQ
        • Field Service Lightning
        • Field Service for SMEs
      • Developments
        • Salesforce Customization
        • Custom Application Development
        • AppExchange Product Development
      • Migrations
        • Classic to Lightning Migration
        • Other Systems to Salesforce Migration
      • Integrations
    • Data Science
      • BI Solutions
      • AI/ML solutions
      • Agentic AI
  • HOW WE DO
    • Delivery Model
    • Our Works
  • REACH US
    • Contact Us
    • Careers
  • BLOG

What is the Purpose of apex:actionsupport of AJAX Component in Salesforce

  • August 1, 2017
  • Merfantz Editor
  • Salesforce Developments Tutorial
  • 0

We suggest in which situation you can use action support tag and what it is ActionSupport.

This is one of the AJAX support components in the visualforce page. Based on the event it will call apex class method and partially refresh the page. This is a good feature in the actionsupport tag.

Syntax :-

<apex:actionSupport event=”event-name” action=”{!apex-method-name}”/>

For example,

Here we mentioned, when ever you change the text in textbox

Visualforce Page Code :-

<apex:page controller=”ActionSupportHandler” sidebar=”false”>

<apex:form >

<apex:pageBlock title=”Input Block”>

<apex:inputText value=”{!txtval}”>

<apex:actionSupport event=”onkeyup” action=”{!selval}” reRender=”tbl”/>

</apex:inputText></apex:pageBlock>

</apex:pageBlock>

<apex:pageBlock title=”Related Student Records”>

<apex:pageBlockTable id=”tbl” value=”{!selList}” var=”aa”>

<apex:column value=”{!aa.id}”/>

<apex:column value=”{!aa.name}”/>

<apex:column value=”{!aa.Marks__c}”/>

</apex:pageBlockTable>

</apex:pageBlock>

</apex:form>

</apex:page>

Apex Code :-

public class ActionSupportHandler{

public List<Student__c> selList{set;get;}

public String txtval{set;get;}

public void selval(){

system.debug(txtval);

selList=[select id,name,Marks__c from Student__c where name like :’%’+txtval+’%’];

system.debug(selList);

}

}

Result –

We are the ISV Partners and Please reach us for custom development => www.merfantz.com

————————– We hope this will help you —————————

Author Bio

Merfantz Editor
+ Recent Posts
  • August 4, 2023
    How to Setup CRM Analytics for Financial Services Cloud
  • August 2, 2023
    How to Get Started with Salesforce Hyperforce - Merfantz
  • July 28, 2023
    Health Cloud Mastery: Salesforce Trailhead for Effective Healthcare CRM
  • July 26, 2023
    How to integrate Data cloud and Marketing cloud In Salesforce
Tags: Field Service ManagementFieldax
  • Previous What is the Purpose of <apex:actionfunction> AJAX component in Salesforce
  • Next Visualforce Dynamic Page Design in Salesforce

Leave a Reply

You must be logged in to post a comment.

Merfantz Technologies is a leading Salesforce consulting firm dedicated to helping small and medium enterprises transform their operations and achieve their goals through the use of the Salesforce platform. Contact us today to learn more about our services and how we can help your business thrive.

Discover More

Terms and Conditions
Privacy Policy
Cancellation & Refund Policy

Contact Info

  • No 96, 2nd Floor, Greeta Tech Park, VSI Industrial Estate, Perungudi, Chennai 600 096, Tamil Nadu, INDIA
  • (+91) 44-49521562
  • [email protected]
  • 9:30 IST - 18:30 IST

Latest Posts

Mastering Attachment Compression for Salesforce Developers May 9, 2025
Salesforce API Integrations: Connect with Slack, Zoom, and Teams May 2, 2025
Guide to Streamlining Sales Success
Mastering Salesforce CPQ: A Comprehensive Guide to Streamlining Sales Success April 17, 2025

Copyright @2023 Merfantz Technologies, All rights reserved