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

2343
1
Jump to solution
03-30-2016 03:56 AM
Vara_PrasadM_S
Occasional Contributor II

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.

0 Kudos
1 Solution

Accepted Solutions
Vara_PrasadM_S
Occasional Contributor II

I could solve this by changing value of the property "exprchar" to some other symbol other than '$' as below.

data-dojo-props="exprchar: '@'

Thanks & Regards,

Vara Prasad.

View solution in original post

0 Kudos
1 Reply
Vara_PrasadM_S
Occasional Contributor II

I could solve this by changing value of the property "exprchar" to some other symbol other than '$' as below.

data-dojo-props="exprchar: '@'

Thanks & Regards,

Vara Prasad.

0 Kudos