Where can I change the Title in a WAB?

1348
8
Jump to solution
03-23-2017 06:18 AM
JoseSanchez
Occasional Contributor III

I am using different webmaps to open a WAB and I am looking for a way to customize the application "title" .

http://<your portal url>/apps/webappviewer/index.html?webmap=[value]

How can I change the "title" of the application.

Thanks

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Jose,

  OK I understand you have a second unrelated question, but proper forum etiquette would be that you mark the original question answered once it is, before you go and add additional questions.

That being said. Yes if you look at the apps main config.json you will find that the individual widgets like the edit widget have their config_xyz.json specified in the main config.json.

So for the workflow you seem to be after (i.e have a different app title, web map and widget configs) you can do that using multiple main config.json files and specify the config file the app uses in the url.

View solution in original post

0 Kudos
8 Replies
RobertScheitlin__GISP
MVP Emeritus

Jose,

   If you are using WAB dev edition then you can setup different main config.json files with different titles and web maps in each and then use the config parameter (not documented in the url parameters doc, but is shown else where in the help docs).

http://[your host]/webappviewer/?config=config-editor.json

http://[your host]/webappviewer/?config=config-viewer.json

0 Kudos
JoseSanchez
Occasional Contributor III

Thank you.

0 Kudos
JoseSanchez
Occasional Contributor III

Hi Robert,

I realized that I need to have 2 versions of the file "config_Edit.json" located under folder  "configs/Edit/config_Edit.json"

Is there a way to check for 2 different versions of this file for example "config_Edit_Editors.json" and "confid_Edit_Managers.json" using your sample:

http://[your host]/webappviewer/?config=config-editor.json

http://[your host]/webappviewer/?config=config-viewer.json

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Jose,

   As the app developer would you not know of the files existence? If you must figure that out in code you could use esriRequest to try and get the fiel using the full url and if it errors then the file is not there.

Since your original question was answered you should mark this thread as answered.

0 Kudos
JoseSanchez
Occasional Contributor III

Hi Robert,

My question is about if the file "config_Edit.json" located in folder ""configs/Edit/" is referenced in the main "config.json".  And in general if the main config file "config.json" references the other "config_xxx" files.

Thanks

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Jose,

  OK I understand you have a second unrelated question, but proper forum etiquette would be that you mark the original question answered once it is, before you go and add additional questions.

That being said. Yes if you look at the apps main config.json you will find that the individual widgets like the edit widget have their config_xyz.json specified in the main config.json.

So for the workflow you seem to be after (i.e have a different app title, web map and widget configs) you can do that using multiple main config.json files and specify the config file the app uses in the url.

0 Kudos
JoseSanchez
Occasional Contributor III

Hi Robert,

Thank you very much for your advice and help.

The answer was marked as "Correct".

0 Kudos