Let’s be honest—most of us have been using Windows since we were kids. It’s the backbone of the corporate world and feels like the default choice for every computer user. For years, I thought it was the only real option. But what if I told you there isn't just an "alternative" out there, but a genuine upgrade? When people talk about switching to Linux , it can feel overwhelming because there are so many versions. However, I want to talk specifically about Ubuntu .
Some time we need to send a variable value to apex class variable in visualforce page. There are many ways to do this. Here is very simple way to do this.
<apex:actionFunction id="ID" name="javascriptFunction" action="{!valuesUsingJS}">
<apex:param value="" name="parameterName1"/>
<apex:param value="" name="parameterName2"/>
</apex:actionFunction>
Yes, you are right. We are using action function here and sending value using parameter's as we do in class functions or javascript function. Here the next is pass values in these parameter.
Now get these values in apex class.javascriptFunction(parameterName1, parameterName2);public void valuesUsingJS() { String Value1 = ApexPages.currentPage().getParameters(). get('parameterName1');String Value1 = ApexPages.currentPage().getParameters(). get('parameterName2'); System.debug(value1); System.debug(value2);}