|
POST
|
This works for me in form calculation and popup. var dic = $feature.last_values
var dicvar = Dictionary(dic)
return dicvar.field1.value as per your modified question, this returns the field1.value and returns as a number (21.4191) Field Maps calculated value: Popup: R_
... View more
07-25-2023
03:27 PM
|
1
|
0
|
1678
|
|
POST
|
Not sure what you mean by values from field1 and field2. they are numeric, so you want to add them together or return both values as a text string? Code below returns as a string on two lines: var dic = '{"field4":{"value":5,"created_at":"2023-07-24T19:45:15Z"},"log":{"value":507,"created_at":"2023-07-24T17:03:02Z"},"field3":{"value":181.44,"created_at":"2023-07-24T19:49:59Z"},"field1":{"value":21.4191,"created_at":"2023-07-24T19:55:02Z"},"field2":{"value":55.996,"created_at":"2023-07-24T19:55:02Z"},"field5":{"value":-45,"created_at":"2023-07-24T19:50:06Z"},"wifi":{"value":"ee:55:a8:0a:40:ef,-38;fe:55:a8:0a:40:ef,-38;ee:55:a8:0a:40:bf,-57;fe:55:a8:0a:40:bf,-58;02:18:4a:8c:49:62,-61","created_at":"2023-07-24T17:07:49Z"}}'
var dicdata = Dictionary(dic)
var f1 = "Field 1 = " + (Text(dicdata.field1.value))
var f2 = "Field 2 = " + Text(dicdata.field2.value)
return Concatenate(f1 + TextFormatting.NewLine + f2) Should give you an idea of how to get the values from the dictionary string. R_
... View more
07-25-2023
11:02 AM
|
2
|
1
|
1723
|
|
POST
|
Lindsay, I had that happen to me not long ago. Same super informative error message. What I finally figured out is that one of my domains (Excel autofill and overlooked by me) that I recently updated had been corrupted in my hosted feature layer. I went into item details page for the HFS, data tab, fields. Then I would click on each field with a domain list on it, edit the list, delete one of the entries, and observe the "Save" button at the bottom. If the save button becomes active, probably not the culprit, cancel and try next field. If the button stays greyed out, there is something wrong with that domain. Hit cancel and fix the domain (normally a duplicate in code or desc or both). Once I fixed this issue, export started working just fine again. (this also kept me from going the create replica route in REST as well). In case this helps, R_
... View more
07-25-2023
10:43 AM
|
0
|
1
|
3154
|
|
POST
|
I'm sure the 'discrepancy' is still often there, but since the code is same as description, it always shows the same value whether its showing code or description. R_
... View more
07-25-2023
09:18 AM
|
0
|
0
|
3464
|
|
POST
|
Additional Answer: Not sure about the answer to your question, but I learned long ago that ESRI products often treat code/description values differently, depending on what app, and what you are looking at in the app (popups, tables, etc)(they can't seem to settle on a 'standard'). Now, if I create a domain, the code and description are exactly the same. No more issues...... R_
... View more
07-24-2023
03:49 PM
|
0
|
2
|
3508
|
|
POST
|
Also, not sure what 'profile' you are using, but Distance says "Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. $feature) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry." but doesn't say anything about calculation profile..... I used it in an attribute rule with State Plane data, and it appears to be spot on. R_
... View more
07-24-2023
03:40 PM
|
0
|
0
|
2517
|
|
POST
|
Did you put the units you want as the last option in the Distance (supposed to return map units, but I found that to not be the case. I had to specify feet)? Also, is you data in a projected coordinate system? If not, may have something to do with it being 0.1 off. All my date is projected in state plane, so not sure if it would vary if GCS, but often when numbers are a bit odd, that is the case. R_
... View more
07-24-2023
03:27 PM
|
0
|
0
|
2521
|
|
POST
|
Does it let you edit in map viewer? Have you modified any Domains in the layer? I have seen if there is a duplicate/invalid value in a domain, it will not show the + button (sometimes won't even show the layer, but sometimes it does). R_
... View more
07-24-2023
01:33 PM
|
0
|
1
|
9230
|
|
POST
|
Do you have domains on the field(s)? If so, that would probably be in the Split Policy of the domain. If it is 'Default', should populate with the value defined as Default for that Field. If set to "Duplicate', it should copy what was originally there to the newly created features. R_
... View more
07-24-2023
01:27 PM
|
0
|
0
|
1501
|
|
POST
|
Still not quite sure what you are attempting, but sounds like you already have the address points and fiber lines, but need them snapped to each other? Perhaps the Snap GP tool can be of some help? If you already have the points and lines, what are the multiple features you are trying to create? Also, suggest a backup copy of the existing before you try anything, though you say you can't create new feature layers? R_
... View more
07-24-2023
11:01 AM
|
0
|
2
|
3579
|
|
POST
|
What is your 'source' for these points and lines? maybe XY to Line or Add XY coordinates? R_
... View more
07-24-2023
10:26 AM
|
0
|
1
|
3591
|
|
POST
|
Where are you seeing the "contingent values required" option? My iOS devices seem to honor the contingent values as expected (with Domains). I do not have android to test with. It does want me to group the values participating in the contingent values in the form. R_
... View more
07-24-2023
07:59 AM
|
0
|
1
|
1638
|
|
POST
|
My autonumber script seems to work just fine in Map Viewer, and Field Maps App (on iOS). var vals = FeatureSetByName($datastore,"Sign",['TestInt'],false)
var numarray = []
for (var n in vals){
var nn = Number(n.TestInt)
Push(numarray, nn)
}
var maxnum = Max(numarray)
var newnum = maxnum + 1
return newnum This finds the largest number in the ['TestInt'] field of the feature class named "Sign", adds 1 to it, and populates the TestInt field in the new feature with the incremented value. Even works offline, but will only find max value of features within the offline area**. So would only use offline if you can download your entire area, AND, there are no other users editing the data. Have not tested to see if there is a limit to the number of features. If you have a lot of features in your dataset, it will defiantly increase the time it takes to submit. Edit: Just tested, and with 2000 records I don't notice any delay. With11,500 records, can take over 10 seconds longer to submit. R_
... View more
07-20-2023
02:54 PM
|
1
|
1
|
4908
|
|
POST
|
Take a look at the generate match table and add attachments here. R_
... View more
07-20-2023
01:32 PM
|
0
|
0
|
2042
|
|
POST
|
I had similar question and @JohannesLindner helped me out with this post here. Might get you what you need or at least point you in the right direction. R_
... View more
07-19-2023
04:20 PM
|
0
|
0
|
2547
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-14-2026 04:00 PM | |
| 1 | 09-14-2022 07:53 AM | |
| 1 | 09-14-2022 08:23 AM | |
| 1 | 05-21-2026 08:53 AM | |
| 1 | 05-14-2026 04:28 PM |
| Online Status |
Online
|
| Date Last Visited |
yesterday
|