You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently working on to using IIF syntax arcade expression in renderer which is coming from JSON.
So far, I can confirm that simple "valueExpression" in the JSON works fine such as "valueExpression='$feature.category'". But, it won't accept more complicated arcade expression using IIF condition statement.
Hi,
I am currently working on to using IIF syntax arcade expression in renderer which is coming from JSON.
So far, I can confirm that simple "valueExpression" in the JSON works fine such as "valueExpression='$feature.category'". But, it won't accept more complicated arcade expression using IIF condition statement.
*valueExpression
var nV = IIF($feature.nV != null && $feature.nV != $feature.v, '-'+ $feature.nV,'');
var cS = IIF($feature.cS != null && $feature.cS != 'closed', '-'+ $feature.cS, '');
IIF(IsEmpty($feature.endDate), IIF($feature.category == 'brick', $feature.v + nV + cS, $feature.v), 'expired')
*sourceCode
var serializeOptions = new JsonSerializerOptions
{
WriteIndented = true,
Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping
};
string jsonRenderer = System.Text.Json.JsonSerializer.Serialize(uniqueRenderJSON[renderName], serializeOptions);
_renderer = Renderer.FromJson(jsonRenderer);
}
featureCollectionTable.Renderer = _renderer;
The text was updated successfully, but these errors were encountered: