POST
|
Hello everyone, I wanted to provide an update regarding the issue I previously raised about the mismatch between Y-axis values and data series labels in a Serial Chart when displaying multiple series. Thanks to the assistance of a support representative, the issue has been resolved. The solution was quite simple: I was advised to change the Y-Axis Values setting in the chart by turning off the Stack option, which was previously enabled. It turns out that the Stack option was accidentally left on from previous attempts to create a stacked column chart. Once I disabled it, the Y-axis values and data points aligned correctly across all series. I hope this information helps anyone else who might encounter the same issue.
... View more
09-12-2024
06:37 AM
|
0
|
0
|
843
|
POST
|
Hello everyone, I've encountered an issue while displaying multiple series as a line chart in a Serial Chart in my dashboard. The Y-axis values do not match the values displayed in the data series labels, as you can see in the attached example. Mismatch Between Y-Axis Values and Data Series Labels in Serial Chart The Y-axis seems to show different values from those appearing on the data points of the chart series themselves, causing confusion and making the chart difficult to interpret. However, when I filter the chart to show only one series, the Y-axis values match the labels correctly. The issue seems to occur only when displaying multiple series. Show only one series, the Y-axis values match the labels correctly Has anyone else come across this issue? Is there a suggested solution, or could this be a bug? Looking forward to any advice or insights. Thank you!
... View more
09-07-2024
01:12 AM
|
0
|
1
|
941
|
POST
|
Hi @bbollin, Thank you so much for your suggestion to use the Expects() function. I followed the documentation you provided, and it indeed resolved the issue. I am very grateful for your assistance and quick response. Best regards, Guy Nizry
... View more
07-08-2024
08:09 PM
|
2
|
0
|
1202
|
POST
|
Hello everyone, I'm encountering an issue with an Arcade expression in the Popup window of a feature layer. My goal is to display selected fields in an HTML table format within the Popup, only showing fields that have values and omitting those without values. The Arcade expression works perfectly and displays fields with values while hiding those without. However, this functionality only works if I include a Field list component in the Popup with those selected fields. If I remove the Field list component or any of the selected fields from the component, the resulting HTML table from the Arcade expression does not display correctly, or it doesn't show the fields that are not in the Field list component. The idea was to display only the result table from the Arcade expression in the Popup window, showing fields with values, without duplicating fields by having a Field list component that includes fields with no values. Has anyone else encountered this issue? Does anyone have a solution or workaround for this problem? Here is the Arcade expression I am using: var fieldNames = [
"Treatment", "TreatmentActivityType", "WPFSWorkEssence", "ExecutionStatus",
"WorkYear", "OriginalWorkYear", "Date", "ReporterName", "DistrictName",
"RegionName", "FOR_NO", "FOR_Name", "Stands", "TreatmentUnitAreaDunam",
"BuildWPSFMethod", "InvasiveSpecies", "InvasionPattern", "InvasionInfectionLevel",
"InvasionInfectionSourceNeighbor", "AgeGr", "ForAgeComposition", "CurForestType",
"CurDensity", "CurCover", "ForStatusMain", "ForStatusSecondary", "ForVitality",
"AreaDesignation", "ReqForestType", "ThinningPurpose", "OtherThinningPurpose",
"TRTPriority", "ThinIntensity", "ThinType", "PruningType", "InvasionTrtNo",
"InvasionTrtMechanic", "InvasionTrtChemical", "InvasionTrtDate", "BurnPermission",
"WPFSRejectApproveReason", "WPFSRoundName", "BufferZoneType", "AnnualsTRT",
"LineInfrastructureType", "Comments"
];
var fieldAliases = [
"נושא", "תת נושא", "מהות העבודה", "סטטוס ביצוע", "תוכנית עבודה לשנת",
"שנת תכנון מקורית", "תאריך", "ממלא הטופס", "מרחב", "שם אזור",
"מספר יער", "שם יער", "חלקות עומדים", "שטח היחידה בדונם", "שיטת בניית יחידת העבודה",
"מין צמח פולש", "דפוס פלישה", "רמת נגיעות", "מקור הדבקה שכן",
"גיל השכבה המטופלת", "מספר שכבות היער", "תצורת צומח יערנית קיימת",
"צפיפות קיימת", "כיסוי צמרות קיים", "מצב יער עיקרי", "מצב יער משני",
"חיוניות היער", "ייעוד השטח", "תצורת צומח מתקבלת", "מטרת עיקרית",
"מטרה משנית", "סדר עדיפות לביצוע", "עוצמת דילול", "אופי דילול",
"אופי גיזום", "טיפול מספר", "טיפול מכני", "טיפול כימי", "מועד טיפול רצוי",
"האם תנאי שטח מצריכים בקשה לשריפת גזם", "סיבה לדחיית האישור", "סבב הבקשה",
"סוג אזור חייץ", "טיפול בקומת הקרקע", "סוג תשתית", "הערות"
];
var html = "<div style='direction: rtl; font-family: Segoe UI;'><div style='background-color: lightgrey; font-weight: bold; font-size: 14px; text-align: center; padding: 5px;'>מאפייני היחידה</div><table style='width:100%; border-collapse: collapse; font-size: 12px;'>";
var stripe = false;
for (var i = 0; i < Count(fieldNames); i++) {
var key = fieldNames[i];
var alias = fieldAliases[i];
if (HasKey($feature, key)) {
var value = $feature[key];
if (!IsEmpty(value)) {
var displayValue = value;
if (key == "Date") {
displayValue = Text(Date(value), 'DD/MM/YYYY');
}
if (key == "TreatmentUnitAreaDunam") {
displayValue = Text(Round(Number(value), 1), '#,##0.0'); // Format to one decimal place
} else {
displayValue = Replace(displayValue, "_", " "); // Replacing underscores with spaces
}
var rowColor = IIf(stripe, "#EDEDED", "#FBFBFB"); // Using the specified colors
html += "<tr style='background-color:" + rowColor + ";'><td style='border-right: 1px solid #ddd; padding: 8px;'>" + alias + "</td><td style='padding: 8px;'>" + displayValue + "</td></tr>";
stripe = !stripe;
}
}
}
html += "</table></div>";
return {
type: "text",
text: html
}; Part of the resulted table in the popup: Thank you in advance for your assistance!
... View more
07-05-2024
09:11 PM
|
0
|
2
|
1291
|
POST
|
Thank you so much for your help, @RhettZufelt. The approach you provided indeed resolves the issue, and the calculations are now working correctly in both Map Viewer and the Field Maps app. I really appreciate your assistance in solving this problem. Your support has been invaluable. Guy
... View more
05-30-2024
11:22 PM
|
0
|
0
|
1201
|
POST
|
Thank you, @RhettZufelt , for the suggestion and the links. I tried using GetUser as suggested in the post you linked, but the fire incident number still returns 0 in Field Maps instead of the maximum number for that user. In Map Viewer, the correct number is returned. Do you have any additional ideas for solving this issue? Here is the updated expression: // Check if the edit type is 'INSERT'
if ($editcontext.editType == 'INSERT') {
// Access the FeatureSet of the relevant layer with required fields
var fs = FeatureSetByName($map, 'מדידת שריפה', ['FireEditStatus', 'FireGisID', 'created_user'], false);
// Get the current user's username from the portal
var userInfo = GetUser(portal("https://www.arcgis.com"), "");
var username = userInfo.userName;
// Initialize variables
var MaxidStatus1 = 0;
var MaxidForUser = 0;
// Iterate through the features in the FeatureSet
for (var f in fs) {
var fireEditStatus = f['FireEditStatus'];
var fireGisID = Number(f['FireGisID']);
// Check if the FireEditStatus is 1 and update the maximum FireGisID
if (fireEditStatus == 1) {
MaxidStatus1 = Max(MaxidStatus1, fireGisID);
}
// Check if the created_user matches the current user and update the maximum FireGisID for the user
if (f['created_user'] == username) {
MaxidForUser = Max(MaxidForUser, fireGisID);
}
}
// Determine the new FireGisID based on FireEditStatus
if ($feature.FireEditStatus == 2) {
// If FireEditStatus is 2, return the maximum FireGisID for the current user
return MaxidForUser;
} else if ($feature.FireEditStatus == 1) {
// Increment the maximum FireGisID by 1 for status 1
return MaxidStatus1 + 1;
} else {
return null;
}
} else {
// For other edit types, return the existing FireGisID
return $feature.FireGisID;
}
... View more
05-28-2024
10:48 PM
|
0
|
2
|
1253
|
POST
|
Hi, I'm encountering an issue with a calculation expression that works correctly in Map Viewer but not in Field Maps. I have an expression that computes a fire incident number automatically based on the fire's status. When the fire status is 1 (new fire), the calculation finds the maximum number in the layer and adds one. When the fire status is 2 (continuing fire), the calculation finds the last fire number for the same user. In Map Viewer, the calculation works perfectly. However, in Field Maps, I'm experiencing two issues: For status 1, I get a number smaller than the maximum number. For status 2, I get 0 instead of the expected number. Here's the expression I'm using: // Check if the edit type is 'INSERT'
if ($editcontext.editType == 'INSERT') {
// Access the FeatureSet of the relevant layer with required fields
var fs = FeatureSetByName($map, 'מדידת שריפה', ['FireEditStatus', 'FireGisID', 'created_user'], false);
// Get the current user's username
var username = GetUser($layer).username;
// Initialize variables
var MaxidStatus1 = 0;
var MaxidStatus2 = 0;
var hasStatus2 = false;
// Iterate through the features in the FeatureSet
for (var f in fs) {
var fireEditStatus = f['FireEditStatus'];
var fireGisID = Number(f['FireGisID']);
// Check if the FireEditStatus is 1 and update the maximum FireGisID
if (fireEditStatus == 1) {
MaxidStatus1 = Max(MaxidStatus1, fireGisID);
}
// Check if the FireEditStatus is 2 and the created_user matches the current user
if (fireEditStatus == 2 && f['created_user'] == username) {
hasStatus2 = true;
MaxidStatus2 = Max(MaxidStatus2, fireGisID);
}
}
// Determine the new FireGisID based on FireEditStatus
if ($feature.FireEditStatus == 2) {
// If FireEditStatus is 2, return the maximum FireGisID for the current user
if (hasStatus2) {
return MaxidStatus2;
} else {
return null;
}
} else if ($feature.FireEditStatus == 1) {
// Increment the maximum FireGisID by 1 for status 1
return MaxidStatus1 + 1;
} else {
return null;
}
} else {
// For other edit types, return the existing FireGisID
return $feature.FireGisID;
} Has anyone experienced similar issues with expressions in Field Maps, and what solutions might you suggest? Thank you for your assistance! Guy
... View more
05-26-2024
06:06 AM
|
0
|
4
|
1459
|
POST
|
Hi, I have been working on a custom Arcade expression that displays a table of related inspections in the popup for a feature in ArcGIS Online Map Viewer. The code is working perfectly in the Map Viewer, but when I try to use it in ArcGIS Field Maps, I'm encountering an error (Error code 7018) that states "Arcade expression is invalid". I've included the Arcade code below for reference: var parentGlobalID = $feature.GlobalID; var tbl = "<table border='1' cellpadding='5' cellspacing='0' style='width:100%; direction:rtl;'>"; tbl += "<tr style='background-color: #D3D3D3;'><th>Inspection Date</th><th>Inspector Name</th><th>Status</th></tr>"; // Get related records sorted by date var relatedRecords = filter(FeatureSetByName($map, "Inspections", ["InspDate","InspReporterName","InspStatus"], false), 'ShepardParentGlobalID = @parentGlobalID',); if (Count(relatedRecords) > 0) { for (var i in (OrderBy(relatedRecords, "InspDate DESC",))) { var rowBackgroundColor = "background-color: #CCFFCC;"; // add backround to row if InspStatus is "Not Valid" if (i.InspStatus == "Not Valid") { rowBackgroundColor = "background-color: #FFCCCC;"; } // format date field to DD/MM/YYYY var formattedDate = Text(Date(i.InspDate), 'DD/MM/YYYY'); tbl += "<tr style='" + rowBackgroundColor + "'><td style='text-align:center;'>" + formattedDate + "</td><td style='text-align:center;'>" + i.InspReporterName + "</td><td style='text-align:center;'>" + i.InspStatus + "</td></tr>"; } } else { tbl += "<tr><td colspan='3'>Inspections not found</td></tr>"; } tbl += "</table>"; return { type : 'text', text : tbl //this property supports html tags } Has anyone encountered a similar issue or has insights on what might be causing this error specifically in ArcGIS Field Maps? Any help or suggestions would be greatly appreciated. Guy Nizry
... View more
09-22-2023
12:34 AM
|
0
|
8
|
3805
|
POST
|
Hi Shwu-jing Jeng, Thanks for your quick respond. Sorry for my late respond, I was out of the office. I opened a support ticket few days ago on this subject. When I provided the map details I've been told that my map include tiled cache layer that is not shared publicly - this is a known issue which prevent the map from loading in Survey123. Hope it will be fixed soon. Guy
... View more
09-21-2020
07:16 AM
|
1
|
0
|
729
|
POST
|
We are experiencing some issues with the webmap that linked to the survey. Our survey linked to custom web map which is set as the default basemap. Most of the times it doesn't show up when the user is trying to locate the spot of the survey. Instead it arrives as a grey background: The map is shared only with authorized group of users, the same one that authorized to work with a survey it linked to. Does anyone have any suggestions?
... View more
09-15-2020
10:23 PM
|
0
|
2
|
789
|
POST
|
Hi Shengdi Thanks for your quick respond. I used a list widget pointing a feature class with multiple attachments to each feature. Guy
... View more
08-27-2020
03:12 AM
|
0
|
2
|
1948
|
POST
|
Hi Shengdi Thank you for logging this issue. I found another similar issue with image navigation arrows when using locale=he.
... View more
08-27-2020
01:55 AM
|
0
|
4
|
1948
|
POST
|
The navigation arrows in the list widget are upside down when using locale=he. Hope you can fix it soon. Screenshot:
... View more
08-11-2020
02:56 AM
|
0
|
8
|
2044
|
Title | Kudos | Posted |
---|---|---|
2 | 07-08-2024 08:09 PM | |
1 | 09-21-2020 07:16 AM | |
2 | 07-19-2017 10:32 PM | |
4 | 02-11-2019 10:24 AM | |
6 | 02-11-2019 10:24 AM |
Online Status |
Offline
|
Date Last Visited |
09-02-2025
11:49 AM
|