<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can't use Dojo declarative method in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-t-use-dojo-declarative-method/m-p/544421#M14431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robert for your answer but I already tried to add the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;_WidgetsInTemplateMixin and I received an error :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Error: dijit._WidgetsInTemplateMixin: parser returned unfilled promise (probably waiting for module auto-load), unsupported by _WidgetsInTemplateMixin. &amp;nbsp; Must pre-load all supporting widgets before instantiation.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Feb 2017 08:21:35 GMT</pubDate>
    <dc:creator>FlorianCADOZ</dc:creator>
    <dc:date>2017-02-23T08:21:35Z</dc:date>
    <item>
      <title>Can't use Dojo declarative method</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-t-use-dojo-declarative-method/m-p/544419#M14429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone ! I've got an unknown problem from cyberspace ...&lt;/P&gt;&lt;P&gt;I'm beguining a new widget from the demowidget and i'm trying to put there a simple dojo checkbox (see my code below) and then, when i'm using the Programmatic example it's ok but when i'm using the declarative example, there is just a poor html input ... I really don't understand ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My HTML :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;div&amp;gt;&lt;BR /&gt; &amp;lt;div&amp;gt;${nls.label1}.&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;input id="checkBox" /&amp;gt; &amp;lt;label for="checkBox"&amp;gt;I agree&amp;lt;/label&amp;gt;&lt;BR /&gt; &amp;lt;br /&amp;gt;&lt;BR /&gt;&amp;lt;input id="param1" name="param1" data-dojo-type="dijit/form/CheckBox" value="param1" checked/&amp;gt;&lt;BR /&gt; &amp;lt;label for="param1"&amp;gt;Calculer les intersections&amp;lt;/label&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;My JS :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;define(['dojo/_base/declare', 'jimu/BaseWidget', 'dijit/form/CheckBox', 'dojo/domReady!', "dojo/parser"],&lt;BR /&gt; function (declare, BaseWidget, CheckBox) {&lt;BR /&gt; return declare([BaseWidget], {&lt;/P&gt;&lt;P&gt;baseClass: 'jimu-widget-testwidget',&lt;/P&gt;&lt;P&gt;postCreate: function () {&lt;BR /&gt; this.inherited(arguments);&lt;BR /&gt; console.log('postCreate');&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;startup: function () {&lt;BR /&gt; this.inherited(arguments);&lt;BR /&gt; console.log('startup');&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;onOpen: function () {&lt;BR /&gt; console.log('onOpen');&lt;BR /&gt; this.go();&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;onClose: function () {&lt;BR /&gt; console.log('onClose');&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;onMinimize: function () {&lt;BR /&gt; console.log('onMinimize');&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;onMaximize: function () {&lt;BR /&gt; console.log('onMaximize');&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;onSignIn: function (credential) {&lt;BR /&gt; /* jshint unused:false*/&lt;BR /&gt; console.log('onSignIn');&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;onSignOut: function () {&lt;BR /&gt; console.log('onSignOut');&lt;BR /&gt; },&lt;BR /&gt; go: function () {&lt;BR /&gt; var checkBox = new CheckBox({&lt;BR /&gt; name: "checkBox",&lt;BR /&gt; value: "agreed",&lt;BR /&gt; checked: false,&lt;BR /&gt; onChange: function(b){ alert('onChange called with parameter = ' + b + ', and widget value = ' + this.get('value') ); }&lt;BR /&gt; }, "checkBox").startup();&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; });&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone can understand what happen ...&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 17:53:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-t-use-dojo-declarative-method/m-p/544419#M14429</guid>
      <dc:creator>FlorianCADOZ</dc:creator>
      <dc:date>2017-02-22T17:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use Dojo declarative method</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-t-use-dojo-declarative-method/m-p/544420#M14430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;If you are going to use dijits/widgets in your template then you have to add the require to support that:&lt;/P&gt;&lt;P&gt;'dijit/_WidgetsInTemplateMixin',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/web-appbuilder/guide/use-dojo-dijit.htm" title="https://developers.arcgis.com/web-appbuilder/guide/use-dojo-dijit.htm"&gt;Use dojo dijit—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 18:06:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-t-use-dojo-declarative-method/m-p/544420#M14430</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-02-22T18:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use Dojo declarative method</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-t-use-dojo-declarative-method/m-p/544421#M14431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robert for your answer but I already tried to add the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;_WidgetsInTemplateMixin and I received an error :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Error: dijit._WidgetsInTemplateMixin: parser returned unfilled promise (probably waiting for module auto-load), unsupported by _WidgetsInTemplateMixin. &amp;nbsp; Must pre-load all supporting widgets before instantiation.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 08:21:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-t-use-dojo-declarative-method/m-p/544421#M14431</guid>
      <dc:creator>FlorianCADOZ</dc:creator>
      <dc:date>2017-02-23T08:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use Dojo declarative method</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-t-use-dojo-declarative-method/m-p/544422#M14432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Florian,&amp;nbsp;&lt;/SPAN&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp; &amp;nbsp;That just means that you have a dijit in your template that you do not have a require for in the Widget.js&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 11:52:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-t-use-dojo-declarative-method/m-p/544422#M14432</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-02-23T11:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use Dojo declarative method</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-t-use-dojo-declarative-method/m-p/544423#M14433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh s%#&amp;amp; !!! I forgot to load the NumberSpinner dependencie for a lost piece of code !!!!&lt;/P&gt;&lt;P&gt;Thanks a lot Robert !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 13:51:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-t-use-dojo-declarative-method/m-p/544423#M14433</guid>
      <dc:creator>FlorianCADOZ</dc:creator>
      <dc:date>2017-02-23T13:51:53Z</dc:date>
    </item>
  </channel>
</rss>

