|
DOC
|
@KearaMcKay1 I am not a portal user but that looks like the right path.
... View more
11-26-2021
12:22 PM
|
0
|
0
|
9360
|
|
POST
|
does your "Screening_pmtools" constructor function have any arguments? Try putting some console.log or break points in your "Screening_pmtools"
... View more
11-24-2021
02:31 PM
|
0
|
2
|
3515
|
|
POST
|
hmm... Have you tried to console.log you component out to see if it is what it's suppose to be? this._drawPM = new Screening_pmtools();
console.log(this._drawPM);
... View more
11-24-2021
01:45 PM
|
0
|
4
|
3525
|
|
POST
|
@LefterisKoumis OK that looks good so it must be the listener then. this.own(on(this._drawTool, "onDrawComplete", lang.hitch(this, function (graphics) {
this._initToCreateAOIBuffer(graphics);
}))); The above code is only listening for the onDrawComplete event on the this_drawTool. So have you modified the widget.js to listen to the event on your custom component?
... View more
11-24-2021
01:13 PM
|
0
|
6
|
3531
|
|
POST
|
@LefterisKoumis and you are sure Evented is part of your declare array too? return declare([BaseWidget, _WidgetsInTemplateMixin, Evented], {
... View more
11-24-2021
12:48 PM
|
0
|
1
|
3536
|
|
POST
|
@LefterisKoumis Have you added the 'dojo/Evented' module to your define array and the declare array like the drawTool.js file has? this.emit comes from that module. https://dojotoolkit.org/reference-guide/1.8/dojo/Evented.html
... View more
11-24-2021
12:22 PM
|
0
|
1
|
3549
|
|
POST
|
@DaleBecker Here is a sample for that: <html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="initial-scale=1,maximum-scale=1,user-scalable=no"
/>
<title>Draw point | Sample | ArcGIS API for JavaScript 4.21</title>
<link
rel="stylesheet"
href="https://js.arcgis.com/4.21/esri/themes/light/main.css"
/>
<script src="https://js.arcgis.com/4.21/"></script>
<style>
html,
body,
#viewDiv {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
</style>
<script>
require([
"esri/Map",
"esri/views/MapView",
"esri/views/draw/Draw",
"esri/Graphic",
"esri/layers/GraphicsLayer"
], (Map, MapView, Draw, Graphic, GraphicsLayer) => {
const drawGL = new GraphicsLayer({
id: "draw Graphics Layer"
});
const map = new Map({
basemap: "gray-vector",
layers:[drawGL]
});
const view = new MapView({
container: "viewDiv",
map: map,
zoom: 15,
center: [18.06, 59.34]
});
//map.addLayer(drawGL)
const draw = new Draw({
view: view
});
view.when(()=>{
setDrawAction();
});
function setDrawAction() {
let action = draw.create("point");
// PointDrawAction.cursor-update
// Give a visual feedback to users as they move the pointer over the view
action.on("cursor-update", function (evt) {
createPointGraphic(evt.coordinates);
});
// PointDrawAction.draw-complete
// Create a point when user clicks on the view or presses "C" key.
action.on("draw-complete", function (evt) {
createPointGraphic(evt.coordinates, true);
setDrawAction();
});
}
function createPointGraphic(coordinates, addToGL){
view.graphics.removeAll();
let point = {
type: "point", // autocasts as /Point
x: coordinates[0],
y: coordinates[1],
spatialReference: view.spatialReference
};
let graphic = new Graphic({
geometry: point,
symbol: {
type: "simple-marker", // autocasts as SimpleMarkerSymbol
style: "square",
color: "red",
size: "16px",
outline: { // autocasts as SimpleLineSymbol
color: [255, 255, 0],
width: 3
}
}
});
if(addToGL){
drawGL.removeAll();
drawGL.add(graphic);
}else{
view.graphics.add(graphic);
}
}
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>
... View more
11-23-2021
09:10 AM
|
1
|
1
|
1683
|
|
POST
|
@Kishore AGOL is ArcGIS Enterprise behind the scenes. So the about link should still apply. But ultimately I do not have experience in your setup so tech support is the best route.
... View more
11-23-2021
05:34 AM
|
0
|
1
|
3781
|
|
DOC
|
@Kishore There is no proxy url in EB like there was in WAB. The support for the esri proxy is going away. See my response to your other thread for more details.
... View more
11-22-2021
05:31 AM
|
0
|
0
|
24625
|
|
POST
|
@Kishore I have not gotten the esri Proxy to work with EB. Actually the esri Proxy page states We don't recommend using this resource proxy. It is not being maintained and there's been no active development for many years. There are many better solutions. So how do you get secure services to work in EB?... Sounds like a question for esri tech support. Almost all the questions about using a secure service has gone unanswered in the EB space here. ESRI proxy resource page best practices does recommend this: Access secure services using ArcGIS Online to store your username/password credentials. It sounds like it could be the right path.
... View more
11-22-2021
05:29 AM
|
0
|
0
|
3943
|
|
POST
|
@ZA1, The timeout is required because even though the widgets state is reported as ready the DOM rendering is not always complete, so the DOM objects will not always be found.
... View more
11-22-2021
05:17 AM
|
0
|
1
|
4831
|
|
POST
|
@EricRuberson1 You can only have one on screen widget open at at time in the foldable theme as well. So in all you can have one on screen widget (what you picture above) and on header controller widget open at the same time. Now there are other themes like the launchpad theme that can have as many widgets as you want open at the same time.
... View more
11-17-2021
10:36 AM
|
0
|
0
|
1516
|
|
POST
|
@EricRuberson1 Sounds like you are talking about the limitation that the Foldable theme has for only ONE widget to be open at a time from the header controller. It's just how it is, when you open another widget that is in the header controller widget it will close any other widget that are opened from the header controller.
... View more
11-17-2021
05:42 AM
|
0
|
2
|
1520
|
|
POST
|
@EricRuberson1 Absolutely. I use the jimu message dijit in my eSearch widget several times. Here is one example that asks a question and assigns listeners to the buttons. var qMessage = new Message({
type: 'question',
titleLabel: this.nls.spatialchoicetitle,
message: this.nls.spatialchoicemsg,
buttons: [{
label: this.nls.buffergraphics,
onClick: lang.hitch(this, lang.hitch(this, function () {
qMessage.close();
var g = this.graphicsLayerBuffer.graphics[0];
intersectGeom = g.geometry;
this.search(intersectGeom, this.spatialLayerIndex, null, null, dataSpatialType);
}))
}, {
label: this.nls.selectiongraphics,
onClick: lang.hitch(this, lang.hitch(this, function () {
qMessage.close();
intersectGeom = this.unionGeoms(this.currentLayerAdded.graphics);
this.search(intersectGeom, this.spatialLayerIndex, null, null, dataSpatialType);
}))
}]
});
... View more
11-17-2021
05:30 AM
|
0
|
1
|
2049
|
|
POST
|
@EricRuberson1 This thread is pretty old but it may be of some help. https://community.esri.com/t5/web-appbuilder-custom-widgets-documents/tab-widget-to-follow-splash-screen-web-appbuilder/ta-p/917944
... View more
11-16-2021
10:43 AM
|
0
|
4
|
2080
|
| Title | Kudos | Posted |
|---|---|---|
| 16 | 05-17-2021 01:51 PM | |
| 1 | 07-06-2020 05:32 AM | |
| 1 | 07-10-2018 05:49 AM | |
| 9 | 01-28-2022 10:58 AM | |
| 1 | 03-28-2022 06:20 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|