Select to view content in your preferred language

How to load separate Configs from a URL parameter for WAB Dev Edition

2340
2
Jump to solution
08-02-2017 12:02 PM
BrendanCunningham1
Emerging Contributor

Back in the glory days of the Flex viewer it was possible to load a URL parameter for separate configs from a URL, eg:

index.html?config=rivers.xml

index.html?config=roads.xml

etc

Is it possible to load separate config.json files through a URL parameter as a similar approach for WAB Developer Edition? Or can this be embedded in the basic index.html as a similar method?

I have about 10 applications where the config is largely the same but some widget configs are not identical. So this approach would allow me to use a simple parameter to link to different configs and ultimately different widget settings.

Thanks a lot,

Brendan

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Brendan,

   Absolutely you can it is not documented very well but they show this ability in the WAB guide.

Get started—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers 

http://<server[:port]/webappbuilder/stempapp/?config=sample-configs/config-demo.json

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Emeritus

Brendan,

   Absolutely you can it is not documented very well but they show this ability in the WAB guide.

Get started—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers 

http://<server[:port]/webappbuilder/stempapp/?config=sample-configs/config-demo.json
BrendanCunningham1
Emerging Contributor

Hi Rob,

Thanks for that - indeed I searched long and hard for this! It surely is buried.

Much appreciated,

Brendan

0 Kudos