Use Workflow variable in Decription Format on SelectFeatures Activity
Hello all,
I am using the "Description Format" option in the Selectfeatures activity in a workflow.
Basically, I want the text to say "This Parcel touches the XXXYr Flood Zone" where XXYr will be replaced by a value returned by a variable set within the workflow. The variable is finalfemafloodzoneValue (which will be either 100Yr or 500Yr - whichever is worse for the particular parcel).
How do I incorporate a workflow variable into the Description Format parameter?

0
-
I think you could use an assign to put the variable in and then use the resulting variable for the expression. So something like:
"First part of your text " + variable + " rest of your text."
You might have to use single quotes (') inside your HTML tags though ...0 -
Yes, I tried several variations of something similar. It's a fresh new day, maybe I will try again. 0 -
To simplify the question...
If my workflow variable is a string called theworkflowvariable,
then how would I use the variable in this span tag in the DescriptionFormat for SelectFeatures???"<span style=""font-style: italic; color:green; font-weight:bold"">theworkflowvariable???</span>"I have tried numerous combinations of single and double quotes, different brackets, etc. without luck.
Thanks,
Carmen0 -
So if you put the following into an alert box, what does it give you?
"<span style=""font-style:italic; color:green; font-weight:bold;"">" + theworkflowvariable + "</span>"0 -
Odiri,
I would have sworn that I tried exactly what you have provided without luck.
But, I tried again and "lo and behold" it worked. I was probably blind to whatever was wrong.
Thank you!
Carmen0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
5 Kommentare