<?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 Override Jimu/dijit/Report in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/override-jimu-dijit-report/m-p/788460#M3834</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to override a method of the one of the jimu/dijit/ classes, especific the Report dijit, but this question is valid for other dijits and widgets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a new javascript file (report_e.js) where in the declare arguments I passed the report class instead of the BaseWidget class. and then I overrode the method I am interested to change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define([ 'dojo/_base/declare', '&lt;STRONG&gt;jimu/dijit/Report&lt;/STRONG&gt;', 'dojo/_base/array', 'dojo/dom-construct', 'dojo/dom-class', 'jimu/utils'],&lt;BR /&gt;function(declare, &lt;STRONG&gt;Report&lt;/STRONG&gt;, array, domConstruct, domClass, jimuUtils ) {&lt;BR /&gt;&amp;nbsp; return declare([Report], {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;baseClass: 'jimu-reportenhanced',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Here the method I want to override&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _renderTable: function (tableParentNode, tableInfo, showRowIndex) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --code--&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I obtained this error:&amp;nbsp; "declare uniqName_12: calling chained constructor with inherited".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Feb 2018 18:03:47 GMT</pubDate>
    <dc:creator>AlfonsoYañez_Morillo</dc:creator>
    <dc:date>2018-02-15T18:03:47Z</dc:date>
    <item>
      <title>Override Jimu/dijit/Report</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/override-jimu-dijit-report/m-p/788460#M3834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to override a method of the one of the jimu/dijit/ classes, especific the Report dijit, but this question is valid for other dijits and widgets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a new javascript file (report_e.js) where in the declare arguments I passed the report class instead of the BaseWidget class. and then I overrode the method I am interested to change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define([ 'dojo/_base/declare', '&lt;STRONG&gt;jimu/dijit/Report&lt;/STRONG&gt;', 'dojo/_base/array', 'dojo/dom-construct', 'dojo/dom-class', 'jimu/utils'],&lt;BR /&gt;function(declare, &lt;STRONG&gt;Report&lt;/STRONG&gt;, array, domConstruct, domClass, jimuUtils ) {&lt;BR /&gt;&amp;nbsp; return declare([Report], {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;baseClass: 'jimu-reportenhanced',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Here the method I want to override&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _renderTable: function (tableParentNode, tableInfo, showRowIndex) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --code--&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I obtained this error:&amp;nbsp; "declare uniqName_12: calling chained constructor with inherited".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 18:03:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/override-jimu-dijit-report/m-p/788460#M3834</guid>
      <dc:creator>AlfonsoYañez_Morillo</dc:creator>
      <dc:date>2018-02-15T18:03:47Z</dc:date>
    </item>
  </channel>
</rss>

