POST
|
It should be layer.definitionExpression = "Consultant = 'Pediatrics'"
... View more
05-07-2024
07:10 AM
|
0
|
1
|
435
|
POST
|
Yes you create the globalId yourself. You could use one of the guid generators.
... View more
05-02-2024
11:29 AM
|
1
|
1
|
334
|
POST
|
Hi there, You need to wait for the StreamLayer is loaded and its layerView is in place. At 4.29, you need to wait for StreamLayerView.updating becomes false once at the time of load. At 4.30, you will only need to wait for the StreamLayerView is created. In any case see this thread - https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/first-calls-to-sendmessagetoclient-not-used/m-p/1407481#M84259
... View more
05-02-2024
09:36 AM
|
0
|
0
|
197
|
POST
|
Hi there, Yes it can be done. You need to create a new feature with a globalId and use that globalId for the attachments all in one applyEdits method. You applyEdits param would look something like the following const edits = {
addFeatures: new Collection(addFeatures),
deleteFeatures: deleteFeatures,
addAttachments: addAttachments,
updateAttachments: updateAttachments,
deleteAttachments: deleteAttachments
} where where the new Feature has a new global id attribute set... something like GlobalID: "f0e2d7a2-b1b7-4f34-a080-c87286001e39" Then your addAttachments array has a new attachment as created something like below: addAttachments.push({
feature: newFeature,
attachment: {
globalId: f0e2d7a2-b1b7-4f34-a080-c87286001e39,
name: "your attachment name,
data: input.files[0] || blob
}
}); Notice that the globalId of the attachment matches the global id of the new feature you are creating. Then just call applyEdits with those two params set on `edits` param. Hope this makes sense.
... View more
05-02-2024
08:57 AM
|
1
|
1
|
346
|
POST
|
We will take a look into this behavior. Can you please give me some specifics on how many features, what kind of updates and update frequency? thanks
... View more
04-22-2024
08:52 AM
|
0
|
1
|
826
|
POST
|
Hi there, We addressed this behavior and now you do not need to wait for the layerView.updating becomes false for the first time. You can test the new behavior against our next version. Here is a codepen showing the fix: https://codepen.io/U_B_U/pen/NWmMRZa?editors=1001
... View more
04-17-2024
03:38 PM
|
0
|
0
|
670
|
POST
|
You need to set the FeatureLayer.outFields property to get all the fields as explained in the doc.
... View more
04-12-2024
11:36 AM
|
0
|
0
|
243
|
POST
|
Hi there, So I looked at the behavior more. We will update the sample. In any case, the first call to sendMessageToClient() should be when the StreamLayerView is fully loaded and ready. I updated your codepen to show the correct workflow: https://codepen.io/U_B_U/pen/NWmMRZa?editors=1001 the main change being what is shown below. view.whenLayerView(layer).then( async (layerView) =>{
await reactiveUtils.whenOnce(() => !layerView.updating);
layerView.on("message-received", (event) =>{
console.log("message-received event", event);
});
layer.sendMessageToClient({YOUR MESSAGE});
});
... View more
04-09-2024
08:57 AM
|
0
|
0
|
742
|
POST
|
Hi there, I am not able to reproduce the behavior you are referring to. Can you please provide a simple codepen that shows the behavior in question? Which version of the API are you using?
... View more
04-09-2024
08:36 AM
|
0
|
0
|
155
|
POST
|
Hi there, We addressed the issue and the fix will be available on https://js.arcgis.com/next after next Tuesday. Please test it out and let us know if it is working as expected. Thank you again for reporting this issue. -Undral
... View more
04-04-2024
02:32 PM
|
1
|
1
|
712
|
POST
|
You have to update the field names for the query in your app. You are using wrong field names. For example, your service does not have a field called areaName. In any case, I updated the same codepen to reflect these changes. Please create a new question if you need further help on this.
... View more
04-03-2024
02:33 PM
|
1
|
0
|
106
|
POST
|
Thanks for the codepen. A few things. First you already have the layer in your webmap. So there is no need to add another instance of it to your map. You can simply get the instance of the layer once the webmap is loaded. Then you have to set the outFields of the layer to all. I sent you the modified codepen directly.
... View more
04-03-2024
09:25 AM
|
1
|
1
|
491
|
POST
|
I won't be able to help without an actual reproducible case. Can you provide one?
... View more
04-03-2024
09:06 AM
|
0
|
0
|
494
|
POST
|
Reproducible case would be useful here. Can you provide one? Here is a simple example of adding polygon graphic to GraphicsLayer: https://codepen.io/U_B_U/pen/abxEGzr?editors=100
... View more
04-03-2024
09:05 AM
|
0
|
0
|
151
|
POST
|
What exactly are you trying to do? The sample you referenced does not display popup. It rather displays just a few info in a DIV tag as user moves the mouse over the features. Can you provide a working codepen so that I can help you further?
... View more
04-03-2024
08:52 AM
|
0
|
1
|
500
|
Title | Kudos | Posted |
---|---|---|
1 | a week ago | |
1 | 2 weeks ago | |
1 | 2 weeks ago | |
1 | a month ago | |
2 | 07-31-2024 09:30 AM |
Online Status |
Offline
|
Date Last Visited |
a week ago
|