POST
|
Hello! I am generating some layer from a querytask.execute result created from the selected options of a custom form widget. I have a color array in the config file in order to color the simbology of the outpoot result, but I would like to know if is there is another better idea or if it is possible to access to the coolor pick tool in order to improve the development. Any ideas? Thanks! Marga
... View more
10-25-2016
04:27 AM
|
0
|
2
|
782
|
POST
|
You were rigth, it was an error not handled. Thanks!
... View more
10-23-2016
11:30 PM
|
0
|
0
|
302
|
POST
|
Hi, I have a widget for permorming a query and draw some elements in the map. When I execute my query with the querytask I also write in a label "X record founded". (...) queryTask.execute(query, dojo.hitch(this, "drawRecords")); }, drawRecords: function (featureSet) { (...) this.shelter.hide(); dojo.byId("myLabel").innerHTML = "X record founded"; } And this works fine when I have >1 records in the featureset, BUT when I have zero results, drawRecords function is not triggered, so the shelter never disappeared and the message tellin 0 record founded never appears. I have try several things, but nothing is working.. I know that querytask has the methoth "executeForCount" but I am not sure how to use it and if i need to keep the "normal" execute in order to execute the query or if with one is enough.. any help? Thanks! Marga
... View more
10-18-2016
04:18 AM
|
0
|
2
|
751
|
POST
|
My bad, i don't know what was I looking, but it was a different field, I don't know if I can delete this message. thanks anyway Robert
... View more
10-18-2016
03:58 AM
|
0
|
0
|
271
|
POST
|
Hi, I need to show in a drop-down list the content of the queryresult. This result, has a string field with strings that sometimes has the single quote symbol or the written accent: ( ' or ´ ) and when these strings are shown has the symbol "?" instead of the correct one. How can I fix it? Thanks! Marga
... View more
10-17-2016
05:03 AM
|
0
|
2
|
856
|
POST
|
Hi! It was that, i have a different name in manifest.json thanks Robert!
... View more
10-13-2016
02:54 AM
|
0
|
0
|
1014
|
POST
|
Hi! Well but i am copying demo widget from samplewidget to widget folder. So the explanation doesn't apply here, right? Marga
... View more
10-11-2016
09:30 AM
|
0
|
2
|
1014
|
POST
|
Hi Robert, There is no error in the cmd line window.. and I am just adding a widget that is included in the sample folder of WAB (it shouldn't be an error on those widgets). For example, If I added the esearch widget to this path "C:\WebAppBuilderForArcGIS_2.1\client\stemapp\widgets" it is available for al the application whereas the one that I have copied from the sample folder to that folder and rename it to "MyWidget" (including the modification of the widget.js file) is not working.. Should be working just doing that right? I mean like the esearch widget.. thanks! Marga
... View more
10-11-2016
05:18 AM
|
0
|
4
|
1014
|
POST
|
Mmm.. I understand what you say but I still have some doubt, maybe I have not explain myself.., if I wanted to add a new widget to my new app (i have already created) starting from the samplewidgets (copying the one named 'demo' as mywidget and following the steps explained above) do I need to copy that widget folder into my app directory before trying to add to the new app or the described proccess will be enought just to make the widget available to be able to select from the custom mode of the widget wizard? Because I have tried to do as i have explained and doesnt work. Maybe I am total wrong in my approach.. Thanks you very much! marga
... View more
10-10-2016
11:49 AM
|
0
|
6
|
1014
|
POST
|
Hi! I am trying to do a simple example about how to add a widget to all apps, I mean to make it available and selectable for all the existing and new apps. I know that "general" widgets are here: And this is my try: 1. I have copied from "C:\WebAppBuilderForArcGIS_2.1\client\stemapp\widgets\samplewidgets\" the folder "Demo" and rename it to "MyWidget". 2. I have modified the widget.js like this: 3. I have modified the file "config.json" that is in this path: C:\WebAppBuilderForArcGIS_2.1\client\stemapp Do I need to do something else? Because I am not able to select this widget when I create a new app. Thanks! Marga
... View more
10-10-2016
05:08 AM
|
0
|
8
|
1774
|
POST
|
Of course! I was just waiting to check it if it works and it works, thanks!
... View more
10-09-2016
11:52 PM
|
0
|
0
|
1261
|
POST
|
Hi Robert! I will try and keep you informed. thanks! Itziar
... View more
10-07-2016
05:17 AM
|
0
|
2
|
1261
|
POST
|
Hi! I need to show a loading icon or something similar while the widget is performing a query or other operation. I have never done this before (no in JS or WAB) and I am quite lost. I would like something simple, just to make understand to the user that he/she needs to wait. Any idea or tip for having something to start work on please? Thanks! Marga
... View more
10-06-2016
05:18 AM
|
0
|
7
|
3106
|
POST
|
Hello Lori! Thanks for your idea, but it doesn't work. Anyway, I have been able to make it works with this code fot it helps to others: svc.buffer(bufferParameters).then(function (evt) { var simplefillsymbol = this.config.bufferDefaults.simplefillsymbol; //create a graphic with the buffer polygon var graphic = new Graphic(); graphic.symbol = new SimpleFillSymbol(simplefillsymbol); graphic.geometry = evt[0]; map.graphics.add(graphic); //Add the buffer polygon to the map / /Create the query between the lines layer and the buffer graphic var queryTask = new QueryTask(linesLayer.url); var query = new Query(); query.returnGeometry = true; query.outFields = ["*"]; query.outSpatialReference = { "wkid": 102100}; query.geometry = webMercatorUtils.webMercatorToGeographic(graphic.geometry); query.spatialRelationship = Query.SPATIAL_REL_INTERSECTS; queryTask.execute(query).then(function (featureSet) { //Loop throught the results }); }); It has started working when I have added this line of code: query.geometry = webMercatorUtils.webMercatorToGeographic(graphic.geometry);
... View more
10-05-2016
02:20 AM
|
0
|
0
|
1925
|
POST
|
Now the buffer is working and I am able to see the buffer (blue circle) in the map so if I am right, I will need to use a query in order to get the the lines that intersectswith the buffer polygons,right? I use the query and the query task, but again.. problems and I think that also becuase the geometry parameter.. svc.buffer(bufferParameters).then(function (evt) { resultEvent = evt[0]; var buf_pol = new Polygon(evt[0],new SpatialReference({ wkid: 102100 })); //I have try this "copying" the previous error solution just in case but doesn't work LineQuery= new QueryTask(linesLayer.url); LineQuery= new Query(); LineQuery.Geometry = buf_pol; // I have also try like [buf_pol] or whith the buffer [graphic.geometry] but no succeed LineQuery.outFields = ["*"]; LineQuery.orderByFields = ["ID"]; LineQuery.returnGeometry = true; LineQuery.outSpatialReference = { wkid: 102100 }; LineQuery.spatialRelationship = Query.SPATIAL_REL_INTERSECTS; LineQuery.execute(LineQuery).then(function (results) { console.log ('QueryBuffer Results'); }); debugger // this.graphicsLayerBuffer.clear(); // this.graphicsLayerBuffer.add(graphic); }); [...] This is the call: http://10.81.6.16:6080/arcgis/rest/services/lin_Layer/FeatureServer/0/query?f=json&where=&returnGeometry=true&sp… (I dont see the Geometry parameter in this url whereas when I do others calls yes. This is the error: {"error":{"code":400,"message":"Unable to complete operation.","details":["Unable to perform query operation."]}} I don't understand why I have again problems with geometry parameters I have follow the documentation examples..
... View more
10-04-2016
04:15 AM
|
0
|
2
|
1925
|
Title | Kudos | Posted |
---|---|---|
1 | 09-20-2016 04:57 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|