shaun_weston-eagle-co-nz-esridist

Assign GP Service Parameters Dynamically

Discussion created by shaun_weston-eagle-co-nz-esridist on Oct 23, 2012
I would like to be able to assign the GP input parameter from a configuration file, but does not seem to work for me, so I've got this:

var params = { "Valuation_ID": ID };
gpReport.submitJob(params, completeCallback , statusCallback,function(error){
... and so on


and I want the "Valuation_ID" part to be set from a config file, so I've got this:

// Set paramter from config file
var inputParameter = configOptions.reportInputParameter;
var params = { inputParameter: ID };
 gpReport.submitJob(params, completeCallback , statusCallback,function(error){
... and so on


But that does not pass the input parameter name I have set in a seperate file. Anyone know how to do that?

Outcomes