|
POST
|
Hello Nicholas. Sorry I forgot to include in the posting before line#5 editorVM.watch(['state', 'featureFormViewModel.feature'], () => { Also, for he hittest don't forget to include the return. I attached a short video that shows that after you create the feature it let you only edit the geometry of the feature you created and it won't let you another feature unless if you complete the fields.
... View more
01-02-2024
12:55 PM
|
0
|
3
|
1337
|
|
POST
|
Update. Until ESRI responds with a solution, I have this workaround. Please let me know if there are issues with this method. It was tested and it works as intended. Workaround: First create a global variable. I named it "creating" and set it to true. Then, set the variable to false when the user completes the sketch of the new feature. if (editorVM.state == 'creating-features' && editorVM.featureFormViewModel.feature && editorVM.featureFormViewModel.state == 'ready')
{ editorVM.sketchViewModel.on("update", function (event) {
if (editorVM.featureFormViewModel.state == "ready" && (editorVM.sketchViewModel.activeTool == "transform")) {
creating = false}
}
_ _ _ _ _ _
_ _ _ _ _ _ Then, prevent the creation of new features by disabling the click event. Allow only reshaping the feature prior submitting. view.hitTest(event).then((response) => {
if (!creating) {
if (!(editorVM.sketchViewModel.activeTool == "reshape")) {
editorVM.sketchViewModel.cancel()
event.stopPropagation
return
}
}
_ _ _ _ _
_ _ _ _ _ When the user submit the form for the feature, you can change the "creating" variable to true so you can create more features if needed. editor.viewModel.featureFormViewModel.on('submit', _ => {
creating = true
_ _ _ _
_ _ _ _ @JB19 @NicholasWright
... View more
12-19-2023
06:48 PM
|
2
|
5
|
1419
|
|
IDEA
|
Currently, the Editor widget allows the user to view the fields of an existing feature only after he/she clicks on the "Select" on the widget and then the feature. Expedite this process by allowing the attributes to appear on the form when the user clicks on the existing feature without the need to click on the "Select". If there is a feature to click on then there is a form associated with it. In WAB's smart editor it does just that. Click on the feature, it shows the form.
... View more
12-15-2023
12:36 PM
|
0
|
0
|
653
|
|
POST
|
I'd like the users of the editor widget to create a feature, fill out the required fields and then submit it before they can create another feature. It seems by default, users can create multiple features before they can enter the field values which it can lead to lots of issues. Apparently the desired workflow is the individual feature creation as described at this link. However, on the same page it states that the type "create" is depreciated as of 4.23 and we should use the type "create-features" to create either individual or continuous features. But there is no mention of how to select the workflow to be individual or continuous. There are a similar posts link#1 link#2 from other users who experience the same issue. @HeatherGonzago @AnneFitz
... View more
12-14-2023
01:55 PM
|
0
|
6
|
1560
|
|
POST
|
Is there a setting to remove/hide the settings section in the Editor widget? @JoelBennett
... View more
12-14-2023
01:12 PM
|
0
|
1
|
826
|
|
POST
|
create a calcite panel at the start or end and place the layerlist widget inside the panel.
... View more
12-13-2023
02:42 PM
|
0
|
1
|
2083
|
|
POST
|
Does anyone know of how to apply styles (font color or font weight) to the description of a form element in the editor widget. For example show the text "A description" in red color and bold? Everything I see in the documentation for expressions is about the $feature. Tried html tags. {
type: "field",
fieldName: "primaryea",
label: "A field",
description:"A description",
input: {
type: "text-box",
maxLength: 20
}
}
... View more
12-13-2023
11:00 AM
|
0
|
0
|
459
|
|
POST
|
THank you. It works. I thought it was a bug based on the ESRI's example. But actually the code posted is missing some commas and it breaks the code.
... View more
12-06-2023
11:03 AM
|
1
|
0
|
609
|
|
POST
|
I tried to modify this example to disable the editing of geometry of existing features, but it doesn't work. Bug? https://codepen.io/lkoumis1/pen/MWLZPyJ?editors=1000 const editor = new Editor({
view: view,
// Pass in the configurations created above
layerInfos: [{
layer:editConfigCrimeLayer,
geometryUpdatesEnabled: false
},
{layer:editConfigPoliceLayer,
geometryUpdatesEnabled: false
}], Reference: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#layerInfos
... View more
12-05-2023
04:25 PM
|
0
|
2
|
727
|
|
POST
|
Hello @KittyHurley I just came across this posting and it helped me a lot to place the feature table at the bottom without the CSS hellhole. It would be great if calcite-table would be able read a feature table to populate its headers and rows. It can be done with quite bit of JS loops but it has to be an easier way.
... View more
11-30-2023
10:51 AM
|
0
|
3
|
2464
|
|
POST
|
I have this simple JS app and trying to preset the value of a field. On this example is the Phone Number field but I want to know what am I doing wrong and I can't preset it using the setValue property. This is the property: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#setValue Here is the app.
... View more
11-21-2023
12:16 PM
|
0
|
1
|
717
|
|
POST
|
I have this simple shell panel positioned at the end. It seems that regardless the specified heightScale value (l, m, s), the shell panel does not change its height. My perception is that if we use heightScale value "s", then the end panel should be short to show the content of the page after its bottom edge. https://codepen.io/lkoumis1/pen/mdvWjev?editors=1000 @BenElan @KittyHurley
... View more
11-08-2023
10:32 AM
|
0
|
4
|
1292
|
|
POST
|
ok. Thanks. The app that I am currently working on will have thousands lines of code (arcade + amd js) and it will be very hard to maintain without the use of external files.
... View more
11-08-2023
08:16 AM
|
0
|
0
|
671
|
|
POST
|
For the purpose of keeping the code clean and organized, it is better to have the code and styles in external files linked to the main file instead of have them scripted in the same file. Is it easy to use an external file for the stylesheets. However, the question here is how can we linked to external files that contain arcade and amd js. For example this one: https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=widgets-featureform-async How do we link to the arcade and the rest of the js to an external file (s)? There is a response to a similar question here, but I don't use typescript. It would be very helpful if the above example was reconstructed to demo the use of external files. THank you. @HeatherGonzago @AnneFitz @KristianEkenes
... View more
11-07-2023
03:04 PM
|
0
|
2
|
803
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-22-2025 03:33 PM | |
| 1 | 06-27-2025 11:29 AM | |
| 1 | 06-16-2025 08:49 PM | |
| 1 | 06-02-2023 03:22 PM | |
| 1 | 02-28-2024 09:35 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|