Hi,
I'm trying to use our own print service in the print plus widget. But later I found out that it doesn't execute the "Get Layout Templates Info" GP services like the WAB print widget did. I need some help with adding the "Get Layout Templates Info" in there.
I tried to add the code
LayerInfos, in the functions
and then
LayerInfos.getInstance(this.map, this.map.itemInfo)
.then(lang.hitch(this, function(layerInfosObj) {
this.layerInfosObj = layerInfosObj;
return all([this._getPrintTaskInfo(), this._getLayerTemplatesInfo()])
.then(lang.hitch(this, function(results) {
var taksInfo = results[0],
templatesInfo = results[1];
if (templatesInfo && !templatesInfo.error) {
var parameters = templatesInfo && templatesInfo.results;