POST
|
Hi Erin, Thank you so much for the detailed and quick response. The bug that you have just describe can throw a light on a crash that this same client had experienced few days ago. They defined all their service with minimum 0 instances. I will tell them about it. Thanks again, Miri
... View more
02-02-2015
01:08 PM
|
1
|
0
|
4032
|
POST
|
Hello Erin, Can you tell what is the influence of deleting the .glock files? I have a military client who wants to delete these files but is afraid that it will ruin something in his operational system. Alternatively, is creating of these files reproducible? Thanks a lot, Miri Eshel
... View more
02-02-2015
12:25 PM
|
0
|
2
|
4032
|
POST
|
Hi Robert, Thanks. Changing the CSS is a good idea and works wonderful. One more question if I may..... I take the basic ed_simpletoolbar.html from the sample code and change its attributeInspector. I want to add a button but also limit the number of fields displayed. I'm doing it by adding the lines: myEditor.startup(); var attInspector = myEditor.attributeInspector; var saveButton = new dijit.form.Button({label:"שלח","class":"saveButton"}); dojo.place(saveButton.domNode, attInspector.deleteBtn.domNode, "before"); var layerInfos = [ { 'featureLayer': attInspector.layerInfos[0].featureLayer, //waterBodies 'showAttachments': true, 'showDeleteButton': true, 'isEditable': true, 'fieldInfos': [ {'fieldName': 'Elevation', 'isEditable': true, 'tooltip': 'Elev'}, {'fieldName': 'Reach Code', 'isEditable': true, 'tooltip': 'Code'} ] } ]; attInspector.layerInfos = layerInfos; myEditor.attInspector = attInspector; When I put a breakpoint, I see that it behave like I expected but when the infoWindow opens, it shows all the fields. Why? What do I do wrong? Thanks, Miri
... View more
02-02-2015
02:47 AM
|
0
|
6
|
819
|
POST
|
Hi Robert. Thanks. I used this sample as you can see from my oother question in ArcGIS for Javascript API. There I will check the option of changing the CSS and let you know. Thanks again, Miri
... View more
02-01-2015
10:46 PM
|
0
|
1
|
337
|
POST
|
Hi, I'm trying to eliminate the upper toolbar of infoWindow that contains maximize and close buttons. I want to do it because I use Editor.AttributeInspector and I want the user to use either the OK button or Delete Button. I don't want the user to click on the close Here is the code I wrote: initEditor: function() { this._defaultStartStr = esriBundle.toolbars.draw.start; esriBundle.toolbars.draw.start = esriBundle.toolbars.draw.start + "<br/>" + "(" + this.nls.pressStr + "<b>" + this.nls.ctrlStr + "</b> " + this.nls.snapStr + ")"; this._defaultAddPointStr = esriBundle.toolbars.draw.addPoint; esriBundle.toolbars.draw.addPoint = esriBundle.toolbars.draw.addPoint + "<br/>" + "(" + this.nls.pressStr + "<b>" + this.nls.ctrlStr + "</b> " + this.nls.snapStr + ")"; var json = this.config.editor; var settings = {}; for (var attr in json) { settings[attr] = json[attr]; } settings.layerInfos = this.layers; settings.map = this.map; var params = { settings: settings }; if (!this.editDiv) { this.editDiv = html.create("div", { style: { width: "100%", height: "100%" } }); html.place(this.editDiv, this.domNode); } this.editor = new Editor(params, this.editDiv); this.editor.startup(); var feature; var attInspector = this.editor.attributeInspector; var theMap = this.editor.settings.map; theMap.infoWindow._sizers[0].height = 0; var saveButton = new dijit.form.Button({label:"OK","class":"saveButton"}); dojo.place(saveButton.domNode, attInspector.deleteBtn.domNode, "before"); saveButton.on("click", function() { if (feature == null) alert("Please enter values"); else { if (feature.attributes["name"] != null) { feature.attributes["date1"] = Date.now(); theMap.infoWindow.hide(); } else { alert("Name is a required field"); } } }); attInspector.on("attribute-change", function(evt) { feature = evt.feature; }); theMap.infoWindow.resize(350, 700); this.resize(); }, Thanks a lot, Miri
... View more
02-01-2015
12:06 PM
|
0
|
8
|
4733
|
POST
|
Hi, My mistake, I found the attributeInspector property in the Editor but I will rephrase the question: If I want to add a new OK button besides the Delete button, is it the best way to address the attributeInspector and change it? Is there another option? Thanks a lot, Miri
... View more
02-01-2015
02:18 AM
|
0
|
3
|
337
|
POST
|
Hi all, In the past, as far as I remember, the AttributInspector was a property of the Editor. I could reach it via : myEditor._attributeInspector. Now the AttributInspector is a seperate widget. I simply want to add a button besides the Delete button and use it in the webApp builder. I prefer to make changes in the Edit widget than to write a new custom widget with the AttributeInspector dijit. I find it a little bit cumbersome. I need it very urgently! Thanks a lot, Miri Eshel
... View more
02-01-2015
01:58 AM
|
0
|
4
|
4058
|
POST
|
Hi, The Edit widget uses the Editor dijit that inserts automatically the feature after digitizing it on the map. Our client wants a different behavior. He wants an OK button that only after clicking on it, the feature will be added to the layer. The client was satisfied with what I wrote him before the Web App Builder. It was a small application (attached the html file) that used the AttributeInspector. Now I find it difficult to combine it in the Edit widget. Whatever I did in widget.html, widget.js under Edit directory, I could not get rid of the basic screen of the Editor. Since I'm pretty new to developing in the WebAppBuilder and this is very very urgent to the client, I ask for your help. Thanks a lot, Miri
... View more
01-28-2015
12:11 AM
|
0
|
0
|
3783
|
POST
|
Looking for a solution to this also.... The applyEdits is always fired anyways. It causes two problems at least: 1. Upon closing the page, the feature is already inserted to the DB without clicking on the "Save" or "Delete" buttons. 2. If I want to enable only the Create operation under Feature Access capability, I cannot use the Editor because it uses the Update or Delete operations underneath. If it was the other way around, I would create a graphic on the map, fill the Attributes form and only when I click "Save", it would create a feature in the DB. In that way I could have stayed with only the Create operation. Thanks, Miri
... View more
12-11-2014
12:11 AM
|
0
|
0
|
708
|
POST
|
Hi Riyas, Thank you for your reply. I would like to be able to build a POST request from the beginning, I just don't know how to do it in the code that calls the printTask. The client insists to prevent using Proxy on his site. He thinks it is a Security breach and in a way, he is right. Thanks again, Miri
... View more
08-18-2014
09:54 PM
|
0
|
0
|
168
|
POST
|
Hi, One of our clients is trying to use a PrintTask that is hosted in one of our servers (ArcGIS Server 10.1). The printed map can contain few graphic elements. That's why the call to the task supposed to be done automatically by POST and not GET. It works well in Chrome, Mozilla, IE10 and up. Unfortunately it does not work in IE (specially IE8 and IE9). The only way to do it is using a Proxy that forces the request to be sent by POST but the client does not allow a proxy on his server from Information Security reasons. When we put a Proxy in one of our servers, the end user must set the option of "Access data sources across domains" under Security Tab to enable or prompt (if it is disabled, it does not work) and this is not acceptable. My questions are: Why in IE it does not send it by POST (it does not send it at all in case of more than one-two graphics) If we'll install ArcGIS Server 10.2.2 instead of the existed version of ArcGIS Server 10.1, will the PrintTask work as expected also for IE ? What else can we try? As I mentioned, Proxy is not an option. Enclosed with the code, with which you can reproduce the problem. Few Notes: There is a loop in the code that displays graphic elements. If it runs with one element, it works OK but with more than one, it gives an error in IE. There are two lines that are now in comment : //esriConfig.defaults.io.proxyUrl = "http://82.166.80.134/PrintMap/proxy.ashx"; //esriConfig.defaults.io.alwaysUseProxy = false; If you uncomment them, the PrintTask will use proxy but the option of "Access data sources across domains" must be enabled in IE. Thanks a lot, Miri
... View more
08-18-2014
03:39 AM
|
0
|
2
|
2335
|
POST
|
Hi Robert, Exactly. I don't need the useProxy tag in the print widget since the print service is not secured. I read the links but couldn't find a solution to my problem. I guess I will have no choice other than avoid using proxy for the secured layers and let the user typr user & password in the beginning. In this case it works. Pity.... Thanks, Miri
... View more
05-22-2014
11:30 PM
|
0
|
0
|
616
|
POST
|
Hi Drew, What do you mean by : "using a proxy page instead of using a token directly "? I use a proxy too in order to avoid typing the user & password but I cannot print any map with secured layers. Have you succeeded? Thanks, Miri
... View more
05-22-2014
11:25 PM
|
0
|
0
|
246
|
POST
|
Hi, Did someone ever try it? It is really easy to reproduce: 1. Secure a service with a token 2. Add the next lines to the proxy.config (replace the servername with a real name): <serverItem url="http://serverName/arcgis/rest/services" matchAll="true" tokenUrl="http://serverName/arcgis/tokens" username="user" password="password" timeout="60" /> 3. Add the proxy URL in Settings 4. Use the Print widget with whatever Print service you choose. Thanks, Miri
... View more
05-22-2014
06:35 AM
|
0
|
0
|
616
|
POST
|
Hi Robert, As I wrote, when I use either useProxy="true" or useProxy="false" it does not work. Is that what you mean? Thanks, Miri
... View more
05-22-2014
06:28 AM
|
0
|
0
|
616
|
Title | Kudos | Posted |
---|---|---|
1 | 11-08-2016 01:45 AM | |
2 | 09-01-2020 12:52 AM | |
1 | 02-02-2015 01:08 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|