POST
|
Hello everyone. I had created a simple geoevent service that poll an external website for JSON and put the output in a feature service. The process is working well but I need to run the process every day with different parameters (currentDay). For example, init_date=202004240000&end_date=202004242359. I just wondering if is there a way to put dynamic parameters in a geovent input connector (Poll an External Website for JSON)? Thank you in advance.
... View more
04-24-2020
01:55 PM
|
1
|
1
|
581
|
POST
|
Hello everyone. I know this post is a little bit older, but I think it might have related with something I've struggling this week. In my case, I need to delete all features before add new data too. I've created an output connector which let me delete old features using a date attribute (It's work well). The problem is, I can't syncronize the input connector and output conector and as a result the feature is storaging some duplicated data. Here an example of the geovent services configuration. In Connector - Poll an External Website for JSON. It return data from the last hour (noticed that would there is features already created in the output and them doesn't are the age to be deleted). (every 5 minutes) Out Connector - Add Feature With option to delete old features maximum feature age = 60 min Frequency of deleting = 300 seg Anyone have an idea to delete all features before the add new ones? Thank you in advance.
... View more
04-24-2020
08:03 AM
|
0
|
0
|
462
|
POST
|
Hello friends, I need your help. I have a request to Portal for ArcGIS with IWA setting. The request working in IE (OK) but not in Google Chrome (Error System.Net.WebException: The remote server returned an error: (401) Unauthorized.). Scenes 1. I set the "defaultnetworkcredencial" in the request. The user is granthed on portal. HttpWebRequest webRequest = WebRequest.Create(string.Format("{0}{1}",UserEndpoint,username)); webRequest.PreAuthenticate = true; webRequest.Credentials = CredentialCache.DefaultNetworkCredentials; webRequest.UnsafeAuthenticatedConnectionSharing = true; webRequest.Method = "POST"; webRequest.ContentType = "application/x-www-form-urlencoded"; Result: Response IE. OK. Response GC. Error System.Net.WebException: The remote server returned an error: (401) Unauthorized. 2. I create a new credential and setting the request. HttpWebRequest webRequest = WebRequest.Create(string.Format("{0}{1}",UserEndpoint,username)); webRequest.UseDefaultCredentials = false; webRequest.PreAuthenticate = true; var c = new NetworkCredential("myusername", "mypass", "mydomain"); CredentialCache credentialCache = new CredentialCache(); credentialCache.Add(new Uri(string.Format("{0}{1}", UserEndpoint, username)), "NTLM", c); webRequest.Credentials = credentialCache; webRequest.UnsafeAuthenticatedConnectionSharing = true; webRequest.Method = "POST"; webRequest.ContentType = "application/x-www-form-urlencoded"; Result: Response in IE. OK. Response in GC. OK. I need to use the "defautlcredential" in my app (it also use IWA) that work both IE/GC. Any help is apreciated. Thank you in advanced. https://community.esri.com/community/gis/web-gis/portal-for-arcgis?sr=search&searchId=7544bc52-c540-4fed-a351-d44526dc50b9&searchIndex=5
... View more
03-16-2018
08:35 AM
|
0
|
0
|
372
|
POST
|
Hola Ronald Guiovanni Venegas Pulido, Puedes tener un solo mapa con todas las capas que inicien con la visualización en 'false'. Al momento de cargar el mapa deberás obtener los operation layers y activarlos dependiendo de la validación de usuario (implementación propia). Para el widget LayerList, te recomiendo que al construirlo sea con las capas a las cuales tiene permiso el usuario. También tienes la opción 'DefinitionExpression' en cada capa, en donde se muestran los features según la condición dada. Tip: "1=1" para mostrar todo y "1=0" para ocultarlo. featureLayer.setDefinitionExpression("1=1"); Feature layer with layer definition applied | ArcGIS API for JavaScript 3.22 Por último, ArcGIS for Server permite administrar usuarios y roles de usuario que pueden acceder a un servicio de mapa específico. Sharing a service with your ArcGIS organization using Manager—Documentation | ArcGIS Enterprise
... View more
12-14-2017
09:35 AM
|
1
|
0
|
641
|
POST
|
Hola Ronald Guiovanni Venegas Pulido, Podrías escuchar el evento "show-related-records" y construir el botón de agregar/eliminar registro. myFeatureTable.on("show-related-records", function(evt){ console.log("show-related-records", evt); }); Para agregar, puedes usar applyEdits con los atributos nulos para que genere una nueva fila en el FeatureTable y el usuario la pueda modificar como funciona actualmente. Para eliminar, puedes usar "selectedRows" y nuevamente applyEdits con los objectsIds. Fuente: Ejemplo FeatureTable - related records | ArcGIS API for JavaScript 3.22 API FeatureTable | API Reference | ArcGIS API for JavaScript 3.22 Saludos.
... View more
12-06-2017
06:30 AM
|
1
|
0
|
624
|
POST
|
Hola, Ronald Guiovanni Venegas Pulido En el evento que escucha la acción "toggle" del widget LayerList podrías validar si existe el widget Editor para crearlo/destruirlo con las nuevas capas visibles sobre el mapa. Ej. //global var editorWidget; if (editorWidget) { editorWidget.destroy(); var layersVisibles = //TO-DO Obtener los layer visibles //TO-DO Volver a construir el widget buildEditorWidget(layers) } function: buildEditorWidget(layers) { //create the editor widget var layerInfo = []; array.forEach(layers, function (layer) { layerInfo.push({ "featureLayer": layer.layerObject, "isEditable": true, "showDeleteButton": false }); }); var settings = { map: map, layerInfos: layerInfo, toolbarVisible: true }; editorWidget = new Editor({ settings: settings }, "editorDiv"); editorWidget.startup(); } Saludos.
... View more
11-21-2017
09:35 AM
|
1
|
2
|
395
|
POST
|
Hola ronaldvenegasp1991, Para el tema de validación del archivo shapefile, te puedes apoyar en el API ArcGIS Portal incluido dentro del API de ArcGIS Javascript. Con la siguiente url se hace la vaidación del archivo https://www.arcgis.com/sharing/rest/content/features/generate' Una vez el archivo es validado teniendo en cuenta las limitaciones de ArcGIS.com "http://doc.arcgis.com/es/arcgis-online/reference/shapefiles.htm", el API retornara un featureCollection con el cual se puede interactuar para persistirlo o mostrarlo en tiempo real en el mapa (es lo que hace actualmente el ejemplo). Para persisir los features del shapefile hay varias opciones, nombrare algunas: - Un geoproceso en python que se conecte a la GDB utilizando elementos de ArcPy. - Un REST API propio que use ArcObject para persistir los datos en la GDB. - Procedimientos en la BD que utilicen funciones de ST_Geometry. Te comparto la url del ejemplo de carga y validación en donde tocaría implementar la persistencia en la función "addShapefileToMap (featureCollection)". https://developers.arcgis.com/javascript/3/jssamples/portal_addshapefile.html Saludos.
... View more
11-21-2017
04:43 AM
|
2
|
3
|
708
|
DOC
|
Thank you Robert. I just replace this: Widget.html <div data-dojo-type="widgets/eSearch/List" data-dojo-attach-point="list" data-dojo-attach-event="click:_selectResultItem" class="esearch-list"></div> to: <div data-dojo-type="widgets/Dispo/UC/eSearch/List" data-dojo-attach-point="list" data-dojo-attach-event="click:_selectResultItem" class="esearch-list"></div> and then, it worked. Greetings.
... View more
05-24-2017
12:25 PM
|
0
|
0
|
3928
|
DOC
|
Hi Robert, I'm trying to move the folder eSearch to another path into the folder widgets (uri:"widgets/myWidgets/eSearch/Widget"), but I got problem with the file './List'. It file don't load because the uri is wrong (widgets/eSearch/List). Anothers widgets working fine. Could you please help me with It? Note: WAB version 2.2 eSearch version 2.2.1 Thanks in advance.
... View more
05-23-2017
02:17 PM
|
0
|
0
|
3928
|
DOC
|
Thank you Robert, I will try setting a rule in the httpProxy object (config.json file).
... View more
09-23-2016
10:37 AM
|
0
|
0
|
3402
|
DOC
|
Hi Robert, Could you please say me when the Widget uses the proxy server? I'm testing the app deployed in a web server with proxy setting but I can't see the request with proxy. I only see the request with proxy, when the proxy's setting is for all request. I'm following the help document. Warning: Once your app is deployed to your web server the widget no longer has access to the Node JS proxy and therefore some searches may fail due to the size of the query request. In order to prevent this type of search failure you need to deploy a Proxy to your web server. You simply need to go to the Esri/resource-proxy · GitHub website and download the proxy and follow the instructions in the readme for the web server version you are using (i.e. IIS on a windows machine means you use the DotNet proxy). Once you have the proxy setup on your web server, all you need to do is add the URL to the apps config.json file in the httpProxy object. Thank you.
... View more
09-23-2016
09:44 AM
|
0
|
0
|
3402
|
DOC
|
Thank you Robert, You are right. I will try to move it to last version. Regards.
... View more
09-08-2016
11:01 AM
|
0
|
0
|
2872
|
DOC
|
Hi Robert, I detected that attributes type Date when set it to "Ask for values" and users no entered a value, the function "buildWhereClause" fail if value is null. Furthermore, when I use the condition "between", the function "_onRangeDateBlur" on SingleParameter.js fail if values are nulls. I use WAB 2.1 and eSearch version 2.1. Thanks, I appreciate your help.
... View more
09-08-2016
10:06 AM
|
0
|
0
|
2872
|
DOC
|
rscheitlin, my WAB version is 2.1 Originally, I used the function "attWidget._tableFunctionController.getActiveTable();" to get the active table but the function "_tableFunctionController" not exist into the object attWidget, then I use "attWidget._activeTable" but I don't know if that is Ok because the filter is not applied. I'm sure that the AT is loaded and opened because the query open the table when found results. setTimeout(lang.hitch(this, function(){ if (this.wManager) { var widgetCfg = this._getWidgetConfig('AttributeTable'); if(widgetCfg){ var attWidget = this.wManager.getWidgetByLabel(widgetCfg.label); if(attWidget){ this.wManager.openWidget(attWidget); attWidget._openTable().then(lang.hitch(this, function (){ var partsObj = { "expr": "CODIGO_PREDIO='" + arg.codigopredio +"'", "parts": [] }; console.info(attWidget); //var activeTable = attWidget._tableFunctionController.getActiveTable(); var activeTable = attWidget._activeTable; activeTable.setFilterObj(partsObj); activeTable.refresh(); })); } } } }), 5000); Thank you so much.
... View more
08-24-2016
02:01 PM
|
0
|
0
|
2872
|
DOC
|
Hi Robert Scheitlin, GISP, thank you for excellent work with this widget. I'm working about to show relate table that were loaded in the web map. I achieved load the tables over the widget Attribute Table but at moment of filter the result with the objectid (or attribute relation between tables) not working, then the tables show all records. I use "partsObj" expression and then setFilterObj over the activeTable. Could you check why the filter not working on active table? Thank you so much. /** * Consultar Tablas relacionadas */ _showDetailsinAttributeTable: function (arg) { debugger; alert('Consultando tablas relacionadas...' + arg.codigopredio); this.operLayerInfos.getTableInfoArray().forEach(lang.hitch(this, function(layerInfo) { console.log(layerInfo.title, layerInfo.id); layerInfo.setFilter("CODIGO_PREDIO='" + arg.codigopredio +"'"); this._openResultInAttributeTable(layerInfo); })); if (this.wManager) { var widgetCfg = this._getWidgetConfig('AttributeTable'); if(widgetCfg){ var attWidget = this.wManager.getWidgetByLabel(widgetCfg.label); if(attWidget){ this.wManager.openWidget(attWidget); var partsObj = { "expr": "CODIGO_PREDIO='" + arg.codigopredio +"'", "parts": [] }; console.info(attWidget); var activeTable = attWidget._activeTable; activeTable.setFilterObj(partsObj); activeTable.refresh(); } } } }
... View more
08-24-2016
08:35 AM
|
0
|
0
|
2872
|
Title | Kudos | Posted |
---|---|---|
1 | 04-24-2020 01:55 PM | |
1 | 12-14-2017 09:35 AM | |
1 | 11-21-2017 09:35 AM | |
1 | 12-06-2017 06:30 AM | |
2 | 11-21-2017 04:43 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|