How to call method in Apex without @RemoteAction

2. Call Method in salcesforce apex class without @RemoteAction

In Apex Class:

public void saveRanking() { // you code here}
In salesforce Page:

// call method from apex class by clicking on button
<apex:commandButton styleClass="slds-button slds-button--neutral btn-refresh" reRender="mainForm" status="loadingStatus" action="{!saveRanking}" value="Save">
</apex:commandButton>

Comments

Popular posts from this blog

Privacy Policy

Query in Loop problem: ( we do not need to to select query in loop )

How to set up vscode with salesforce sandbox