Hi All,
See below for part of html using 3.2 javascript libraries, sample code from https://developers.arcgis.com/javascript/3/jssamples/search_suggestiontemplate.html
My featurelayer is from my ArcGIS online
var search = new Search({ sources: [{ featureLayer: new FeatureLayer("https://services1.arcgis.com/BZNs0xaSHDSi4V6G/arcgis/rest/services/postcodes/FeatureServer/0",
When I run the code, it ask to enter arcgisonline username and password. when I do this, it says incorrect username and password.
This is the same username and password, I would have used to login in directly in my ArcGIS account.
problem resolved thank you
sorry check again
Is the layer added a CSV table? I don't see a service URL associated with the point layer in the web map you shared.
Hi Jake,
I have sent you the invite.
Thanks
Can you share the service with a Group in ArcGIS Online and invite my username (jskinner_CountySandbox) to this Group? I can then see if I am able to see if I am able to access this service through the API sample.
Hi
I did change the service to
https://sampleserver6.arcgisonline.com/arcgis/rest/services/SaveTheBay/FeatureServer/0
The username/password is:
user1/user1
It seems to work accepted username/password.But how to I access my
("https://services1.arcgis.com/BZNs0xaSHDSi4V6G/arcgis/rest/services/postcodes/FeatureServer/0 on my ArcGIS Online?
Thanks, for your help
Hi Henry,
Try replacing your service URL with the following:
If this passes through successfully, this will ensure you're code is correct and something is not authenticating with your service correctly.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.