LVサービスおよびMVサービスに「Meter number」(データタイプはstring/char)というフィールドを追加しました。データを収集し、クライアントに引き渡しました。サイトからの増分データがキャプチャされる際に重複を避けたいと考えています。Field mapアプリ、ArcGIS Pro、またはPortal for ArcGISでメーター番号の重複を許可しないARCADEステートメントを誰かに教えてほしいです。<\/P>
You could use some logic similar to this:
var search_duplicate = $feature.FACILITYID var features = FEATURESETBYNAME($datastore, "Featureclass Name Here") var sqlExpression = "A_FIELD_NAME_HERE = @search_duplicate" var result = FILTER(features, sqlExpression) WHEN( COUNT(result) > 1, `Duplicate Value, choose another ID`, $feature.FACILITYID )
Or you could use a sequence:
https://support.esri.com/en-us/knowledge-base/how-to-add-auto-sequential-values-using-attribute-rules-000024533
Also, this post has a great solution to what you're asking for:
https://community.esri.com/t5/arcgis-field-maps-questions/arcgis-fieldmaps-form-calculate-expression-to/m-p/1159183
Is working,thanks
Here are some additional resources about configuring your data with Arcade. Check out this session from IMGIS 2024. We go over topics like duplications of attributes, barcode scan to attribution, text and pop up formatting in ArcGIS Dashboards and form calculations. https://imgis2024.esri.com/flow/esri/24imgis/eventportal/page/detailed-agenda/session/1724086224010001T6Fi
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.