Symbology Expression

541
2
10-06-2022 01:22 PM
cmerwin
New Contributor II

Hello everyone, 

I have created a dashboard for our ROW Permit Applications. On the back end, I created a survey so that our Water and Wastewater supervisors can review them and either Approve or Deny them. 

cmerwin_0-1665087473667.png

I am wanting to write an expression that will only change the status (symbology) to Approved when both supervisors have submitted the survey as approved. Is this possible?

cmerwin_1-1665087645106.png

Any guidance would be greatly appreciated as I am not even sure where to start.

-Cody

 

Tags (2)
0 Kudos
2 Replies
SteveCole
Frequent Contributor

One idea to explore is adding an Arcade expression to your map and then symbolizing that layer based on the Arcade expression value. This way, you can incorporate that additional verification that the supervisors have signed off. This is some pseudo code to give you the idea-

var theStatus = $feature.Status;
var theSymbStatus = '';

if(theStatus == 'Denied') {
     theSymbStatus = 'Denied';
}
if(theStatus == 'Submitted') {
     theSymbStatus = 'Submitted';
}
if(theStatus == 'AdditionalInfo') {
     theSymbStatus = 'AdditionalInfo';
}
if(theStatus == 'Approved') {
     //Check if the two supervisors have reviewed and signed off
     if ($feature.Supervisor01 = true) and ($feature.Supervisor02 = true) {
         theSymbStatus = 'Approved';
     } else {
         theSymbStatus = 'AdditionalInfo';
     }
}
return theSymbStatus;
jonhwhoopmission
New Contributor

You may represent a layer on your map based on its value by adding an Arcade expression to your map. This way, you can let everyone know for sure that it has the stamp of approval from above. Here is some fictitious code to help you see it. 

super mario bros

 

0 Kudos