Is it possible to change some of the default Print widget Advanced settings within Web AppBuilder developer edition?
For example, the default map scale unit is "Miles" ... I'd like it to be "Feet", so every time one of our users wants to use the widget, they have to remember to go through the Advanced settings.
Just curious if there's a javascript or config file somewhere where this can be changed?
Solved! Go to Solution.
Matthew,
In the Print/templates/Print.html Make this change:
<td>
<select data-dojo-type="dijit/form/Select" data-dojo-props="name:'scalebarUnit',style:'width:100%;'"
data-dojo-attach-point="scalebarUnitDijit">
<option value="Miles">${nls.unitsMiles}</option>
<option value="Kilometers">${nls.unitsKilometers}</option>
<option value="Meters">${nls.unitsMeters}</option>
<option value="Feet" selected="selected">${nls.unitsFeet}</option>
</select>
</td>
Matthew,
In the Print/templates/Print.html Make this change:
<td>
<select data-dojo-type="dijit/form/Select" data-dojo-props="name:'scalebarUnit',style:'width:100%;'"
data-dojo-attach-point="scalebarUnitDijit">
<option value="Miles">${nls.unitsMiles}</option>
<option value="Kilometers">${nls.unitsKilometers}</option>
<option value="Meters">${nls.unitsMeters}</option>
<option value="Feet" selected="selected">${nls.unitsFeet}</option>
</select>
</td>
Thanks a ton Robert Scheitlin, GISP !
Should I assume this is only available with WAB Developers Edition?
Wow - thank you, that's a lot of great information @PRussell thank you for sharing.
@PRussell do you have examples of the code changes you made to achieve the results in the image you linked to? I'm looking to auto populate the title and also set the force scale to default to a specific scale. Thanks!
Good Morning Robert,
We had the same question and we thought that this would solve our issue too. We went to the the print templates html, updated the code to the settings that we desire and nothing happened. We have started and stopped the service. We have also restarted the server hoping that this would get the changes to take. Is there anything that you had to do to get those changes to take in WAB?