POST
|
function saveNewFeature() { var reader = new FileReader(); var file = inputphoto.files[0]; reader.addEventListener('load', function (event) { var newFeature = ({ attributes: { "brochure": inputBrochure.value, "meterNumber": inputmeterNumber.value, "materialIn": inputmaterialIn.value, "materialOut": inputmaterialOut.value, "dateCreated": inputdateCreated.value, "svNumber": inputsvNumber.value, "address": selectedFeature.graphic.attributes.USPS_LSN, "scheduledAppoint": inputscheduledAppoint.value, "notes": inputnotes.value }, geometry: selectedFeature.graphic.geometry, attachments: [{ name: file.name, contentType: file.type, data: event.target.result }] }); console.log(newFeature) globalMaterial.applyEdits({ addFeatures: [newFeature] }).then(function (results) { globalMaterial.applyEdits({ addAttachments: [newFeature] }).then(function (results) { console.log(results) }); }); }); reader.readAsArrayBuffer(file); } Forgive me I'm new to arcgis js library. Trying to create a new feature with an existing geometry and attributes. The feature is successfully created but the attachment is left empty. I can add it through AGOL. Any suggestions?
... View more
03-30-2023
12:34 PM
|
0
|
1
|
249
|
POST
|
Is there anyway to dynamically launch the survey123 app into editing from Experience Builder? The built in Survey123 is nice but the functionally is limited. I'd prefer letting the end user selecting data from the list(Opposed to selecting off the map) but this doesn't seem to offer any sort of functionality.
... View more
04-11-2022
08:04 AM
|
0
|
1
|
294
|
POST
|
Yeah, this is in desperate need of some documentation. I would like to perform the search query using the location and a distance within. According to the beta site this should be possible but can't find anything on how to do it.
... View more
08-10-2021
08:43 AM
|
0
|
3
|
1678
|
POST
|
But do those users need a license to create/edit data? Say for example a web app on agol requires users to have a specific license(Field editor, creator, etc) to do those actions. Does server operate the same way?
... View more
10-23-2019
09:36 AM
|
0
|
1
|
480
|
POST
|
I'm considering creating a custom web app that will use leaflet. People would log in and be able to create new records through a form and perform queries on the rest service through a custom form I will create. The authentication to access the login will be via LDAP but to authenticate to server(which is not federated with portal(we don't use portal) or ldap) I will send a post request to the rest service via a builtin user I have setup(on the backend). Does each person that logs in via our networks ldap need to have their own user on arcgis servers rest service? If so how does the licensing work for that.
... View more
10-23-2019
08:19 AM
|
0
|
3
|
545
|
POST
|
I would like to be able to display dashboards within the app. I know its possible to do it via WebEngine but I was curious to know if there was any other options available from app studio
... View more
12-05-2018
11:07 AM
|
0
|
0
|
583
|
POST
|
Does app studio support any interrogation with operations dashboards?
... View more
12-04-2018
01:18 PM
|
0
|
3
|
813
|
POST
|
I tried this, I get an error back qml: 7003 qml: Invalid response qml: Portal item type incorrect It works as Map{
initUrl: "http://someurl" } Hence why I tried to create a map object with the initUrl
... View more
12-04-2018
12:50 PM
|
0
|
1
|
744
|
POST
|
Where specifically? It's a pretty large file to dig through code to find an example of how to properly login. I am already authenticating before invoking the command.
... View more
12-03-2018
12:32 PM
|
0
|
0
|
744
|
POST
|
I have this block of code MapView{ id:mapView anchors.fill: parent Component.onCompleted: { mapView.map = ArcGISRuntimeEnvironment.createObject("Map", {"initUrl": 'https://www.arcgis.com/home/item.html?id=c74acddfcb1844eb90f8f9d40be2c823'}); } } I want to create a map within mapView but the result is just a gray screen. Is there a correct method of doing this? Because I will need to be able to create x amount of maps. And can't declare each one specifically.
... View more
12-03-2018
11:45 AM
|
0
|
7
|
958
|
POST
|
Ok, I feel dumb now, as it clearly states in the documentation identifyLayersResults is a list so retrieving it would be identifyLayersResults [0].geoElements[0]
... View more
10-26-2018
10:23 AM
|
1
|
0
|
669
|
POST
|
Just to make sure I'm understanding this correctly anything retrieved by mapView.identifyLayersWithMaxResults() will return in a variable defined like this identifyLayersResults.geoElements
because so far any feature I click on returns empty or null variables
... View more
10-26-2018
09:59 AM
|
0
|
1
|
669
|
POST
|
So I was running App Studio 3.053, upgraded to the latest release(3.1) and this solves my issue the crash stops and I'm able to get past to the onIdentifyLayersStatusChange event. I do have a follow up question, is it possible to select a feature using this process as well? Since I don't know the feature layer its selecting and the only way I know how to select a feature is featureLayer.selectFeatures()
... View more
10-25-2018
11:31 AM
|
0
|
4
|
669
|
Title | Kudos | Posted |
---|---|---|
1 | 10-26-2018 10:23 AM |
Online Status |
Offline
|
Date Last Visited |
05-18-2023
06:58 PM
|