Accessing Barrier service

Discussion created by tbecker@igg on Jul 25, 2012
Hi all,

i am a Rookie in JavaScript and also using Webservices. I have set up a collaborative student project as service in ArcGIS online that will bring me line and polygon barriers for an area. I will use this in a network analysis but don' no exactly how to bring features into routeParams.polygonBarriers respectively routeParams.polylineBarriers. I tried it by using features.push but it won't work. The routing itself works fine.
Any ideas? Thx in advance.