4

I want create a custom button that runs an apex class.

This class create a record and open the detailed page of the record created.

Do you know if is it possible?

Do you have an example code for the button that exercutes the class? javascript?

Thanks in advantage for any advice. BR.

0

1 Answer 1

2

I think what your looking for would be either an ActionFunction or VisualForce Remoting, the latter being more for Ajax without maintaining controller state.

You can chain together actions in an ActionFunction to invoke the correct redirects after a record is created, inserted, updated, etc.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .