conditional statements to display optional info from feature description
Is it possible to apply conditions to the feature description so that I can display (or not) field values depending on another value being true/false or meets a condition?
for example, I have a lease layer containing rental information and there are some leases where there is no rental value ($0). Instead of showing 'Rental = $0.00', I wanted to put a condition where if the rental value is 0, place a text description of 'No rental value' instead.
0
-
Hi Noel,
Unfortunately this is not possible. There is a feature request to add this capability (GE-2380) but it hasn't been implemented. I will add you as a stakeholder to the request to increase the visibility it gets.
Regards,
Wayne0 -
I'm interested in this as well. 0 -
You could do this with a data link. Basically, you'd create a new one to one data link on your rental layer that contains a query of your rental layer that uses a case statement to return the values you want. Example:
SELECT CASE
WHEN Rental.Value = 0 THEN 'No rental value'
ELSE Rental.Value
END AS Value
FROM Rental
WHERE YourRentalTable.id = @id
Then in your feature description you'd use {yourDataLink.Value} to use your formatted rental value.0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer