|
POST
|
It is referring to the layer's popupTemplate title. Line 91 in this sample: https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=featurereduction-cluster
... View more
06-01-2021
09:34 AM
|
0
|
0
|
1029
|
|
POST
|
Line 65 is correct in the sample, it is a destructuring assignment. However, it doesn't sound like a code issue since it worked with a different Portal. I suggest fixing the certificate issue and making sure the two Portals are configured in the same way.
... View more
05-28-2021
02:51 PM
|
1
|
0
|
1754
|
|
POST
|
How are you generating the token? Can you try generating the token directly in the app to see if that makes a difference. It is possible that there is an issue with the referrer. Here is some sample code: https://codepen.io/benesri/pen/ExxwqMB
... View more
05-28-2021
12:24 PM
|
0
|
2
|
1761
|
|
POST
|
I would try adding the server URL parameter for registering a token. It is weird that it works when just adding a feature layer though. Is your Enterprise federated? identityManager.registerToken({
token: TOKEN,
server: 'https://<myHostName.myDomain>/portal/sharing/rest'
})
... View more
05-28-2021
11:50 AM
|
0
|
4
|
1768
|
|
POST
|
Here are a couple things I would try while troubleshooting an issue like this: 1) Test the same request in a REST Client (like Postman). It may work directly on the endpoint but break when the request comes from an external source for some reason. Use the same headers, body, etc. 2) Try using JSON.stringify() on the array before sending the request.
... View more
05-27-2021
04:15 PM
|
0
|
1
|
1378
|
|
POST
|
I suggest using a definitionExpression in order to filter a sublayer by attribute. Here is a sample: https://developers.arcgis.com/javascript/latest/sample-code/layers-mapimagelayer-definitionexpression/
... View more
05-27-2021
04:01 PM
|
0
|
0
|
1922
|
|
POST
|
I provided some additional options in a post recently.
... View more
05-25-2021
04:05 PM
|
0
|
0
|
4873
|
|
POST
|
You can add the target="_blank" attribute to the HTML element to open a link in a new tab or window. https://www.w3schools.com/tags/att_a_target.asp
... View more
05-25-2021
03:37 PM
|
0
|
1
|
2756
|
|
POST
|
Here is some documentation for removing the close button. popup.visibleElements = {
closeButton: false
};
... View more
05-25-2021
03:32 PM
|
1
|
0
|
1630
|
|
POST
|
The referrer needs to be the URL for the application you are hosting. It will not work when opening the file on your local machine. You will need a web server or to run it on a port on your localhost. You can serve your html file using node as a possible solution. const http = require('http')
const fs = require('fs')
const server = http.createServer((req, res) => {
res.writeHead(200, { 'content-type': 'text/html' })
fs.createReadStream('index.html').pipe(res)
})
server.listen(process.env.PORT || 3000) Then you would add 'http://localhost:3000' as the referrer to restrict usage.
... View more
05-25-2021
11:49 AM
|
1
|
0
|
6339
|
|
POST
|
Hi Leelrminger, Were you able to resolve the issue? If so can you please mark an answer as the solution so others can find it in the future? Thanks
... View more
05-25-2021
10:50 AM
|
0
|
0
|
6346
|
|
POST
|
Unfortunately it is not possible to generate a token without user credentials. To hide credentials you can skip the token generation part and just register a token in your app. You can then use a crontab (or Task Scheduler for Windows) to replace the token before it expires. An alternative that I recommend is re-adding the service to your Portal and storing the credentials there. You can then limit access to your application for the new item. Here is some documentation for that workflow. The documentation mentions ArcGIS Online but it works in Portal as well.
... View more
05-20-2021
08:48 AM
|
1
|
2
|
6384
|
|
POST
|
Here is a sample for generating and registering a token. Change the portalUrl, serviceUrl, username, and password variables to values for your environment.
... View more
05-19-2021
02:37 PM
|
1
|
5
|
6438
|
|
POST
|
Hi Megan, 302 HTTP status codes aren't usually associated with a token issue. There may be something else going on here. I'd suggest contacting Esri Support Services so an analyst can take a closer look. Ben
... View more
04-22-2020
12:54 PM
|
0
|
0
|
1772
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-22-2021 10:22 AM | |
| 1 | 01-19-2023 11:10 AM | |
| 1 | 08-30-2022 04:09 PM | |
| 2 | 08-22-2022 03:20 PM | |
| 1 | 08-22-2022 03:57 PM |
| Online Status |
Offline
|
| Date Last Visited |
02-03-2023
03:22 AM
|