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
shoesmanshoesman 

how to call apex class from visualforce

hi all,

  

I just wanna ask you how call apex class from visualforce.

Acually, I am trying to do is like "math drill" (good for start-up programming ?) ,

 

it shows some questions in visualforce like,

 

3+4 =

5*4 =

12-3=

and when the button has been clicked, answers comes up.

 

 


But I have totally no idea how to call this class and show it in visualforce.

 

I am just a beginner, I just have start using force.com yesterday.

 

 

Thanks:smileysad:,

 

 

KRSKRS

Hi,

 

       Are you using a Standard Controller? Did you try using the 'Extensions'  Keyword?

KRSKRS

Hi,

 

       Hope you had created the Visualforce Page and the Apex Class? First Step is Create a Button on the Object where you are trying to display this result? While creating the button,Refer the Visualforce Page which you had created.

 

To call the Apex Class,You have to use the 'Extensions'  Keyword.

shoesmanshoesman

thanks all:smileytongue:

 

I'll try to do it !!

much appreciated !!