AnsweredAssumed Answered

How to use dojox/mvc/Group in Web AppBuilder widget, getting error when I specify ${this.index} in html

Question asked by majetivaraprasad on Mar 30, 2016
Latest reply on Apr 4, 2016 by majetivaraprasad

Hi All,

 

I am trying to use "dojox/mvc/Group" in html template of a WebAppBuilder Widget. However when I am giving html as

 

<div class="row" data-dojo-type="dojox/mvc/Group" data-dojo-attach-point="assetMVCGroup" data-dojo-props="target: at('rel:', ${this.index})">

 

i am facing an error while the widget is being instantiated by WidgetManager of the WebAppBuilder.

 

Error:

init.js:199 Error: uniqName_5 template:this.index(…) "Error: uniqName_5 template:this.index

    at Error (native)

    at .<anonymous> (https://js.arcgis.com/3.15/init.js:275:39)

 

Could someone please help me in knowing how to use "Dojox/mvc/Group" in Web AppBuilder widgets, so that, the framework recognizes ${this.index}

 

Thanks & Regards,

Vara Prasad.

Outcomes