I want to declare & define the "esri\layers\FeatureLayer" api to "print .js" file in print widget , when i declare the FeatureLayer api , the widget obtain blank in runtime , please can help me to declare & define it without errors .
Hisham,
Is this what you are looking for (lines 29 and 69)?
define([ 'dojo/_base/declare', 'dijit/_WidgetBase', 'dijit/_TemplatedMixin', 'dijit/_WidgetsInTemplateMixin', 'esri/tasks/PrintTask', "esri/tasks/PrintParameters", "esri/tasks/PrintTemplate", "esri/request", 'esri/lang', 'dojo/_base/lang', 'dojo/_base/array', 'dojo/_base/html', 'dojo/dom-style', 'dojo/dom-construct', 'dojo/dom-class', 'dojo/promise/all', 'dojo/Deferred', 'jimu/portalUrlUtils', 'dojo/text!./templates/Print.html', 'dojo/text!./templates/PrintResult.html', 'dojo/aspect', 'dojo/query', 'jimu/LayerInfos/LayerInfos', 'jimu/dijit/LoadingShelter', 'jimu/dijit/Message', 'jimu/utils', 'dijit/form/ValidationTextBox', 'esri/layers/FeatureLayer', 'dijit/form/Form', 'dijit/form/Select', 'dijit/form/NumberTextBox', 'dijit/form/Button', 'dijit/form/CheckBox', 'dijit/ProgressBar', 'dijit/form/DropDownButton', 'dijit/TooltipDialog', 'dijit/form/RadioButton', 'esri/IdentityManager', 'dojo/store/Memory' ], function( declare, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, PrintTask, PrintParameters, PrintTemplate, esriRequest, esriLang, lang, array, html, domStyle, domConstruct, domClass, all, Deferred, portalUrlUtils, printTemplate, printResultTemplate, aspect, query, LayerInfos, LoadingShelter, Message, utils, ValidationTextBox, FeatureLayer) {
If not then as we mentioned earlier you need to give more description of your issue and code.