Is it possible to run a geoprocessing service (gp task) in a web app without passing any parameters? If so how would I change the submitjob function to have no parameters
I'm going to assume we're talking about the Javascript API. As per the API documentation, inputParameters are required for the submitJob method. If you don't want to pass anything you could just have
var inputParams = ""; gp.submitJob(inputParams.....
...provided that the corresponding GP service doesn't actually require any input parameters. In this case I suppose you'd have things like the input data parameter hardcoded into the underlying Python script?
I'm going to assume we're talking about the Javascript API. As per the API documentation, inputParameters are required for the submitJob method. If you don't want to pass anything you could just have
var inputParams = ""; gp.submitJob(inputParams.....
...provided that the corresponding GP service doesn't actually require any input parameters. In this case I suppose you'd have things like the input data parameter hardcoded into the underlying Python script?