POST
|
Right now I'm trying to do an update on particular ObjectIDs using Integromat and REST. Right now my JSON that I'm pushing to REST is as follows: [ { "attributes" : { "OBJECTID" : 1, "City_Name" : "here"} } ] Within Integromat I'm automatically grabbing the token and service URL so that should be correct. In the end I can update the feature using REST directly on the service URL page, but not successful with the Integromat method. Any ideas?
... View more
09-21-2018
11:01 AM
|
0
|
7
|
2912
|
BLOG
|
Great script! How would I modify the script to only look at a particular field for changes? I'm looking to watch my status field change for a request. Thanks
... View more
09-19-2018
01:51 PM
|
0
|
0
|
9456
|
POST
|
Hi James, Are there any timelines associated with these enhancements? Thanks, Joe
... View more
09-18-2018
09:44 AM
|
1
|
0
|
801
|
POST
|
Hey Robert, Any ideas with the in screen popup code as I provided above? Thanks, Joe
... View more
09-17-2018
09:17 AM
|
0
|
1
|
454
|
POST
|
Is it possible to hide a date field in Survey123? The reason for this is that I don't want users to see the field but I will need an empty date field for later editing for myself in a web app. Thanks
... View more
09-11-2018
12:43 PM
|
0
|
1
|
1245
|
POST
|
Config.json attached. Found in C:\arcgis-web-appbuilder-2.8\WebAppBuilderForArcGIS\server\apps\3
... View more
09-11-2018
12:40 PM
|
0
|
4
|
1009
|
POST
|
That huge gap between buttons is my problem. Button 1 and 2 are on top of each other where the swap icon is. I can only have 3 widgets
... View more
09-11-2018
12:06 PM
|
0
|
6
|
1009
|
POST
|
My widget buttons 1 and 2 are overlapping each other in WAB (Image below). How do I fix this in the code? Thanks
... View more
09-11-2018
08:05 AM
|
0
|
10
|
1400
|
POST
|
I would rather have an "in screen" option. Any idea how to incorporate this after exploring my code above?
... View more
09-04-2018
12:27 PM
|
0
|
0
|
454
|
POST
|
Robert, Just experimenting right now. Trying to implement the in screen popup (not iFrame) in MapManager.js but with little success. Here is my code function PopupCenter(url, title, w, h) {
// Fixes dual-screen position Most browsers Firefox
var dualScreenLeft = window.screenLeft != undefined ? window.screenLeft : screen.left;
var dualScreenTop = window.screenTop != undefined ? window.screenTop : screen.top;
width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width;
height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height;
var left = ((width / 2) - (w / 2)) + dualScreenLeft;
var top = ((height / 2) - (h / 2)) + dualScreenTop;
var newWindow = window.open(url, title, 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left);
// Puts focus on the newWindow
if (window.focus) {
newWindow.focus();
}
}
_publishMapEvent: function(map) {
topic.subscribe('toggleChanged', lang.hitch(this, function(visible, layer){
if(visible){
}
}));
// create node for the tooltip
var tip = "Click on problem location";
var tooltip = dojo.create("div", { "class": "tooltip", "innerHTML": tip }, map.container);
dojo.style(tooltip, "position", "fixed");
// update the tooltip as the mouse moves over the map
dojo.connect(map, "onMouseMove", function(evt) {
var px, py;
if (evt.clientX || evt.pageY) {
px = evt.clientX;
py = evt.clientY;
} else {
px = evt.clientX + dojo.body().scrollLeft - dojo.body().clientLeft;
py = evt.clientY + dojo.body().scrollTop - dojo.body().clientTop;
}
// dojo.style(tooltip, "display", "none");
tooltip.style.display = "none";
dojo.style(tooltip, { left: (px + 15) + "px", top: (py) + "px" });
// dojo.style(tooltip, "display", "");
tooltip.style.display = "";
// console.log("updated tooltip pos.");
});
// hide the tooltip the cursor isn't over the map
dojo.connect(map, "onMouseOut", function(evt){
tooltip.style.display = "none";
});
//add this property for debug purpose
window._viewerMap = map;
MapUrlParamsHandler.postProcessUrlParams(this.urlParams, map);
console.timeEnd('Load Map');
if (this.map) {
this.map = map;
this.resetInfoWindow(true);
console.log('map changed.');
topic.publish('mapChanged', this.map, this.layerInfosObj);
} else {
this.map = map;
this.resetInfoWindow(true);
topic.publish('mapLoaded', this.map, this.layerInfosObj);
}
require([
'esri/graphic',
'esri/symbols/SimpleMarkerSymbol',
'esri/symbols/SimpleLineSymbol',
'esri/Color'
], lang.hitch(this, function(Graphic, SimpleMarkerSymbol, SimpleLineSymbol, Color){
var symbol = new SimpleMarkerSymbol(
SimpleMarkerSymbol.STYLE_X, 18,
new SimpleLineSymbol(
SimpleLineSymbol.STYLE_X,
new Color([207, 16, 45, 0.9]),
1
),
new Color([207, 16, 45, 0.9])
);
map.on("click", lang.hitch(this, function(evt){
var gra = new Graphic(evt.mapPoint, symbol);
setTimeout(lang.hitch(this, function(){
var selFeats = map.infoWindow.features;
if(!selFeats){
map.graphics.clear();
map.graphics.add(gra);
PopupCenter('http://www.xtf.dk','xtf','900','500');
map.infoWindow.setContent('<a href="https://survey123.arcgis.com/share/xzy123?center='+ evt.mapPoint.getLatitude().toString() + ','+ evt.mapPoint.getLongitude().toString() + '" target="_blank"><font size="4">Click here to submit a service request</font></a>');
map.infoWindow.show(evt.mapPoint);
}
}), 1000);
}));
}));
},
Thanks
... View more
08-30-2018
11:51 AM
|
0
|
2
|
621
|
POST
|
What are your thoughts on something like this: xTF: Center a new popup window even on dualscreen with javascript
... View more
08-29-2018
02:30 PM
|
0
|
4
|
621
|
POST
|
Ok A note too my previous question. If I said that my WAB app is run on my own server but hosted on AGOL for the services and requires login. Does that change your viewpoint on iFrames? The users will be internal
... View more
08-29-2018
01:44 PM
|
0
|
6
|
621
|
POST
|
Got it to work in Chrome. Added the _parent and it opens in the same tab. Would there be a way to allow the user to get back to WAB from the Survey123 form?
... View more
08-29-2018
01:40 PM
|
0
|
10
|
621
|
Title | Kudos | Posted |
---|---|---|
1 | 10-31-2018 08:24 AM | |
3 | 12-18-2018 09:23 AM | |
1 | 12-02-2019 07:53 AM | |
1 | 04-24-2020 11:11 AM | |
1 | 08-14-2019 02:25 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|