Select to view content in your preferred language

Local Layer Widget

10529
21
Jump to solution
04-21-2015 07:37 AM
DanielStoelb
Frequent Contributor

I'm having issues trying to figure out how to set up a definition query for the layers that I'm loading into the local layer widget without having to redo the service from the server.  Do you have an idea on how this can be done using the local layer widget code?

0 Kudos
21 Replies
LefterisKoumis
Frequent Contributor

ok, I solved the mystery.

I finally got the LocalLayer in the configs folder.

The instructions that comes with the LocalLayer widget says to add the reference to the widget in:

"open the client\stemapp\themes\TabTheme\layouts\default\config.json in a text editor...."

However, Rebecca's "Web AppBuilder Developer Edition–Customization Resource List" correctly points out to add the reference in default AND layout1 folders. That made the difference.

I guess I learnt two lessons. Do not add customized widgets unless you add one ESRI's widget first to initiate creation of the configs folder.

Second, Read Rebecca's list.

THANK YOU Robert and Rebecca for your time.

RickeyFight
MVP Regular Contributor

Danel,

I know this is late to the conversation but WAB - Date range picker talks about definition expression

0 Kudos