You need to sign in to do that
Don't have an account?
keady@sfdc
how to call webservice method inside static method?
Hi All,
I have 2 methods,
1. public pageReference test1(){} method -- called from detail page button
2. webservice static String test2(){} method -- called from custom button on the vf page
These methods has same code, but the invocation is from different places.
is there any way to create a common method out of these 2 methods so that it holds the common code and we can just have a call to that common method in test1() and test2().
please advice...
You can make use of actionFunction and create a single non static instance method ..
It should work