POST
|
Hello @RobertScheitlin__GISP ! How are you? I have an application that was developed with web appbuilder 2.2, and I need the objectid fields not to appear in the layer tabs inside the attribute table widget. I checked your code given as a solution, however in the application I need to work on, the "Query" widget does not exist in the list of widgets used in the application. I've tried to debug and change the code inside the attribute table widget.js, but unfortunately I was not successful. Do you have any other suggestions for me? Thanks in advance for your help. Gilberto.
... View more
10-25-2022
07:24 AM
|
0
|
0
|
316
|
POST
|
Perfect Robert! It worked correctly. Thanks for the help once again. Hug
... View more
09-09-2022
02:29 PM
|
0
|
0
|
1151
|
POST
|
Yea! I'm getting the expected results from my C# service in Suggest_TextBox.js correctly. The problem is in the moment of mounting this on the screen for the user to select the desired option. I just see that something "flashes" below the textbox where it's being typed, but the options don't load and no errors show up on the screen for me. 'arr' is not a code variable. It is a value to be searched in the api that I type in the textbox field to return the data I need to filter. Sorry for my mess. My language is Brazilian Portuguese. I'll leave below the link to my example api service, the system link and a print with an arrow pointing to where the information is typed. Api Link: https://gis.fepam.rs.gov.br/RSAguaWebAPI/AutoCompleteFiltroValor/ListarOpcoes?texto=arr App Link: https://gis.fepam.rs.gov.br/RSAguaAutoComplete/# Thanks!
... View more
09-09-2022
12:31 PM
|
0
|
2
|
1163
|
POST
|
Hello @RobertScheitlin__GISP! How are you? After more than a year, I needed to support this functionality. What happens is that after the user enters three characters or more, the search code through my api works correctly, bringing a total of 43 options (for the value 'arr' without the quotes). What happens is that it is not opening the options as a suggestion. I have already debugged the code and no errors were reported in the console. Could you give me any suggestions as to what might be going on? I notice that below the field, something tries to open, but it seems to open empty. Thank you very much in advance.
... View more
09-09-2022
11:14 AM
|
0
|
4
|
1169
|
POST
|
Hello @RobertScheitlin__GISP! How are you? I finally managed to fix the bug related to CORS. I just added a package via nuget and did the treatment for the colors inside the api methods. Now I have just a little bug that I can't find the solution and with that, I'd like to ask you some simple questions regarding the solution you created in your environment to have the autocomplete. I noticed that after I type the third letter inside the text box, there is an attempt to open a drop-down box below the field, to load the options for selection. I created my method in the api, very simple, without passing parameters. When calling the api, it returns all the records contained in a table, without doing a "where like %%". How did you do in your api? Does the solution in the widget you created pass parameters to the api? Below I will detail the link with the results in json of my api, as well as the link and the place where I call the api in the GIS application. I'm asking for this help for you as now no errors are returned to me so I don't know what could be wrong. Thanks for the help. Thank you! Gilberto. 1) Gis Application https://gis.fepam.rs.gov.br/rsaguaautocomplete/ in "Filtrar Estações Monitoradas / Região Hidrográfica is" widget. 2) WebApi in Asp.Net C# https://gis.fepam.rs.gov.br/RSAguaWebApi/api/AutoCompleteFiltroPorValor/retornaValoresAutoComplete
... View more
08-03-2021
07:34 PM
|
0
|
1
|
843
|
POST
|
Robert, Thanks for your response. I really don't understand the reason for the error, since both the web api that I built in c# and the application generated and customized with the web appbuilder are on the same web server and hosted on this server's iis. I'm completely out of ideas of what might be going on. I've tried to implement proxy settings in the application, but I'm not able to find myself. If you have any other ideas of what it might be, I would be grateful if you could help me. Thanks! Gilberto.
... View more
06-09-2021
10:02 PM
|
0
|
0
|
1018
|
POST
|
Hello Robert! How are you? Thanks for your help so far. It helped a lot. I did as you instructed, changing the files exactly as you suggested. I pointed to my webapi with the return of the values for the autocomplete. Here the webapi return https://gis.fepam.rs.gov.br/RSAguaWebAPI/api/AutoCompleteFiltroPorValor/retornaValoresAutoComplete The problem I'm having is that it reports proxy error and colors. I've read some articles about this on the esri forum and on the javascript api help, but I'm not able to understand what I have to do to solve this problem. I have attached a screenshot of my application in chrome, as well as the open console next to it with the error (the description is in Brazilian Portuguese). In the Suggest_Textbox.js file, I added the lines below: esriConfig.defaults.io.corsEnabledServers.push("gis.fepam.rs.gov.br"); esriConfig.defaults.io.corsEnabledServers.push("zee.rs.gov.br"); esriConfig.defaults.io.corsEnabledServers.push("localhost"); Even adding the possible addresses of my servers, I still couldn't resolve the error. If you can give me more that help, I'll be very grateful. Note: access to the system can be done through the link https://gis.fepam.rs.gov.br/RSAguaAutoComplete/ Thanks! Gilberto.
... View more
06-04-2021
03:36 PM
|
0
|
0
|
2001
|
POST
|
Hi! Thank you very much for your help Robert. I will test what you suggested, and as soon as I finish, I put as my correct answer and attach my custom widget (based on your eSearch) so that other people can use it too. Thanks! Gilberto.
... View more
02-24-2021
05:52 AM
|
0
|
0
|
2172
|
POST
|
Hi! I'm using the eSearch Widget, which is an excellent tool for my application developed with the web appbuilder. What happens is that my bosses at the company asked me to include in the search for value of this widget, for each of the search options by value (I have 4), the option to complete, that is, as the user is typing, value suggestions appear, until he can click on one he wants. Most correct, these values would come from the service possibilities of the layer used in the widget, that is, if the user selects a watershed, they would suggest the possible values for this field, which is the service of the layer itself. I developed a webapi in C #, which has a method (and a url), which receives the values to be searched for each of these attributes. The problem is that I have no idea how to implement this call in the eSearch widget, for each of the different attributes that can be searched in the search by value. Any help will be most welcome. Just to add: the idea would be to press each key in each of the search options by value, call my api, which returns a json restfull with the values to be suggested. The problem is that everything is assembled dynamically from what I could understand. Thanks! Gilberto.
... View more
02-22-2021
02:36 PM
|
0
|
12
|
2380
|
POST
|
Robert, I can see that option, yes. But I managed to find the problem. It is even a tip if someone goes through the same situation. The layer was configured with the labels since the assembly in mxd. And inside portal too. The solution I found was to ask the geoprocessing analyst, remove the labels from the layer in mxd and republish the service. There inside the portal for arcgis, I removed the old layer, added the new one without the labels in mxd, and configured the label through the portal. Now the label is no longer duplicated. Thank you for your help and attention. Thank you! Gilberto.
... View more
09-04-2020
10:53 AM
|
1
|
0
|
1817
|
POST
|
Robert, I made some small changes, but more focused on the layout, hiding some buttons, for example. The features themselves, I haven't changed any. Anyway, I appreciate your attention and help. I'll try it in some other way, see if it's not something in the service or layer. Thank you!
... View more
09-04-2020
09:46 AM
|
0
|
2
|
1817
|
POST
|
Robert, Follow the esearch widget config.json. I didn't find an option to attach the file,
so I pasted the code. Excuse me! Thank you! { "layers": [ { "name": "Filtrar Estações Monitoradas", "url": "https://hsig.sema.rs.gov.br/arcgis/rest/services/1_RSAGUAS/Mapa_basico_SIGRSAGUA/FeatureServer/1", "definitionexpression": "", "spatialsearchlayer": false, "export2Csv": true, "export2Geo": false, "export2FC": false, "zoomScale": 10000, "forceZoomScale": false, "shareResult": true, "addToAttrib": true, "expressions": { "expression": [ { "alias": "Região Hidrográfica", "textsearchlabel": "", "values": { "value": [ { "fieldObj": { "name": "REG_H", "label": "Região Hidrográfica", "shortType": "string", "type": "esriFieldTypeString" }, "valueObj": { "value": "" }, "prompt": "Região Hidrográfica is", "textsearchhint": "Informe a região hidrográfica", "sqltext": "Upper(REG_H) = Upper('[value]')", "operation": "stringOperatorIs" } ] } }, { "alias": "Bacia Hidrográfica", "textsearchlabel": "", "values": { "value": [ { "fieldObj": { "name": "BH", "label": "Bacia Hidrográfica", "shortType": "string", "type": "esriFieldTypeString" }, "valueObj": { "value": "" }, "prompt": "Bacia Hidrográfica is", "textsearchhint": "Informe a bacia hidrográfica", "sqltext": "Upper(BH) = Upper('[value]')", "operation": "stringOperatorIs" } ] } }, { "alias": "Recurso Hídrico", "textsearchlabel": "", "values": { "value": [ { "fieldObj": { "name": "RH", "label": "Recurso Hídrico", "shortType": "string", "type": "esriFieldTypeString" }, "valueObj": { "value": "" }, "prompt": "Recurso Hídrico", "textsearchhint": "Informe o recurso hídrico", "sqltext": "Upper(RH) = Upper('[value]')", "operation": "stringOperatorIs" } ] } }, { "alias": "Município", "textsearchlabel": "", "values": { "value": [ { "fieldObj": { "name": "MUNICIPIOS", "label": "Municípios", "shortType": "string", "type": "esriFieldTypeString" }, "valueObj": { "value": "" }, "prompt": "Municípios", "textsearchhint": "Informe o nome do município", "sqltext": "Upper(MUNICIPIOS) LIKE Upper('%[value]%')", "operation": "stringOperatorContains" } ] } }, { "alias": "Código Estação", "textsearchlabel": "", "values": { "value": [ { "fieldObj": { "name": "CODIGO", "label": "Código Estação", "shortType": "string", "type": "esriFieldTypeString" }, "valueObj": { "value": "" }, "prompt": "Código Estação", "textsearchhint": "Informe o código da estação monitorada", "sqltext": "Upper(CODIGO) = Upper('[value]')", "operation": "stringOperatorIs" } ] } } ] }, "titlefield": null, "fields": { "all": false, "field": [ { "name": "REG_H", "alias": "Região Hidrográfica" }, { "name": "BH", "alias": "Bacia Hidrográfica" }, { "name": "RH", "alias": "Recurso Hídrico" }, { "name": "MUNICIPIOS", "alias": "Municípios" }, { "name": "CODIGO", "alias": "Código Estação" } ] }, "links": { "link": [] }, "relates": { "relate": [] }, "orderByFields": [ "CODIGO ASC" ], "showattachments": false, "disablePopups": true, "layersymbolfrom": "layer", "symbology": { "angle": 0, "xoffset": 0, "yoffset": 0, "type": "esriPMS", "url": "http://hsig.sema.rs.gov.br/portal/portalimages/Symbols/Basic/BlueBeacon.png", "imageData": "iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAACgtJREFUeF7tWwlUVEcWFVBZQwQVlHYZ97gMRNGJIyGJS1wweuK4yybu4hJQUXFB44pGjRMFZQeRCIIgSBAXNhWFcUEc0dhxTVBRHFBhHAeNd97r9Of8w8Q0YPfvzol1zj31m19V771b7/9f9erRoMHb8pYBbTFgRoIdtCVcF+T2JSVOE/R0QRlt6DCVhL4iWGtDuC7I/IqUAOGvuqCMNnSIURIwShvCdUFmvJKACbqgjDZ02P+WgF/eAWO0wb4uyBQ8YKwuKKNKh8808LZOUz4CzqqE1/H+RGrfuY59VDbnT9VLgj+hocrWtWvAY/Lst6pdc5Wt2lOLTEIRgVeZai9sPD+zxwm6tngZQjo9VOqnsXUFz3yWUshlqtvUkeKOyhlfRXUUgd8BAnbT9QLCYEKzOo7LXsTeyZOzsI5969ycZ/6KUhjXqkhoTW18CGcIz5X9WNHfQindTySMJjRSoSEb/7NyvMA6W1PPDmy0mIS2vzIOE7WJ8C/BWOsWLTDMaTgWLfXFjuAwhMXEITg6Frv3xGLt1h1wm+EJ+74OMDQyEpPzT+rv/ho9xTMfVE9b6t1NTMJNGqWpaKRJdP2T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yAWrWdEoal7KMxdQvCOczDMCFz/H1yCiawQmE+JhrlHNEz6z4O+qYUw87do/J5K4wdQLXkwVEy84lSIwJ/DJsobvOO6y383aGwMmcNY9Ji1G3a0SuxOC6UOc/dBNj0KzSeTF7iRkc5BMJsUBJOJQTCeFAxjlzCYuEfD2DkMRkN8YdDGXrxFPyIim43ne9cJqpI0NOIs4swMPqI2FUmxoes9gjfoNzaB+XuOsBo8H9YTtqK5ewgsPaJg7r4HJq6RMHKOQKPxQWg0ejsaDV0JA/sJ0LfqLDacc3+8aljBuQJypYzaZKqolQSx8b+VnOBIUjnVheP2CoP0GhrCwKIVDGz+DP3W9tBv1Qt6sp7Qs+qCBqbN0EBPX2z4PerDp0+cZvNrpWamiiSewElMQk5ObTMzOPzEcXv+bPGy9XWRpyq6x894LMGNIM46ed0MiknghIkmap3qGoO1pd/lSgMC6inIkvr1InAAUxxx4mDGewROtKhrYRIuKvU6WNfOtW3PC448pRAOiOha4c3QAaV+HBRVe+HFDrsYB1DVVYTorToTG78g5QoJ6so+rbaV3VNdKbLCoJrKFW5JAhg6X35X2eKaYPMtAcqX1u/i/wU04QGKIzYCnzb/IQuf1TEBvH/4Q5ZVSgJ0Zmsr9Szws8/RpDc+q5NacXXJ46OsCHUNVt9x/gfKBxqkELQR+wAAAABJRU5ErkJggg==", "contentType": "image/png", "width": 18, "height": 18 } } ], "bufferDefaults": { "autoZoom": true, "addtolegend": false, "bufferUnits": { "bufferUnit": [ { "name": "UNIT_FOOT", "label": "Feet" }, { "name": "UNIT_STATUTE_MILE", "label": "Miles" }, { "name": "UNIT_METER", "label": "Meter" } ] }, "bufferDefaultValue": 5, "bufferWKID": 102003, "simplefillsymbol": { "color": [ 155, 187, 89, 128 ], "outline": { "color": [ 115, 140, 61, 255 ], "width": 1.5, "type": "esriSLS", "style": "esriSLSSolid" }, "type": "esriSFS", "style": "esriSFSSolid" } }, "spatialrelationships": { "spatialrelationship": [ { "label": "entirely contained in", "name": "esriSpatialRelContains" }, { "label": "intersected by", "name": "esriSpatialRelIntersects" }, { "label": "intersected by envelope of", "name": "esriSpatialRelEnvelopeIntersects" } ] }, "graphicalsearchoptions": { "enableextentselect": true, "enablecircleselect": true, "enablepolyselect": true, "showmultigraphicsgraphicaloption": true, "showaddtolerancegraphicaloption": true, "showaddsqltextgraphicaloption": true, "showbuffergraphicaloption": true, "buffercheckedbydefaultgraphicaloption": false, "multipartgraphicsearchchecked": false, "addpointtolerancechecked": false, "toleranceforpointgraphicalselection": 6, "keepgraphicalsearchenabled": true, "autoactivatedtool": "circle" }, "symbols": { "simplemarkersymbol": null, "picturemarkersymbol": { "angle": 0, "xoffset": 0, "yoffset": 0, "type": "esriPMS", "url": "https://vaio_svt13115fb:3344/webappbuilder/apps/4/widgets/eSearch/https://vaio_svt13115fb:3344/webappbuilder/apps/4/widgets/eSearch/https://vaio_svt13115fb:3344/webappbuilder/apps/4/widgets/eSearch/images/i_search.png", "width": 20.00025, "height": 20.00025 }, "simplelinesymbol": { "color": [ 255, 0, 0, 204 ], "width": 2.25, "type": "esriSLS", "style": "esriSLSSolid" }, "simplefillsymbol": { "color": [ 155, 187, 89, 128 ], "outline": { "color": [ 115, 140, 61, 255 ], "width": 1.5, "type": "esriSLS", "style": "esriSLSSolid" }, "type": "esriSFS", "style": "esriSFSSolid" } }, "resultFormat": { "attTitlesymbol": { "bold": false, "italic": true, "underline": false, "color": [ 0, 0, 0, 1 ] }, "attValuesymbol": { "bold": false, "italic": false, "underline": false, "color": [ 0, 0, 0, 255 ] } }, "initialView": "text", "selectfilter": "contains", "enablePopupsOnResultClick": true, "disablePopups": false, "disableuvcache": true, "exportsearchurlchecked": false, "limitsearch2mapextentchecked": false, "autozoomtoresults": true, "mouseovergraphics": false, "mouseoverlist": false, "datedisplayformat": "d MMM yyyy", "zoomFactor": 0.9, "containsword": false }
... View more
09-04-2020
07:59 AM
|
0
|
0
|
1817
|
POST
|
Hi!
Yes, clearing the results, the second label disappears, along with the symbol used to mark the points of the results. There is only one label, that of the normal dot, like the one on the left. Thank you! Gilberto.
... View more
09-04-2020
07:13 AM
|
0
|
2
|
1817
|
POST
|
Hello! I'm using the eSearch widget on a layer that has labels (code number 8 digits). When zooming in the layer, without applying the esearch filter, the label appears correctly, as in the images on the left which is attached. After I make a selection by drawing a circle on the layer, the selected points have the blue symbol, and end up doubling the 8 digit label. I can't understand why. I imagine that you should be placing the label, once for each symbol at the same point. If so, does anyone have any idea how to solve this problem? My client is complaining about this. Thank you! Gilberto.
... View more
09-03-2020
02:13 PM
|
0
|
8
|
1861
|
POST
|
Hello! I am using the advanced search widget, which is very good. I'm just having a hard time figuring out how to do it, so when searching for value, all my expressions are shown at the same time, that is, the user can search for more than one field at the same time, eliminating the dropdown of the expression selection and research field. At another time, only through the settings, I managed to do this. However, as it was a while ago, I studied the widget again, but I couldn't find it. Thank you! Gilberto.
... View more
07-24-2020
05:48 AM
|
0
|
0
|
1157
|
Title | Kudos | Posted |
---|---|---|
1 | 09-04-2020 10:53 AM | |
1 | 04-11-2017 10:23 AM | |
1 | 04-10-2017 12:44 PM | |
1 | 04-26-2017 08:31 AM | |
6 | 02-14-2017 09:18 AM |
Online Status |
Offline
|
Date Last Visited |
10-25-2022
03:37 PM
|