Im creating a widget to upload a specific shp file.
using the add data widget with only the 'file' enabled.
I have added a renderer to the code from the output of a service of the same layer extracting it using layer.renderer,
i get the error "getFieldsUsedInExpressions is not a function".
this is the code from AddFromFilePane file inside /search of add data widget
added line 15 end the renderer
_addFeatures<SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">function</SPAN><SPAN class="punctuation token">(</SPAN>job<SPAN class="punctuation token">,</SPAN>featureCollection<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="comment token">//var triggerError = null; triggerError.length;</SPAN>
<SPAN class="keyword token">var</SPAN> fullExtent<SPAN class="punctuation token">,</SPAN> layers <SPAN class="operator token">=</SPAN> <SPAN class="punctuation token">[</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">,</SPAN> map <SPAN class="operator token">=</SPAN> job<SPAN class="punctuation token">.</SPAN>map<SPAN class="punctuation token">,</SPAN> nLayers <SPAN class="operator token">=</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">var</SPAN> loader <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">LayerLoader</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">if</SPAN> <SPAN class="punctuation token">(</SPAN>featureCollection<SPAN class="punctuation token">.</SPAN>layers<SPAN