arcgis-tables-forms
Skill1 starsChanged 6 months agoMITView on GitHub
Show and edit tabular attribute data with the ArcGIS Maps SDK for JavaScript 5.1: the arcgis-feature-table component (linked to the map only through reference-element, filtered with its own definitionExpression), the arcgis-feature-form component (submit() validates but never saves), and related records with queryRelatedFeatures (parents without related rows are absent from the result). Use this skill whenever the user displays a feature table, builds an attribute form, or works with related records.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- GeoDaoyu/arcgis-maps-sdk-js-ai-contexttheir own version, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- GeoDaoyu/arcgis-maps-sdk-js-ai-context★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository73 other files it gives its agents.
- skills/arcgis-3d-layers/AGENTS.mdAGENTS.md
- skills/arcgis-advanced-layers/AGENTS.mdAGENTS.md
- skills/arcgis-ai-components/AGENTS.mdAGENTS.md
- skills/arcgis-arcade/AGENTS.mdAGENTS.md
- skills/arcgis-authentication/AGENTS.mdAGENTS.md
- skills/arcgis-charts/AGENTS.mdAGENTS.md
- skills/arcgis-cim-symbols/AGENTS.mdAGENTS.md
- skills/arcgis-coding-components/AGENTS.mdAGENTS.md
- skills/arcgis-coordinates-projection/AGENTS.mdAGENTS.md
- skills/arcgis-core-maps/AGENTS.mdAGENTS.md
- skills/arcgis-core-utilities/AGENTS.mdAGENTS.md
- skills/arcgis-custom-rendering/AGENTS.mdAGENTS.md
- skills/arcgis-editing/AGENTS.mdAGENTS.md
- skills/arcgis-embeddable-maps/AGENTS.mdAGENTS.md
- skills/arcgis-feature-effects/AGENTS.mdAGENTS.md
- skills/arcgis-geometry-operations/AGENTS.mdAGENTS.md
- skills/arcgis-imagery/AGENTS.mdAGENTS.md
- skills/arcgis-interaction/AGENTS.mdAGENTS.md
- skills/arcgis-knowledge-graphs/AGENTS.mdAGENTS.md
- skills/arcgis-layers/AGENTS.mdAGENTS.md
- skills/arcgis-map-tools/AGENTS.mdAGENTS.md
- skills/arcgis-parquet/AGENTS.mdAGENTS.md
- skills/arcgis-performance/AGENTS.mdAGENTS.md
- skills/arcgis-popup-templates/AGENTS.mdAGENTS.md
- skills/arcgis-portal-content/AGENTS.mdAGENTS.md
- skills/arcgis-rest-services/AGENTS.mdAGENTS.md
- skills/arcgis-scene-environment/AGENTS.mdAGENTS.md
- skills/arcgis-smart-mapping/AGENTS.mdAGENTS.md
- skills/arcgis-spatial-analysis/AGENTS.mdAGENTS.md
- skills/arcgis-starter-app/AGENTS.mdAGENTS.md
- skills/arcgis-tables-forms/AGENTS.mdAGENTS.md
- skills/arcgis-time-animation/AGENTS.mdAGENTS.md
- skills/arcgis-utility-networks/AGENTS.mdAGENTS.md
- skills/arcgis-visualization/AGENTS.mdAGENTS.md
- skills/arcgis-widgets-advanced/AGENTS.mdAGENTS.md
- skills/arcgis-widgets-ui/AGENTS.mdAGENTS.md
- skills/hello-world/AGENTS.mdAGENTS.md
- arcgis-3d-layersSkill
- arcgis-advanced-layersSkill
- arcgis-ai-componentsSkill
- arcgis-arcadeSkill
- arcgis-authenticationSkill
- arcgis-chartsSkill
- arcgis-cim-symbolsSkill
- arcgis-coding-componentsSkill
- arcgis-coordinates-projectionSkill
- arcgis-core-mapsSkill
- arcgis-core-utilitiesSkill
- arcgis-custom-renderingSkill
- arcgis-editingSkill
- arcgis-embeddable-mapsSkill
- arcgis-feature-effectsSkill
- arcgis-geometry-operationsSkill
- arcgis-imagerySkill
- arcgis-interactionSkill
- arcgis-knowledge-graphsSkill
- arcgis-layersSkill
- arcgis-map-toolsSkill
- arcgis-parquetSkill
- arcgis-performanceSkill
- The first 60 shown.
The file
Files
Tables & Forms
When to use: Activate this skill whenever the user shows a feature table, builds an attribute form, or queries related records.
Overview
These components present a layer's attributes as a table or an editable form, with related-record support.
- Problem it solves: attribute-centric UIs over spatial data.
- Who it serves: developers building inspection, asset, and data-entry apps.
- Pattern it teaches: bind a component to a layer and the map; persist form values yourself; read relationships from the layer.
- What it does NOT cover: full editing workflows (see
arcgis-editing) or popups (seearcgis-popup-templates).
Quick Start
<arcgis-map id="map" basemap="osm" center="-117.15,32.72" zoom="11"></arcgis-map>
<arcgis-feature-table reference-element="#map"></arcgis-feature-table>import "@arcgis/map-components/components/arcgis-map";
import "@arcgis/map-components/components/arcgis-feature-table";
import FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";
const layer = new FeatureLayer({ url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/ServiceRequest/FeatureServer/0" });
const mapEl = document.querySelector("arcgis-map")!;
await mapEl.viewOnReady();
mapEl.map?.add(layer);
document.querySelector("arcgis-feature-table")!.layer = layer; // the table loads the layer itselfNo await layer.load() is needed first: measured on 5.1.27, a table given an unloaded layer loads it and shows all
12 columns and 420 rows. A table with only a URL also works: <arcgis-feature-table layer-url="...">.
Decision Tree
- Spreadsheet view of many rows?
- Yes →
arcgis-feature-table. It pages by itself (pageSize50); filter it with its owndefinitionExpression.
- Yes →
- Edit one feature's attributes?
- Yes →
arcgis-feature-formwithlayer,feature, and optionally aFormTemplate; save inarcgisSubmit.
- Yes →
- Need records from a related table?
- Yes →
layer.queryRelatedFeatures(RelationshipQuery)with an id read fromlayer.relationships.
- Yes →
Default: components. The FeatureTable and FeatureForm widgets are deprecated since 5.0.
Import Patterns
Direct ESM (recommended for npm/Vite/Webpack)
import FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";Dynamic Imports (CDN)
const FeatureLayer = await $arcgis.import("@arcgis/core/layers/FeatureLayer.js");Map Components (recommended for new projects)
import "@arcgis/map-components/components/arcgis-feature-form";Key Concepts
Concept 1: The table and the map are linked only by reference-element
Without reference-element, the table's view is null (measured): row selection does not highlight on the map
and filterByViewExtent has no extent to use. Point it at the map with a selector, such as reference-element="#map".
Concept 2: The form validates; you save
submit() fires arcgisSubmit with { valid, invalid, values } (measured): the lists of field names that pass and
fail, and the current values. Nothing reaches the service until you call layer.applyEdits.
Concept 3: Related records come back keyed by parent
queryRelatedFeatures resolves to an object keyed by the parent objectId, and only the parents that have related
rows are in it. Measured on the San Diego service requests: of 200 requests asked, 4 came back.
Common Pitfalls (Top 3)
Pitfall 1: Expecting the table to follow the map without reference-element
<!-- ❌ Anti-pattern: the table has no view -->
<arcgis-feature-table></arcgis-feature-table><!-- ✅ Correct -->
<arcgis-feature-table reference-element="#map"></arcgis-feature-table>Impact: measured: table.view is null. Clicking a row highlights nothing, and there is no error.
Pitfall 2: Reading every parent from the related-records result
// ❌ Anti-pattern: a guessed id, and parents assumed present
const res = await layer.queryRelatedFeatures(new RelationshipQuery({ objectIds: ids, relationshipId: 1 }));
const firstCount = res[ids[0]].features.length; // TypeError when that parent has no related rows// ✅ Correct
await layer.load();
const rel = layer.relationships?.[0];
if (rel) {
const res = await layer.queryRelatedFeatures(
new RelationshipQuery({ objectIds: ids, relationshipId: rel.id, outFields: ["*"] }),
);
const related = ids.map((id) => res[id]?.features ?? []);
}Impact: measured: a wrong relationshipId rejects with the opaque "Unable to complete operation.", and with the
right one only 4 of 200 parents were keys of the result.
Pitfall 3: Turning on editing for a layer that cannot be edited
// ❌ Anti-pattern
table.editingEnabled = true; // on a read-only service// ✅ Correct
await layer.load();
table.editingEnabled = layer.editingEnabled && !!layer.capabilities?.operations?.supportsUpdate;Impact: measured on a MapServer layer (supportsUpdate: false): the table accepted editingEnabled = true and
marked 6 of 6 columns editable, with no warning. The user types and the save fails later.
When to Read references/
| If you need... | Read |
| Component + RelationshipQuery signatures | references/api-detail.md |
| Table / form / related examples | references/examples.md |
| More pitfalls (5+ extended) | references/pitfalls.md |
Related Skills
arcgis-layers— the FeatureLayer behind the tablearcgis-editing— full edit workflows with applyEditsarcgis-popup-templates— attribute display in popups
Reference Samples
Changelog
- 0.2.0 (2026-10-27): SDK 5.1. Runtime checks in
tests/runtime/casos/arcgis-tables-forms.ts. Removed the "load the layer before binding" pitfall: measured, the table loads it itself (12 columns, 420 rows). New top pitfalls, all measured: noreference-elementleavestable.viewnull; a wrongrelationshipIdgives an opaque error and parents without related rows are absent from the result;editingEnabledon a read-only layer is accepted silently. DocumentedarcgisSubmit(valid,invalid,values), the table's owndefinitionExpression, andlayer-url. Snippets and examples use a public service; the form example now setslayerandfeature, and the extended pitfall that failed to compile (TS1108) was fixed. - 0.1.0 (2026-05-31): Initial release.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

