DOC
|
Good afternoon! First of all, congratulations on the widget. Very well written and helped me a lot. I have only one doubt: is there any way to include in the common text fields, a style of auto-complete, that is, depending on what the user is typing, to suggest the possibilities? Thank you! Gilberto.
... View more
06-09-2020
10:46 AM
|
0
|
0
|
7621
|
DOC
|
Hello! Robert, I debugged it with google chrome, and I was able to check the place where
I could insert what I needed. Follow below:
In the '_onSearchFinish' function of the widget.js file
for (i = 0; i < len; i++) {
var featureAttributes = results.features.attributes;
sListaCodigosEstacoes += "'" + featureAttributes["myAttribute"] + "',"; //variable with content i need
Thanks!
Hug,
Gilberto.
... View more
04-28-2020
01:32 PM
|
0
|
0
|
7621
|
DOC
|
Thank you for your help.
Worked perfectly.
I just need to find out where the results are stored, so I can take one of the attributes and pass it to my ASP.NET C #
application. Hug, Gilberto.
... View more
04-28-2020
10:36 AM
|
0
|
0
|
7621
|
DOC
|
Hello! I am in need of help. In the results tab, is it possible to remove the options "Pan to", "Flash", "Save To My Content" and "Statistics"? Another issue is that I need to include two date fields in the widget, that is, the start date and the end date. These fields will not perform any filter on the map. I'll just need to use them to later generate an excel spreadsheet using an external application made in C #. This is another thing that I need to check how to get the results array. If you can help me, I will be grateful. Thank you! Gilberto.
... View more
04-27-2020
01:30 PM
|
0
|
0
|
7621
|
POST
|
Hello!
If possible, I would like help from friends on the
forum. I need to create a custom widget for the
web appbuilder, where I can make available to the
user, filter options for a specific layer.
Example: I have a layer of water quality monitoring
stations, where there are points where each station
is located. I need my widged to have filters, a
polygonal with two vertices for selecting an area.
Within this area, the user can also filter by
municipality, hydrographic basin, hydrographic
region, start and end date, etc. The user can make
the desired combination of filters, for example, it
is not mandatory to select the polygonal on the map.
I do not know where to start. If anyone has done
something like this and can help me, I will be
grateful. Thank you! Gilberto.
... View more
04-26-2020
09:48 PM
|
0
|
0
|
427
|
POST
|
Hello! Now I understand. The screening widget has a configuration file "application folder \ configs \ Screening \ config_xxx.json" and inside it there is the "layers" key, which contains the services url of the layers. My problem was that this listing was different from the list of layers added on my map within the portal for arcgis. What I did was get the url of each layer from my portal map and add to that configuration file. Sorry for English, but I'm Brazilian and I speak Portuguese. If you need any help, just write here or send an email to gilbertorm83@gmail.com. hug
... View more
06-15-2018
01:30 PM
|
0
|
0
|
754
|
POST
|
Hello! I did not understand your questioning. Do you have the same error? What message does not receive console? Gilberto.
... View more
06-15-2018
01:13 PM
|
0
|
2
|
754
|
POST
|
Hello! Personally, I was able to solve the problem: what was happening was that I had to modify the layers of my map and had not reconfigured them in the screening widget. Thank you! Gilberto.
... View more
06-05-2018
01:36 PM
|
0
|
0
|
754
|
POST
|
Hi guys! I added in my application the screening widget and until then everything was working properly. From today, after I draw a polygon, on an active layer in the layerlist widget, clicking the "Report" button, the area where the occurrences are shown for certain active layers, does not load anything. The strange thing is that no error is displayed on the chrome console. It just does not work anymore. Even though I click the "update" button, nothing happens. If anyone can give me a hint of what to check, I'll be grateful. Attached is my widget. Thank you! Gilberto.
... View more
06-04-2018
02:41 PM
|
0
|
5
|
1240
|
POST
|
Hello Friend! Yes, I did. Below I include the function code that you need to change within the file "application folder \ widgets \ LayerList \ LayerListView.js". The comments are in Brazilian Portuguese. I added other features in this function, such as display of minimal scale message. If you need any help, just write. _onCkSelectNodeClick: function(layerInfo, ckSelect, evt) { if (layerInfo.isRootLayer()) { //SE FOR UM NÓ PAI (GURPO) if (ckSelect.checked) { //Marcou o checkbox layerInfo.setTopLayerVisible(true); } else { //Desmarcou o checkbox layerInfo.setTopLayerVisible(false); } } else { //SE FOR UM NÓ FILHO (CAMADA) if (ckSelect.checked) { //Marcou o nó filho if (layerInfo.layerObject) { if (layerInfo.layerObject.minScale || layerInfo.layerObject.maxScale) { if (layerInfo.layerObject.minScale > 0 || layerInfo.layerObject.maxScale > 0) { Number.prototype.format = function(d_len, d_pt, t_pt) { var d_len = d_len || 0; var d_pt = d_pt || "."; var t_pt = t_pt || ","; if ((typeof d_len != "number") || (typeof d_pt != "string") || (typeof t_pt != "string")) { throw new Error("wrong parameters for method 'String.pad()'."); } var integer = "", decimal = ""; var n = new String(this).split(/\./), i_len = n[0].length, i = 0; if (d_len > 0) { n[1] = (typeof n[1] != "undefined") ? n[1].substr(0, d_len) : ""; decimal = d_pt.concat(n[1].pad(d_len, "0", String.PAD_RIGHT)); } while (i_len > 0) { if ((++i % 3 == 1) && (i_len != n[0].length)) { integer = t_pt.concat(integer); } integer = n[0].substr(--i_len, 1).concat(integer); } return (integer + decimal); } var nEscalaMinima = layerInfo.layerObject.minScale; var nEscalaMaxima = layerInfo.layerObject.maxScale; var sMensagem = "A camada " + layerInfo.title + " está visível apenas entre as escalas "; if (layerInfo.layerObject.minScale > 0) { sMensagem += "1/" + nEscalaMinima.format(0, ",", "."); } if (layerInfo.layerObject.minScale > 0 && layerInfo.layerObject.maxScale > 0) { sMensagem += " e " } if (layerInfo.layerObject.maxScale > 0) { sMensagem += "1/" + nEscalaMaxima.format(0, ",", "."); } //Exibe mensagem informando a escala mínima e máxima para visualização da camada, apenas se o //mapa não estiver na escala de zoom correta if (!layerInfo.isCurrentScaleInTheScaleRange()) { new Message ( { titleLabel:"Escala de Visibilidade da Camada", message: sMensagem, width: 500 } ); //Se o mapa não estiver na escala necessária, e o clique do usuário, tenha sido em uma camada de um nó filho, após //exibir a mensagem para o usuário, desmarca o checkbox que gerou o evento de clique. //if (!layerInfo.isRootLayer()) //{ query("[class~='visible-checkbox-" + layerInfo.id + "']", this.domNode).forEach ( function(visibleCheckBoxDomNode) { var visibleCheckBox = registry.byNode(visibleCheckBoxDomNode); //if (layerInfo.isVisible()) //{ //layerInfo.parentLayerInfo.push({"visibility":"true"}); //console.log(layerInfo.parentLayerInfo); //var cc = layerInfo._oldIsShowInMap; //console.log(cc); //visibleCheckBox.check(); //} //else //{ visibleCheckBox.uncheck(); layerInfo.setTopLayerVisible(false); //} }, this ); //} } else { //Nó filho que possui escala e está dentro desta escala. //Ao clicar em um nó filho, marca o nó pai //if (!layerInfo.isRootLayer()) //{ query("[class~='visible-checkbox-" + layerInfo.parentLayerInfo.id + "']", this.domNode).forEach ( function(visibleCheckBoxDomNode) { var visibleCheckBox = registry.byNode(visibleCheckBoxDomNode); //if (!layerInfo.parentLayerInfo.isVisible()) //{ visibleCheckBox.check(); layerInfo.parentLayerInfo.setTopLayerVisible(true); layerInfo.setTopLayerVisible(true); //} }, this ); //} } } else { //Nó filho, que a escala é zero ou menor que zero //if (!layerInfo.isRootLayer()) //{ query("[class~='visible-checkbox-" + layerInfo.parentLayerInfo.id + "']", this.domNode).forEach ( function(visibleCheckBoxDomNode) { var visibleCheckBox = registry.byNode(visibleCheckBoxDomNode); //if (!layerInfo.parentLayerInfo.isVisible()) //{ visibleCheckBox.check(); layerInfo.parentLayerInfo.setTopLayerVisible(true); layerInfo.setTopLayerVisible(true); //} }, this ); //} } } else { //Nó filho, que não possui escala definida. //if (!layerInfo.isRootLayer()) //{ query("[class~='visible-checkbox-" + layerInfo.parentLayerInfo.id + "']", this.domNode).forEach ( function(visibleCheckBoxDomNode) { var visibleCheckBox = registry.byNode(visibleCheckBoxDomNode); //if (!layerInfo.parentLayerInfo.isVisible()) //{ visibleCheckBox.check(); layerInfo.parentLayerInfo.setTopLayerVisible(true); layerInfo.setTopLayerVisible(true); //} }, this ); //} } } } else { //Desmarcou o nó filho layerInfo.setTopLayerVisible(false); } } //if (ckSelect.checked) //{ //layerInfo.setTopLayerVisible(true); //} //else //{ //layerInfo.setTopLayerVisible(false); //} evt.stopPropagation(); } Hug, Gilberto.
... View more
06-04-2018
07:20 AM
|
1
|
1
|
3804
|
POST
|
Robert, Worked perfectly. Thanks again for the help. I really would not know how to do it without your help. Thank you! Gilberto.
... View more
05-14-2018
08:53 AM
|
0
|
0
|
1223
|
POST
|
Hello friends! I need to include a link to a url from another system, where I need to include a parameter in the url's formation. This parameter appears by default in the data that is in the popup, but I can not find a correct way to search for this information. Another detail is that this link option should appear only for a specific layer, that is, if the user clicks on the active point of another layer, I need to check if the layer he is clicking on is the one that should provide that link with to url. I was able to implement in the file "application folder \ jimu.js \ PopupManager.js", inside the function "_createPopupMenuButton" according to the code that follows just below: _createPopupMenuButton: function () { this.popupMenuButtonDesktop = html.create('span', { 'class': 'popup-menu-button' }, query(".actionList", this.popupUnion.bigScreen.domNode)[0]); //Create link var linkRelatorio = html.create("a", { "class": " action action-relatorio", "id": "actionRelatorio", "innerHTML": "Abrir Relatório", "href": "localhost/SigFepamRelatorios/Relatorio.aspx?idRelatorio=1&atanId=", "target": "_blank" }, query(".actionList", this.popupUnion.bigScreen.domNode)[0]); on(linkRelatorio, "click", this._onActionRelatorio); ... ... ... This code only puts the link with the url without the parameter I need, and in addition, displays the option whenever the popup is opened and not only for the layer that I want. Attached is an example of how it was. I am from Brazil, in the state of Rio Grande do Sul. Thanks for any help. Gilberto
... View more
05-11-2018
12:43 PM
|
1
|
2
|
1480
|
POST
|
Robert, Thank you very much for your information. Somehow I'll try to check if the ".zip" file exists ".prj". If I can, I'll post it here to share the knowledge. Hug, Gilberto.
... View more
04-27-2018
07:32 AM
|
0
|
0
|
312
|
POST
|
Hello! Personally, when using the AddData widget, I realized that it does not require the ".prj" file, which defines the projection in which the shapefile was generated (including rscheitlin informed me that it is not mandatory). Based on this, users have questioned me, how this shapefile import is performed. Our default is SIRGAS_2000, but if the shapefile was generated for example in WGS, what will the pattern look like? Does the sharing service automatically convert to the default where the system map is? Thank you! Gilberto.
... View more
04-27-2018
07:19 AM
|
0
|
2
|
422
|
POST
|
Hello Robert! Thanks for your return. Actually I was debugging, and I realized that I can not even include ".prj" as required, because in the code I saw the share service that performs this task. As for limiting the types of files to import, I'd already done that, just like you mentioned. Thanks a lot for the help. Hug, Gilberto.
... View more
04-25-2018
10:55 AM
|
0
|
0
|
539
|
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
|