I believe the doucmentation for the SolutionModel in Developer and the Wiki to be incorrect for .newButton():
var button = solutionModel.newButton(‘myButton’, 10, 10, 100, 30, method);
and should be of the form:
var button = oForm.newButton(‘myButton’, 10, 10, 100, 30, method);
That is, the button should be an object of the form, not the SolutionModel.