POST
|
Thank you. Huge oversight on my part not to add another async/wait at the beginning.
... View more
02-29-2024
12:48 PM
|
0
|
0
|
299
|
POST
|
Thank you Jeff. However it does not do the intended purpose. I wanted each iteration to go through the esri request and do the calculations based on the response before it proceeds to the next iteration. The script provided, it goes through the sStates loop and then execute all promises in parallel (Promise.all). As I mentioned before, I wanted each iteration to run in series to grab the variable at #27 and uses at #6 before it proceeds to the next iteration.
... View more
02-28-2024
04:06 PM
|
0
|
0
|
351
|
POST
|
Thank you Jeffrey. I modified my script to explain better. The esriRequest will produce a value (#27) which it will be used on #6 before the next iteration. The script presently will not pause the loop awaiting the processing of #6 in my script. Also in your script, I assume that there is no option on #15 (second script) since you define options in esriRequest.
... View more
02-28-2024
11:42 AM
|
0
|
0
|
377
|
POST
|
THank you Ken. I don't think in my case it will work. I didn't explain my issue well. I changed my script. THe esriRequest will produce a value (#27) which it will be used on #6 before the next iteration.
... View more
02-28-2024
11:35 AM
|
0
|
0
|
379
|
POST
|
I have this issue that I tried with promises and async/await to pause each iteration of the loop until a function completes its task with an esrirequest. Here is an example. Before I get the response (#23) the loop proceed to the next iteration. function loop() {
var variable =null
for (let j = 0; j < records.length; j++) {
let thestate = records[j];
get_results(thestate);
if (variable){
//extra work
}
}
async function get_results(state) {
let getinfo =
"https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/2/query?f=json&Where=STATE_NAME='";
params = state;
params += "'&outFields=NAME,HISPANIC";
getinfo = getinfo + encodeURI(params);
var options = {
query: {
f: "json",
},
responseType: "json",
};
await esriRequest(getinfo, options).then((response) => {
console.log(response);
variable = response.data.var
});
}
... View more
02-28-2024
09:35 AM
|
1
|
9
|
459
|
POST
|
Thank you @KenBuja . I am surprised that there is no css to change background color of rows. Only when you hover over it or select it.
... View more
01-05-2024
09:01 AM
|
0
|
0
|
568
|
POST
|
Hello @KenBuja . Where can see all available css properties for the feature table or all esri widgets? Thank you.
... View more
01-04-2024
02:23 PM
|
0
|
2
|
577
|
POST
|
Hello @RobertScheitlin__GISP . It seems that the above suggestion does not work for feature table rows. Tried: .esri-feature-table tr:nth-child(odd) {
background-color: rgba(255,0,0,0.1);
}
.esri-feature-table tr:nth-child(even) {
background-color: rgba(0,255,0,0.02);
} Suggestions? Thanks.
... View more
01-04-2024
02:11 PM
|
0
|
0
|
159
|
POST
|
ok. I had to change it a little bit. Since you are using points you don't have to worry about altering the geometry of the features like I showed on the video clip. The purpose of the return in the hittest is in case that you have more actions in the event. https://codepen.io/lkoumis1/pen/bGZEwxK
... View more
01-03-2024
01:44 PM
|
0
|
1
|
339
|
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
|
351
|
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
|
433
|
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
|
245
|
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
|
574
|
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
|
229
|
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
|
499
|
Title | Kudos | Posted |
---|---|---|
1 | 02-28-2024 09:35 AM | |
2 | 12-19-2023 06:48 PM | |
1 | 12-06-2023 11:03 AM | |
1 | 06-26-2023 09:20 AM | |
3 | 08-01-2023 11:35 AM |
Online Status |
Offline
|
Date Last Visited |
3 weeks ago
|