Is there any possible way to pass rest service instead of web map Id in web appbuilder. I went with the basic example. But i never found any example with the rest service. But I can see rest service are utilize for geometry and GP services. Otherwise any template that based on rest service instead of web map id.
Thanks for the help.
Solved! Go to Solution.
WAB is dependent on the use of a web map from AGOL/Portal. You can add services from a rest url using the AddData widget at runtime or use the custom LocalLayer widget to add layers at design time but the app will still be the requirement to have a web map to start with.
For other templates that don't use web maps you can look here:
> Is there any template that consumes rest services?
FYI, all the configurable application templates are based on the premise that you start with a web map. The same for Web AppBuilder for ArcGIS. This is by design so that users would start with a web map, then they can quickly and easily deploy a new web app (for the web map) without having to write code.
Hope this helps,
But,my client don't want to use the web map id and It's very difficult when we build the template from scratch.
Its good that without writing any code application was ready. But it need to work from the rest services also otherwise some basic sample template with rest service.
Thanks for help.