You need to sign in to do that
Don't have an account?
jon-wu
Variable arguments for Apex Function / JS Remoting
Does Apex support variable arity or varargs?
I'm trying to make a flexible JS remoting method that accepts input from a variety of forms and would rather not have to change the signature of my method every time I modify the fields. I was using JSON but the JSONObject class from json.org isn't robust enough and has bugs.
Varargs doesn't seem to be supported either. Any ideas? If not it looks like I'll just have to make a bunch of different functions or ditch JS remoting, make a dummy page, and then send a POST to that and pull out the page params.
I want to know also.
I hope you were asking about above functionality only if not then please let me know what is the exact question.