I tried following the Web AppBuilder: Build your first widget in 15 minutes to build a help widget but i have not success. I am using WAB 2.3 so i am not sure if that's why it's not working. I just want a button that has a link that links to a html that has help docs on how to use the app. Is there already a widget available?
Thanks.
Solved! Go to Solution.
Cool, How can i add this to an existing application on my iis?
I tried adding the widget to the widgetOnScreen, but i do not see it on the app. I am using the LaunchpadTheme.
{
"uri": "widgets/UrlButton/Widget",
"position": {
"top": 20,
"left": 170,
"relativeTo": "map"
},
"version": "2.3",
"id": "widgets_UrlButton_Widget_56",
"name": "UrlButton"
},
Thanks.
And you copied the UrlButton folder to the widgets folder in that app right? And you cleared your cache?
Yes the UrlButton is in the app's widget folder. and empty cashe and hard reload.
Does this need to be placed in the placeholderIndex? It is placed in the widgetOnScreen, widgets
Can you go back to your WAB and add the widget and then re-deploy?
I currently have three buttons on the right hand side and i would have like to had the urlButton as a fourth button. I also was trying to learn how to make the changes manually.
Like in the attached pic. If i can make the changes in WAB to have the fourth button i can redeploy no problem.
So I would look in the main config for the about widget and copy the placeholder info for that one adding to the top property and changing the url and such.
ok, i tried that but no luck. i am working in WAB and I added the code below in config.json in the server\apps\3.
I copied the UrlButton folder to server\apps\3\widgets. After adding and launching WAB and open the app, nothing happens the application doesn't open
,
{
"position": {
"right": 20,
"top": 100,
"relativeTo": "map"
},
"placeholderIndex": 1,
"id": "_51",
"name": "eSearch",
"version": "2.2.1",
"closeable": true,
"featureActions": [
{
"name": "eShowStatistics",
"uri": "featureActions/eShowStatistics"
}
],
"uri": "widgets/eSearch/Widget",
"config": "configs/eSearch/config_Permit Search.json",
"label": "Permit Search",
"openAtStart": true
},
{
"position": {
"right": 20,
"top": 150,
"relativeTo": "map"
},
"placeholderIndex": 1,
"id": "_52",
"version": "2.3",
"closeable": true,
"uri": "widgets/About/Widget",
"name": "About",
"config": "configs/About/config_About.json"
},
{
"position": {
"right": 20,
"top": 200,
"relativeTo": "map"
},
"placeholderIndex": 1,
"id": "_53",
"name": "Query",
"version": "2.3",
"closeable": true,
"uri": "widgets/Query/Widget",
"config": "configs/Query/config_Permit Query.json",
"label": "Permit Query"
},{
"position": {
"right": 20,
"top": 170,
"relativeTo": "map"
},
"placeholderIndex": 1,
"id": "_56",
"version": "2.3",
"closeable": true,
"uri": "widgets/UrlButton/Widget",
"name": "UrlButton",
"config": "configs/UrlButton/config_UrlButton.json"
},
{
"uri": "widgets/ExtentNavigate/Widget",
"position": {
"top": 255,
"left": 25,
"relativeTo": "map"
},
Did you add a UrlButton/config_UrlButton.json to the configs folder?