|
POST
|
Is there a way I change the URL of the couple of layers in my WebMap Contents? I have a development version of a ma service that I would like to use for some testing. It is only two layers in the WebMap so I can add the development layers, but I would have to reconfigure pop ups and labels and I was hoping there was an easier way. Thanks, Mele
... View more
02-01-2016
03:44 PM
|
0
|
3
|
2951
|
|
POST
|
Alejandro, I am grateful to Liz and Robert for their help and I am glad their assistance to me was also of use to you. Mele Robert Scheitlin, GISP
... View more
01-28-2016
03:37 PM
|
1
|
0
|
3763
|
|
POST
|
We have a web app builder application installed on our local web server. We have noticed that it does not work in IE 11 on a Windows 8.1 machine. However, it does work on Chrome on a Windows 8.1 machine. It seems to hang up over logging in to ArcGIS Online to get the WebMap. Has anyone seen this happen? Mele
... View more
01-27-2016
03:32 PM
|
0
|
3
|
3169
|
|
POST
|
Alejandro, This my complete code. _worksAfterCreate: function () {
//debugger;
this.editor.templatePicker.on("selection-change", lang.hitch(this, function() {
var selected = this.editor.templatePicker.getSelected();
if (selected) {
var featureLayer = selected.featureLayer;
on.once(featureLayer, "before-apply-edits", lang.hitch(this, function(evt){
if(evt.adds && evt.adds.length > 0){
if(evt.adds[0].attributes.hasOwnProperty('sfd_status')){
evt.adds[0].attributes.sfd_status = "NOT FLUSHED";
}
if (evt.adds[0].attributes.hasOwnProperty('sfd_edit_by')){
evt.adds[0].attributes.sfd_edit_by = StationShift;
}
if (evt.adds[0].attributes.hasOwnProperty('sfd_edit_date')){
evt.adds[0].attributes.sfd_edit_date = convertUTCDateToLocalDate(new Date(Date.now()));
}
refreshLayers(this.map, this.map.graphicsLayerIds);
this.editor.attributeInspector.refresh();
}
}));
}
}));
}, The section that may be most applicable to your situation is where I have a field called 'sfd_edit_by' that I am populating with my 'StationShift' variable defined elsewhere. if (evt.adds[0].attributes.hasOwnProperty('sfd_edit_by')){
evt.adds[0].attributes.sfd_edit_by = StationShift;
}
... View more
01-27-2016
09:14 AM
|
2
|
2
|
3763
|
|
POST
|
Alejandro, I did solve this issue using the code that Liz provided which Robert had suggested. Let me know if you have any questions on how I implemented this. Mele
... View more
01-27-2016
08:00 AM
|
3
|
4
|
3763
|
|
POST
|
If I look at the constructor details for the FeatureLayer, it shows mode as a parameter of type <number> with the following query modes liseted: FeatureLayer.MODE_SNAPSHOT: FeatureLayer.MODE_ONDEMAND: FeatureLayer.MODE_SELECTION: FeatureLayer.MODE_AUTO: What are the numbers that correspond to the above modes? I can see a number of 1 for my featureLayer but don't know what that corresponds to. Thanks, Mele
... View more
01-05-2016
02:44 PM
|
0
|
1
|
3173
|
|
POST
|
Changed my code slightly as shown below: //added to convert UTC to local Time function convertUTCDateToLocalDate(date) { date = new Date(date); var localOffset = date.getTimezoneOffset() * 60000; var localTime = date.getTime(); date = localTime - localOffset; //date = new Date(date); return date; };
... View more
01-05-2016
11:20 AM
|
0
|
0
|
28293
|
|
POST
|
I am using the Editor Widget in WAB to add a feature. I am then using the Batch Attribute Editor Widget to update the feature added by the editor widget. In my map service, I have set up a definition to query out the new feature and 'send' it to the layer used by the batch editor widget. In my map service I have two layers" Hydrant Review Missing Hydrant If I look in the map service the new feature shows up in the Hydrant Review Layer as expected, and not in the missing hydrant layer. However, when I look at the map in my application, the feature shows up in both layers until I close out the browser. When I close and re-open the browser, the feature appears correctly. There is only one feature in the Hydrant Review layer. Is there something being cached by the editor widget? I did do a refresh in my code on both layers, but this did not help. How can I get the map to show the newly added feature correctly? Thanks, Mele
... View more
01-04-2016
03:58 PM
|
0
|
1
|
3693
|
|
POST
|
Yes, Robert, that is what I was looking to do. Add some text dynamically to the Header Controller Widget below. I would like to add something at the end of 'Hydrant Maintenance Program'. It looks like this is the Title which is set in the config.json file.
... View more
12-24-2015
08:11 AM
|
0
|
5
|
2599
|
|
POST
|
Junshan Liu, setting the timeout worked to get the panel to open. It was an onscreen widget so that helped a lot! Thanks. Robert Scheitlin, GISP, I may end up using your solution as well, but for now it is working. You are both correct so I appreciate your help in solving my problem! Can I mark both of your answers as correct?
... View more
12-24-2015
08:00 AM
|
0
|
1
|
2975
|
|
POST
|
The error that I get is fail to close widget SFDShiftPickList. TypeError: Object doesn't support property or method 'setState' Thanks for any assistance.
... View more
12-23-2015
07:51 PM
|
0
|
1
|
2975
|
|
POST
|
I have a custom widget that requires user input I would like to ensure that the user has input data before they close the panel. I have some code that alerts the user if the data has not been input, but I would like the panel to re-open 'forcing' the user to set a value before proceeding. I was using the onClose function to check for the value and then re-open the panel, onClose: function(){ console.log('onClose'); if (!editor) { alert('Must set station/shift'); var pm = PanelManager.getInstance(); pm.openPanel(_34_panel); } } I got an error in console that lead me to believe that the widget had been destroyed by the time it got to my code. Has anyone done something like this? Thanks for any code samples. Mele
... View more
12-23-2015
02:54 PM
|
0
|
9
|
5687
|
|
POST
|
I may not be using the correct term but what I would like to do is to add some text to the title bar or header are in WAB application based on the selection made in another widget. How can I add some text dynamically to the title bar?
... View more
12-19-2015
04:32 PM
|
1
|
7
|
5406
|
|
POST
|
Thanks to Robert and Jian for your assistance. I was able to get this working as I wanted.
... View more
12-14-2015
02:00 PM
|
0
|
0
|
2795
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-27-2026 09:23 AM | |
| 1 | 02-26-2026 06:47 AM | |
| 3 | 10-20-2025 05:21 AM | |
| 1 | 03-13-2015 04:39 PM | |
| 1 | 09-18-2025 08:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|