POST
|
Thanks Robert, That works well when setting the "between date field" option, but does not work for other date setting options. Can you please investigate. Also I can setup a test app re the resetting of unique values after every "clear field" click. Would that be ok? cheers
... View more
12-04-2019
03:26 PM
|
0
|
10
|
1033
|
POST
|
Hi Robert, How do you clear date search fields on eSearch startup. Our users need to always select the clear fields option when starting eSearch searches that have date field searching included. See image below, where dates populate on startup. Any advice would be useful. Also with unique field searching, is it possible for eSearch to hold onto the information after selecting the clear fields button to search again. It seems eSearch needs to repopulate these field every time the clear field option is selected, thus slowing down workflows. Any advice would be useful cheers
... View more
12-03-2019
05:50 PM
|
0
|
12
|
1379
|
IDEA
|
I agree, but I'm not holding my breath now that ESRI are focusing on Experience builder. Hopefully a widget can be built for WABD!!
... View more
11-27-2019
04:37 PM
|
1
|
0
|
824
|
POST
|
Thanks Robert, I have resolved the date issue. Thank you for your fix re query layers. Can you advice when this fix is included in your next release. cheers
... View more
10-21-2019
06:05 PM
|
0
|
0
|
607
|
POST
|
That was it Robert. I added in lines 47 and 48 and it now works, fantastic. They didn't come through in the original post. }), lang.hitch(this, function(err){
this.queryTask.executeForIds(this.query, lang.hitch(this, this.onSearchIdsFinish), lang.hitch(this, this.onSearchError));
} I have also just noticed that at 2.12 the date fields wont clear when you select clear fields option. Do you have code fix for this. cheers
... View more
10-21-2019
06:33 AM
|
0
|
2
|
1386
|
POST
|
Yep I can set that up. Can you tell me what you changed in the code? I cant see a difference between what you posted and the original.
... View more
10-21-2019
06:05 AM
|
0
|
5
|
607
|
POST
|
The specific app in the server directory. I tried a couple to no avail.
... View more
10-21-2019
05:54 AM
|
0
|
7
|
563
|
POST
|
I added it into the eSearch PagingQueryTask.js as requested. See below between the italic code. startup: function () { this.inherited(arguments); this.query = new Query(); }, execute: function () { this.uniqueValues = []; this.blankStringExists = false; this.iStart = 0; this.iMaxRecords = 0; this.featuresProcessed = 0; this.featuresTotal = 0; this.isQuerying = true; this.query.returnGeometry = false; this.query.outFields = [this.fieldName]; if (this.version > 10.11) { this.query.orderByFields = [this.fieldName]; } this.query.objectIds = null; if (this.defExpr && this.defExpr !== "") { this.query.where = this.defExpr; } else { this.query.where = "1=1"; } if (this.uri === '') { this.emit('pagingFault'); return; } // console.info(this.uri); this.queryTask = new QueryTask(this.uri); if (this.version >= 10.1) { //need to check if the feature count is over maxRecordCount var cntQuery = new Query(); if (this.defExpr && this.defExpr !== "") { cntQuery.where = this.defExpr; } else { cntQuery.where = "1=1"; } cntQuery.returnDistinctValues = true; cntQuery.outFields = [this.fieldName]; this.queryTask.executeForCount(cntQuery, lang.hitch(this, function(count){ this.featuresTotal = count; if(count <= this.maxRecordCount){ this.allValues = []; this.query.returnDistinctValues = true; this.queryTask.execute(this.query, lang.hitch(this, this.onSearchFinish), lang.hitch(this, this.onSearchError)); }else{ delete this.query.orderByFields; this.queryTask.executeForIds(this.query, lang.hitch(this, this.onSearchIdsFinish), lang.hitch(this, this.onSearchError)); } })); } else { this.queryTask.executeForIds(this.query, lang.hitch(this, this.onSearchIdsFinish), lang.hitch(this, this.onSearchError)); } }, onSearchFinish: function (featureSet) { var uVal;
... View more
10-21-2019
05:44 AM
|
0
|
9
|
563
|
POST
|
Hi Robert, Thank you for the update. Just tried this in WABD 2.12 with the test url and it still does not work. I get the "retrieving unique values" spinning around when I select a value. When I look at your code change, I don't see anything different to the original code. Could this be the issue. cheers
... View more
10-20-2019
05:53 PM
|
0
|
11
|
563
|
POST
|
Sorry for the delay. See below to test. Works at 2.6 without issue. Layer: PropertyWard (ID: 0)
... View more
10-15-2019
10:06 PM
|
0
|
15
|
563
|
POST
|
Robert, If I setup a public query layer, would you have time and be happy to test it within eSearch to identity the issue? cheers
... View more
10-02-2019
05:54 AM
|
0
|
17
|
779
|
POST
|
Hi Robert, I have tried different query layers to no avail in eSearch 2.12 unique values setup. I can advice that all query layers I have generated today work with WABD 2.12 generic widgets such as the QUERY widget for unique values setup. They also work with the EXTRA DATA SOURCE option. So I'm at a loss as to why eSearch 2.12 will not allow me to set unique values for these same query layers. Have you tested query layers with the unique option setup in 2.12? At this stage all I can do is use the generic WABD 2.12 query widget for unique drop down searches and use eSearch for all other type of searches for these query layers. Also I had no issue creating the unique value setting option in Esearch when using feature classes in rest end points. Its just query layer rest end points that seem to have this problem. To answer your question from yesterday; So are you able to see it get all the unique values then choose one of those before you get to this error? NO, I don't get any values returned when configuring the values, it just hangs. Hope this info helps at all. cheers
... View more
10-02-2019
04:11 AM
|
0
|
19
|
779
|
POST
|
Thanks Robert, I'll do some more testing tomorrow and get back to you. cheers
... View more
10-01-2019
06:05 AM
|
0
|
20
|
779
|
Title | Kudos | Posted |
---|---|---|
1 | 03-17-2016 11:02 PM | |
1 | 03-30-2022 05:29 AM | |
1 | 03-30-2022 04:30 AM | |
1 | 02-13-2022 03:20 AM | |
1 | 11-25-2021 03:29 AM |
Online Status |
Offline
|
Date Last Visited |
09-29-2022
01:08 PM
|