POST
|
Hello! It turns out the issue resolved itself and now my maps are showing field aliases. So that's cool! Thanks, Tim
... View more
11-19-2021
09:18 AM
|
0
|
0
|
560
|
POST
|
It would be really nice if the field list in pop ups honored field aliases. The classic map viewer does this. External data sources sometimes have nonsense field names; looking at you U.S. Census Bureau.
... View more
11-11-2021
12:04 PM
|
1
|
2
|
631
|
POST
|
Hi Alix, Any idea when an update is scheduled? Thanks, Tim
... View more
08-03-2020
10:51 AM
|
0
|
5
|
2350
|
POST
|
Can you use the Smart Editor widget to require time AND date field be filled? I have a web app where the Date field is Date and Time, but when set to be required it only requires the Date be filled while defaulting to 12:00AM. Is there a way to require users to update the time field? Thanks
... View more
07-31-2020
10:00 AM
|
2
|
7
|
2413
|
POST
|
Is there a way to fill a date field with the current date/time using a custom URL? I'm using the survey123 webform and accessing it using Web AppBuilder. There are two dates, an assigned date and an inspection date. The inspection date would be entered in a mode=Edit URL. We're also using Chrome as the browser. Thanks
... View more
07-29-2020
05:22 AM
|
0
|
1
|
525
|
POST
|
Why is it that on Android both Collector and Collector Classic are both labeled "Collector" but on iOS this is not the case. It is causing a lot of confusion for our field workers. For our end users who aren't ESRI savvy, this has led to some issues. Is there any plan to at least label the classic app? Thanks.
... View more
06-18-2020
07:01 AM
|
0
|
0
|
491
|
POST
|
Sure. Here's an instance where the most recent inspection date was 2/20/2020, which is within 30 days. It passes the url for the checkmark image into the inspection. I use the expression's tag in the image tag. Underneath I use the same expression to pass phrases instead of urls. This one says, "Inspection Current." Here is a pop up for a point with an inspection date from December, well over 30 days old: And for all points that don't have inspections this is the result of the Else statement: And just for good measure, here is the expression for the message underneath the image: var relatedrecords = Top(OrderBy(FeatureSetByRelationshipName($feature,"AST_Inspection"), "insp_date DESC"), 1);
var cnt = Count(relatedrecords);
var relatedinfo = "";
if (cnt>0) {
var info = First(relatedrecords);
var diff = Round(DateDiff(Now(), ToLocal(info.insp_date), "days"));
relatedinfo = IIf (diff<30, "Inspection Current", "Inspection Due");
} else {
relatedinfo = "No Inspections"
}
return relatedinfo
... View more
03-02-2020
04:14 AM
|
1
|
1
|
2970
|
POST
|
I figured it out! Sorry to bug you. Turns out I was doing too much, and the DateDiff function was getting an error because of the text formatting of the insp_date. The code that works is as follows: var relatedrecords = Top(OrderBy(FeatureSetByRelationshipName($feature,"AST_Inspection"), "insp_date DESC"), 1);
var cnt = Count(relatedrecords);
var relatedinfo = "";
if (cnt>0) {
var info = First(relatedrecords);
var diff = Round(DateDiff(Now(), ToLocal(info.insp_date), "days"));
relatedinfo = IIf (diff<30, "img1url", "img2url");
} else {
relatedinfo = "img3url"
}
return relatedinfo Thanks for taking a look though!
... View more
02-27-2020
12:06 PM
|
0
|
4
|
2970
|
POST
|
I am trying to get it to return those text values. The image urls will not be stored as fields, they'll be static. I've been able to get it to pass img2url but not img1url when the related field "insp_date" is less than 30 days old. Here's what I've got now, after realizing there was a bit of a syntax error before. var relatedrecords = OrderBy(FeatureSetByRelationshipName($feature,"AST_Inspection"), "insp_date DESC");
var cnt = Count(relatedrecords);
var relatedinfo = "";
if (cnt>0) {
var info = First(relatedrecords);
var relateddate = Text(ToLocal(info.insp_date), "MM/DD/Y");
var diff = DateDiff(Now(), relateddate, "days");
relatedinfo = IIf (diff<30, "img1url", "img2url");
} else {
relatedinfo= "img3url"
}
return relatedinfo
... View more
02-27-2020
11:05 AM
|
0
|
0
|
2970
|
POST
|
Hello, I'm trying to write an expression that will return one of three image urls based on an inspection date. The distinction being the most recent date is less than 30 days, greater than 30 days, or there is no recent date. The expression is then pasted into the URL of an image for a pop up. Here is what I have so far. var relatedrecords = OrderBy(FeatureSetByRelationshipName($feature,"AST_Inspection"), "insp_date DESC");
var cnt = Count(relatedrecords);
var relatedinfo = "";
if (cnt>0) {
var info = First(relatedrecords);
relateddate = Text(ToLocal(info.insp_date), "MM/DD/Y");
var diff = DateDiff(Now(), relateddate, "days");
relatedinfo = IIf (diff<30, "img1url", "img2url");
} else {
relatedinfo= "img3url"
}
return relatedinfo I tried nesting If/Else statements and it just kept giving the Else image url. I'm sure there is a simpler way to do this, but I'm not sure. Thanks.
... View more
02-27-2020
05:17 AM
|
0
|
8
|
3134
|
POST
|
I'd also like to see this capability implemented. I'm currently working on a storage tank inspection workflow. Currently, I've created a web app with Web App Builder where a field worker can tap on a storage tank point and then there are 3-6 different inspections that are linked. The inspections are performed with Survey123 and that data is written into related tables. Different inspections are performed monthly, quarterly, or annually. Currently, there's no way for me to symbolize if a tank needs to be inspected without having the user also update a field in the tank location layer. If I could use workforce to create work orders for inspections that are coming due, that would be great.
... View more
02-26-2020
12:08 PM
|
0
|
0
|
1670
|
POST
|
So is there a difference between adding in DES vs DESC? Both seemed to work, at least while I have very few records in the data set.
... View more
02-20-2020
07:49 AM
|
0
|
1
|
2730
|
POST
|
Never mind Xander Bakker I figured it out! I simply added "insp_date DES" and that did the trick! Also added a nifty else statement for empty lists. Thanks for all the help in your many responses on these forums.
... View more
02-20-2020
07:21 AM
|
1
|
12
|
4065
|
POST
|
Xander, This works but now I've realized that for multiple inspections it will still only return the first inspection date. What do I need to add to return the most recent inspection date? My code is as follows:
var relatedrecords = OrderBy(FeatureSetByRelationshipName($feature,"AST_Inspection"), "insp_date");
var cnt = Count(relatedrecords);
var relatedinfo = "";
if (cnt > 0) {
var info = First(relatedrecords);
relatedinfo = Text(ToLocal(info.insp_date), "MM/DD/Y");
}
return relatedrecords I tried adding "Top(OrderBy(...),1)" but that doesn't seem to make a difference. Thanks, Tim
... View more
02-20-2020
07:09 AM
|
0
|
16
|
4064
|
Title | Kudos | Posted |
---|---|---|
1 | 11-11-2021 12:04 PM | |
1 | 03-02-2020 04:14 AM | |
2 | 07-31-2020 10:00 AM | |
1 | 02-20-2020 07:21 AM |
Online Status |
Offline
|
Date Last Visited |
03-01-2022
10:35 AM
|