|
DOC
|
Thank you Robert but I was referring to the arrows that reveal/hide the widget like the ones you have on your example.
... View more
10-19-2022
07:24 AM
|
0
|
0
|
23862
|
|
DOC
|
Hi Robert. I am using 1.9 Do I need to add the graphics for the left/right arrows and set their positions?
... View more
10-18-2022
05:10 PM
|
0
|
0
|
23874
|
|
POST
|
If you are using REST services on your widget, then you are probably limited by the setting MaxRecondCount. You can change the limit on the ArcGIS Server Manager.
... View more
08-31-2022
01:48 PM
|
0
|
1
|
948
|
|
POST
|
I figured it out. The solution was to get the components' div out of the tableDiv, and adjust the height in css. <div id="appContainer">
<div id="viewDiv"></div>
<div id="tableContainer" class="container">
<div id="select-by-rectangle" style="float:left; text-align:center;">
<calcite-button appearance="transparent" color="red" icon-start="selection-x" scale="s">Select by
rectangle
</calcite-button>
</div>
<div id="clear-selection" style="float:left; text-align:center;">
<calcite-button appearance="transparent" color="red" icon-start="erase" scale="s">Clear
Selection
</calcite-button>
</div>
<div id="ExportInfo" style="float:left; text-align:center">
<calcite-button appearance="transparent" color="red" icon-start="download-to" scale="s">Export
to CSV
</calcite-button>
</div>
</div>
<div id="tableDiv"></div>
</div>
... View more
08-26-2022
12:57 PM
|
0
|
0
|
1893
|
|
POST
|
Thank you. I had the components previously setup in the menuConfig, the same way as you mentioned. It is a good solution for a small number of tools. However, since I need to have a longer list of tools to be used for the feature table, it will make a long listing for the user to find the tool they need. To improve user's experience, I think placing the tools on the top of the feature table for easy and quick access is a better approach. Is there a way to deal with the issue that I described? Thanks.
... View more
08-26-2022
12:21 PM
|
0
|
0
|
1900
|
|
POST
|
I am get trying to get the calcite components line up next to each other but it seems that css is overwritten by the table? Here is an example. https://codepen.io/lkoumis1/pen/wvmbbYR
... View more
08-26-2022
10:19 AM
|
0
|
3
|
1940
|
|
POST
|
The slider doesn't seem to be working. https://codepen.io/lkoumis1/pen/oNqmGKR
... View more
08-23-2022
09:44 AM
|
0
|
1
|
586
|
|
POST
|
If you prompt for credentials to access the app though the portal I suggest to take look at the Smart Editor widget.js I used its logic to something like this to capture the user's email. Since you are using and organization you should be able to figure out the identity of the user. A simple js can capture the time of the login. Hopefully this is what you are looking for. var creatoremail = ""
var editoremail = ""
var portal = new arcgisPortal.Portal('https://svgcdeaprod.ct.dot.ca.gov/deaprod_portal')
portal.signIn().then(function (loggedInUser) {
// console.log("Signed in to the portal: " + loggedInUser)
// console.log(loggedInUser.email);
creatoremail = loggedInUser.email
... View more
08-23-2022
09:33 AM
|
3
|
1
|
3013
|
|
POST
|
Before I get to details, do you authenticate the user before they access your app?
... View more
08-23-2022
09:02 AM
|
0
|
2
|
3024
|
|
POST
|
It seems it occurs when you don't use a point layer. Why? I modified the sample code from esri and I have two layers. If set the point layer active (#74), upon selection by geometry the feature table shows only the selected features. However, if you set the polygon layer active (#72 the feature table still shows all records. https://codepen.io/lkoumis1/pen/RwMEGBq?editors=1001
... View more
08-17-2022
01:02 PM
|
0
|
1
|
1969
|
|
POST
|
I followed the script to display only the selected records on the feature table after you select by geometry as it is shown at: https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=highlight-features-by-geometry However, the featuretable does not filter out the unselected records. function selectFeatures(geometry) {
if (featureLayerView) {
// create a query and set its geometry parameter to the
// rectangle that was drawn on the view
const query = {
geometry: geometry,
outFields: ["*"]
};
// query graphics from the csv layer view. Geometry set for the query
// can be polygon for point features and only intersecting geometries are returned
featureLayerView
.queryFeatures(query)
.then((results) => {
const graphics = results.features;
resultFeatures = graphics;
if (results.features.length === 0) {
clearSelection();
} else {
// pass in the query results to the table by calling its selectRows method.
// This will trigger FeatureTable's selection-change event
// where we will be setting the feature effect on the csv layer view
console.log(featureTable)
featureTable.filterGeometry = geometry;
featureTable.selectRows(results.features);
}
})
.catch(errorCallback);
}
}
... View more
08-17-2022
10:26 AM
|
0
|
3
|
2018
|
|
POST
|
How can you add a checkbox at the column header so I can use it as select/deselect all records.
... View more
08-10-2022
03:09 PM
|
0
|
0
|
562
|
|
POST
|
Thank you. I already had the query to outFields=["*"] but not the layer. Apparently, by not using the same for the layer it does not by default use all fields even though the featuretable displays all fields.
... View more
08-10-2022
03:03 PM
|
0
|
0
|
1861
|
|
POST
|
I use Rene's example posted at: https://codepen.io/odoe/pen/rqXqVw?editors=0010 to export featuretable to csv but it produces a csv file with 2 fields including the objectid. I first selected the features by the geometry. Then the feature table is updated to show selected features. Then clicked on the export button to create the csv file but only one field but records span across multiple fields! As Rene's example shows, first declare the variable let resultFeatures get the selected features. featureLayerView
.queryFeatures(query)
.then((results) => {
const graphics = results.features;
resultFeatures = graphics; THen, attach code to the export button: view.ui.add("btn-export", "top-left");
const btn = document.getElementById("btn-export");
btn.addEventListener("click", () => {
if (resultFeatures.length) {
// export to csv
const attrs = resultFeatures.map(a => a.attributes);
console.log(attrs)
const headers = {};
const entry = attrs[0];
for (let key in entry) {
if (entry.hasOwnProperty(key)) {
headers[key] = key;
}
}
exportCSVFile(headers, attrs, "export");
}
}); The issue by now is exposed because one field is passed on to the CSV. Why?
... View more
08-10-2022
02:18 PM
|
0
|
2
|
1876
|
|
POST
|
Robert, how can you add a checkbox at the column header so I can use it as select/deselect all records.
... View more
08-09-2022
02:03 PM
|
0
|
0
|
1935
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-19-2025 10:13 PM | |
| 3 | 02-06-2026 10:44 AM | |
| 1 | 01-08-2026 12:50 PM | |
| 1 | 01-05-2026 01:35 PM | |
| 1 | 12-30-2025 10:18 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|